@typus/typus-sdk 1.2.588 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (590) hide show
  1. package/lib/config.json +161 -0
  2. package/lib/mainnet.json +4 -4
  3. package/lib/utils/_dependencies/source/0x1/ascii/structs.d.ts +82 -0
  4. package/lib/utils/_dependencies/source/0x1/ascii/structs.js +352 -0
  5. package/lib/utils/_dependencies/source/0x1/bit-vector/structs.d.ts +50 -0
  6. package/lib/utils/_dependencies/source/0x1/bit-vector/structs.js +239 -0
  7. package/lib/utils/_dependencies/source/0x1/fixed-point32/structs.d.ts +41 -0
  8. package/lib/utils/_dependencies/source/0x1/fixed-point32/structs.js +203 -0
  9. package/lib/utils/_dependencies/source/0x1/index.d.ts +2 -0
  10. package/lib/utils/_dependencies/source/0x1/index.js +5 -0
  11. package/lib/utils/_dependencies/source/0x1/init.d.ts +2 -0
  12. package/lib/utils/_dependencies/source/0x1/init.js +42 -0
  13. package/lib/utils/_dependencies/source/0x1/option/structs.d.ts +46 -0
  14. package/lib/utils/_dependencies/source/0x1/option/structs.js +233 -0
  15. package/lib/utils/_dependencies/source/0x1/string/structs.d.ts +44 -0
  16. package/lib/utils/_dependencies/source/0x1/string/structs.js +227 -0
  17. package/lib/utils/_dependencies/source/0x1/type-name/structs.d.ts +48 -0
  18. package/lib/utils/_dependencies/source/0x1/type-name/structs.js +204 -0
  19. package/lib/utils/_dependencies/source/0x123/discount-mint/structs.d.ts +552 -0
  20. package/lib/utils/_dependencies/source/0x123/discount-mint/structs.js +1068 -0
  21. package/lib/utils/_dependencies/source/0x123/index.d.ts +2 -0
  22. package/lib/utils/_dependencies/source/0x123/index.js +5 -0
  23. package/lib/utils/_dependencies/source/0x123/init.d.ts +2 -0
  24. package/lib/utils/_dependencies/source/0x123/init.js +61 -0
  25. package/lib/utils/_dependencies/source/0x123/royalty-rule/structs.d.ts +85 -0
  26. package/lib/utils/_dependencies/source/0x123/royalty-rule/structs.js +340 -0
  27. package/lib/utils/_dependencies/source/0x123/staking/structs.d.ts +433 -0
  28. package/lib/utils/_dependencies/source/0x123/staking/structs.js +784 -0
  29. package/lib/utils/_dependencies/source/0x123/table-vec/structs.d.ts +63 -0
  30. package/lib/utils/_dependencies/source/0x123/table-vec/structs.js +236 -0
  31. package/lib/utils/_dependencies/source/0x123/typus-nft/structs.d.ts +1006 -0
  32. package/lib/utils/_dependencies/source/0x123/typus-nft/structs.js +1994 -0
  33. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/index.d.ts +2 -0
  34. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/index.js +5 -0
  35. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/init.d.ts +2 -0
  36. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/init.js +38 -0
  37. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/whitelist/structs.d.ts +340 -0
  38. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/whitelist/structs.js +1103 -0
  39. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/index.d.ts +2 -0
  40. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/index.js +5 -0
  41. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/init.d.ts +2 -0
  42. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/init.js +40 -0
  43. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/price-feed/structs.d.ts +47 -0
  44. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/price-feed/structs.js +215 -0
  45. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/price-update-policy/structs.d.ts +212 -0
  46. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/price-update-policy/structs.js +525 -0
  47. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/x-oracle/structs.d.ts +471 -0
  48. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/x-oracle/structs.js +669 -0
  49. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/airdrop/structs.d.ts +463 -0
  50. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/airdrop/structs.js +961 -0
  51. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/big-vector/structs.d.ts +137 -0
  52. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/big-vector/structs.js +401 -0
  53. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/critbit/structs.d.ts +226 -0
  54. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/critbit/structs.js +572 -0
  55. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/ecosystem/structs.d.ts +383 -0
  56. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/ecosystem/structs.js +802 -0
  57. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/index.d.ts +2 -0
  58. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/index.js +5 -0
  59. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/init.d.ts +2 -0
  60. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/init.js +72 -0
  61. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/leaderboard/structs.d.ts +591 -0
  62. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/leaderboard/structs.js +1156 -0
  63. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/linked-object-table/structs.d.ts +152 -0
  64. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/linked-object-table/structs.js +380 -0
  65. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/linked-set/structs.d.ts +138 -0
  66. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/linked-set/structs.js +376 -0
  67. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/tgld/structs.d.ts +261 -0
  68. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/tgld/structs.js +653 -0
  69. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/user/structs.d.ts +194 -0
  70. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/user/structs.js +509 -0
  71. package/lib/utils/_dependencies/source/0x2/authenticator-state/structs.d.ts +442 -0
  72. package/lib/utils/_dependencies/source/0x2/authenticator-state/structs.js +807 -0
  73. package/lib/utils/_dependencies/source/0x2/bag/structs.d.ts +56 -0
  74. package/lib/utils/_dependencies/source/0x2/bag/structs.js +210 -0
  75. package/lib/utils/_dependencies/source/0x2/balance/structs.d.ts +79 -0
  76. package/lib/utils/_dependencies/source/0x2/balance/structs.js +332 -0
  77. package/lib/utils/_dependencies/source/0x2/bcs/structs.d.ts +44 -0
  78. package/lib/utils/_dependencies/source/0x2/bcs/structs.js +227 -0
  79. package/lib/utils/_dependencies/source/0x2/bls12381/structs.d.ts +155 -0
  80. package/lib/utils/_dependencies/source/0x2/bls12381/structs.js +578 -0
  81. package/lib/utils/_dependencies/source/0x2/borrow/structs.d.ts +104 -0
  82. package/lib/utils/_dependencies/source/0x2/borrow/structs.js +353 -0
  83. package/lib/utils/_dependencies/source/0x2/clock/structs.d.ts +56 -0
  84. package/lib/utils/_dependencies/source/0x2/clock/structs.js +216 -0
  85. package/lib/utils/_dependencies/source/0x2/coin/structs.d.ts +379 -0
  86. package/lib/utils/_dependencies/source/0x2/coin/structs.js +924 -0
  87. package/lib/utils/_dependencies/source/0x2/deny-list/structs.d.ts +178 -0
  88. package/lib/utils/_dependencies/source/0x2/deny-list/structs.js +386 -0
  89. package/lib/utils/_dependencies/source/0x2/display/structs.d.ts +228 -0
  90. package/lib/utils/_dependencies/source/0x2/display/structs.js +498 -0
  91. package/lib/utils/_dependencies/source/0x2/dynamic-field/structs.d.ts +63 -0
  92. package/lib/utils/_dependencies/source/0x2/dynamic-field/structs.js +226 -0
  93. package/lib/utils/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +42 -0
  94. package/lib/utils/_dependencies/source/0x2/dynamic-object-field/structs.js +208 -0
  95. package/lib/utils/_dependencies/source/0x2/groth16/structs.d.ts +186 -0
  96. package/lib/utils/_dependencies/source/0x2/groth16/structs.js +626 -0
  97. package/lib/utils/_dependencies/source/0x2/group-ops/structs.d.ts +44 -0
  98. package/lib/utils/_dependencies/source/0x2/group-ops/structs.js +229 -0
  99. package/lib/utils/_dependencies/source/0x2/index.d.ts +2 -0
  100. package/lib/utils/_dependencies/source/0x2/index.js +5 -0
  101. package/lib/utils/_dependencies/source/0x2/init.d.ts +2 -0
  102. package/lib/utils/_dependencies/source/0x2/init.js +151 -0
  103. package/lib/utils/_dependencies/source/0x2/kiosk/structs.d.ts +565 -0
  104. package/lib/utils/_dependencies/source/0x2/kiosk/structs.js +1501 -0
  105. package/lib/utils/_dependencies/source/0x2/kiosk-extension/structs.d.ts +112 -0
  106. package/lib/utils/_dependencies/source/0x2/kiosk-extension/structs.js +349 -0
  107. package/lib/utils/_dependencies/source/0x2/linked-table/structs.d.ts +144 -0
  108. package/lib/utils/_dependencies/source/0x2/linked-table/structs.js +380 -0
  109. package/lib/utils/_dependencies/source/0x2/object/structs.d.ts +83 -0
  110. package/lib/utils/_dependencies/source/0x2/object/structs.js +328 -0
  111. package/lib/utils/_dependencies/source/0x2/object-bag/structs.d.ts +56 -0
  112. package/lib/utils/_dependencies/source/0x2/object-bag/structs.js +210 -0
  113. package/lib/utils/_dependencies/source/0x2/object-table/structs.d.ts +56 -0
  114. package/lib/utils/_dependencies/source/0x2/object-table/structs.js +218 -0
  115. package/lib/utils/_dependencies/source/0x2/package/structs.d.ts +262 -0
  116. package/lib/utils/_dependencies/source/0x2/package/structs.js +682 -0
  117. package/lib/utils/_dependencies/source/0x2/priority-queue/structs.d.ts +101 -0
  118. package/lib/utils/_dependencies/source/0x2/priority-queue/structs.js +376 -0
  119. package/lib/utils/_dependencies/source/0x2/random/structs.d.ts +190 -0
  120. package/lib/utils/_dependencies/source/0x2/random/structs.js +533 -0
  121. package/lib/utils/_dependencies/source/0x2/sui/structs.d.ts +41 -0
  122. package/lib/utils/_dependencies/source/0x2/sui/structs.js +203 -0
  123. package/lib/utils/_dependencies/source/0x2/table/structs.d.ts +56 -0
  124. package/lib/utils/_dependencies/source/0x2/table/structs.js +218 -0
  125. package/lib/utils/_dependencies/source/0x2/table-vec/structs.d.ts +63 -0
  126. package/lib/utils/_dependencies/source/0x2/table-vec/structs.js +236 -0
  127. package/lib/utils/_dependencies/source/0x2/token/structs.d.ts +424 -0
  128. package/lib/utils/_dependencies/source/0x2/token/structs.js +937 -0
  129. package/lib/utils/_dependencies/source/0x2/transfer/structs.d.ts +52 -0
  130. package/lib/utils/_dependencies/source/0x2/transfer/structs.js +218 -0
  131. package/lib/utils/_dependencies/source/0x2/transfer-policy/structs.d.ts +345 -0
  132. package/lib/utils/_dependencies/source/0x2/transfer-policy/structs.js +923 -0
  133. package/lib/utils/_dependencies/source/0x2/tx-context/structs.d.ts +68 -0
  134. package/lib/utils/_dependencies/source/0x2/tx-context/structs.js +257 -0
  135. package/lib/utils/_dependencies/source/0x2/url/structs.d.ts +48 -0
  136. package/lib/utils/_dependencies/source/0x2/url/structs.js +204 -0
  137. package/lib/utils/_dependencies/source/0x2/vec-map/structs.d.ts +101 -0
  138. package/lib/utils/_dependencies/source/0x2/vec-map/structs.js +378 -0
  139. package/lib/utils/_dependencies/source/0x2/vec-set/structs.d.ts +45 -0
  140. package/lib/utils/_dependencies/source/0x2/vec-set/structs.js +232 -0
  141. package/lib/utils/_dependencies/source/0x2/versioned/structs.d.ts +104 -0
  142. package/lib/utils/_dependencies/source/0x2/versioned/structs.js +353 -0
  143. package/lib/utils/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +105 -0
  144. package/lib/utils/_dependencies/source/0x2/zklogin-verified-id/structs.js +241 -0
  145. package/lib/utils/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +69 -0
  146. package/lib/utils/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +223 -0
  147. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +2 -0
  148. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +5 -0
  149. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +2 -0
  150. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +31 -0
  151. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +50 -0
  152. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +204 -0
  153. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +2 -0
  154. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +5 -0
  155. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +2 -0
  156. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +34 -0
  157. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +41 -0
  158. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +203 -0
  159. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +112 -0
  160. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +359 -0
  161. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/auto-bid/structs.d.ts +1404 -0
  162. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/auto-bid/structs.js +2581 -0
  163. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/index.d.ts +2 -0
  164. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/index.js +5 -0
  165. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/init.d.ts +2 -0
  166. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/init.js +131 -0
  167. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tails-staking/structs.d.ts +1201 -0
  168. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tails-staking/structs.js +2527 -0
  169. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-authorized-entry/structs.d.ts +1622 -0
  170. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-authorized-entry/structs.js +2192 -0
  171. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-fee-pool-entry/structs.d.ts +395 -0
  172. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-fee-pool-entry/structs.js +1094 -0
  173. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-registry-authorized-entry/structs.d.ts +994 -0
  174. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-registry-authorized-entry/structs.js +1358 -0
  175. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-view-function/structs.d.ts +77 -0
  176. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-view-function/structs.js +245 -0
  177. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/typus-dov-single/structs.d.ts +4338 -0
  178. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/typus-dov-single/structs.js +5821 -0
  179. package/lib/utils/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +2 -0
  180. package/lib/utils/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +5 -0
  181. package/lib/utils/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +2 -0
  182. package/lib/utils/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +5 -0
  183. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/ac-table/structs.d.ts +218 -0
  184. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/ac-table/structs.js +524 -0
  185. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/balance-bag/structs.d.ts +77 -0
  186. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/balance-bag/structs.js +217 -0
  187. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/index.d.ts +2 -0
  188. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/index.js +5 -0
  189. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/init.d.ts +2 -0
  190. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/init.js +46 -0
  191. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/one-time-lock-value/structs.d.ts +69 -0
  192. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/one-time-lock-value/structs.js +233 -0
  193. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/ownership/structs.d.ts +60 -0
  194. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/ownership/structs.js +218 -0
  195. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/supply-bag/structs.d.ts +77 -0
  196. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/supply-bag/structs.js +217 -0
  197. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/wit-table/structs.d.ts +103 -0
  198. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/wit-table/structs.js +259 -0
  199. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/witness/structs.d.ts +79 -0
  200. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/witness/structs.js +332 -0
  201. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/index.d.ts +2 -0
  202. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/index.js +5 -0
  203. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/init.d.ts +2 -0
  204. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/init.js +40 -0
  205. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/oracle/structs.d.ts +277 -0
  206. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/oracle/structs.js +553 -0
  207. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/pyth-parser/structs.d.ts +102 -0
  208. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/pyth-parser/structs.js +353 -0
  209. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/supra/structs.d.ts +65 -0
  210. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/supra/structs.js +233 -0
  211. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/switchboard-feed-parser/structs.d.ts +65 -0
  212. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/switchboard-feed-parser/structs.js +233 -0
  213. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +83 -0
  214. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +192 -0
  215. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +333 -0
  216. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +382 -0
  217. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +68 -0
  218. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +176 -0
  219. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +843 -0
  220. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +959 -0
  221. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +41 -0
  222. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +167 -0
  223. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +2 -0
  224. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +5 -0
  225. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +2 -0
  226. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +80 -0
  227. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +146 -0
  228. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +274 -0
  229. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +2272 -0
  230. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +4465 -0
  231. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +719 -0
  232. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +1107 -0
  233. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +2 -0
  234. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +5 -0
  235. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +2 -0
  236. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +44 -0
  237. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +81 -0
  238. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +258 -0
  239. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +53 -0
  240. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +221 -0
  241. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +115 -0
  242. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +294 -0
  243. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +50 -0
  244. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +204 -0
  245. package/lib/utils/_dependencies/source/0x9c564002970ce40370b0c1a8328d2e91924dab43ca2cb483af67aaf0f7cbe44e/index.d.ts +2 -0
  246. package/lib/utils/_dependencies/source/0x9c564002970ce40370b0c1a8328d2e91924dab43ca2cb483af67aaf0f7cbe44e/index.js +5 -0
  247. package/lib/utils/_dependencies/source/0x9c564002970ce40370b0c1a8328d2e91924dab43ca2cb483af67aaf0f7cbe44e/init.d.ts +2 -0
  248. package/lib/utils/_dependencies/source/0x9c564002970ce40370b0c1a8328d2e91924dab43ca2cb483af67aaf0f7cbe44e/init.js +5 -0
  249. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/authority/structs.d.ts +83 -0
  250. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/authority/structs.js +234 -0
  251. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/balance-pool/structs.d.ts +333 -0
  252. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/balance-pool/structs.js +528 -0
  253. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/big-vector/structs.d.ts +68 -0
  254. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/big-vector/structs.js +230 -0
  255. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/dutch/structs.d.ts +843 -0
  256. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/dutch/structs.js +1573 -0
  257. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/i64/structs.d.ts +41 -0
  258. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/i64/structs.js +203 -0
  259. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/index.d.ts +2 -0
  260. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/index.js +5 -0
  261. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/init.d.ts +2 -0
  262. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/init.js +80 -0
  263. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/linked-list/structs.d.ts +146 -0
  264. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/linked-list/structs.js +386 -0
  265. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/vault/structs.d.ts +2272 -0
  266. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/vault/structs.js +4465 -0
  267. package/lib/utils/_dependencies/source/0xad013d5fde39e15eabda32b3dbdafd67dac32b798ce63237c27a8f73339b9b6f/index.d.ts +2 -0
  268. package/lib/utils/_dependencies/source/0xad013d5fde39e15eabda32b3dbdafd67dac32b798ce63237c27a8f73339b9b6f/index.js +5 -0
  269. package/lib/utils/_dependencies/source/0xad013d5fde39e15eabda32b3dbdafd67dac32b798ce63237c27a8f73339b9b6f/init.d.ts +2 -0
  270. package/lib/utils/_dependencies/source/0xad013d5fde39e15eabda32b3dbdafd67dac32b798ce63237c27a8f73339b9b6f/init.js +5 -0
  271. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +2 -0
  272. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +5 -0
  273. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +2 -0
  274. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +37 -0
  275. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +79 -0
  276. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +328 -0
  277. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +85 -0
  278. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +340 -0
  279. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +41 -0
  280. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +205 -0
  281. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/coin-decimals-registry/structs.d.ts +174 -0
  282. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/coin-decimals-registry/structs.js +511 -0
  283. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/index.d.ts +2 -0
  284. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/index.js +5 -0
  285. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/init.d.ts +2 -0
  286. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/init.js +33 -0
  287. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.d.ts +44 -0
  288. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.js +227 -0
  289. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.d.ts +44 -0
  290. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.js +227 -0
  291. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.d.ts +72 -0
  292. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.js +231 -0
  293. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.d.ts +45 -0
  294. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.js +232 -0
  295. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.d.ts +140 -0
  296. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.js +466 -0
  297. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.d.ts +52 -0
  298. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.js +204 -0
  299. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.d.ts +58 -0
  300. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.js +241 -0
  301. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.d.ts +158 -0
  302. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.js +406 -0
  303. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.d.ts +52 -0
  304. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.js +204 -0
  305. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.d.ts +75 -0
  306. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.js +246 -0
  307. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.d.ts +80 -0
  308. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.js +228 -0
  309. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.d.ts +2 -0
  310. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.js +5 -0
  311. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.d.ts +2 -0
  312. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.js +91 -0
  313. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.d.ts +46 -0
  314. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.js +204 -0
  315. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.d.ts +177 -0
  316. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.js +592 -0
  317. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.d.ts +141 -0
  318. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.js +413 -0
  319. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.d.ts +101 -0
  320. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.js +361 -0
  321. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.d.ts +79 -0
  322. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.js +328 -0
  323. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.d.ts +50 -0
  324. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.js +204 -0
  325. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.d.ts +269 -0
  326. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.js +413 -0
  327. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.d.ts +85 -0
  328. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.js +340 -0
  329. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.d.ts +145 -0
  330. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.js +490 -0
  331. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.d.ts +143 -0
  332. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.js +467 -0
  333. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.d.ts +122 -0
  334. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.js +283 -0
  335. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.d.ts +79 -0
  336. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.js +328 -0
  337. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.d.ts +279 -0
  338. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.js +407 -0
  339. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.d.ts +105 -0
  340. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.js +342 -0
  341. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.d.ts +66 -0
  342. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.js +216 -0
  343. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.d.ts +200 -0
  344. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.js +341 -0
  345. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.d.ts +67 -0
  346. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.js +246 -0
  347. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.d.ts +41 -0
  348. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.js +203 -0
  349. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.d.ts +71 -0
  350. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.js +252 -0
  351. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.d.ts +45 -0
  352. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.js +232 -0
  353. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.d.ts +47 -0
  354. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.js +215 -0
  355. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.d.ts +2 -0
  356. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.js +5 -0
  357. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.d.ts +2 -0
  358. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.js +85 -0
  359. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.d.ts +46 -0
  360. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.js +204 -0
  361. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.d.ts +84 -0
  362. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.js +228 -0
  363. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.d.ts +153 -0
  364. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.js +223 -0
  365. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.d.ts +44 -0
  366. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.js +227 -0
  367. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.d.ts +351 -0
  368. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.js +360 -0
  369. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.d.ts +41 -0
  370. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.js +203 -0
  371. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.d.ts +110 -0
  372. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.js +370 -0
  373. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.d.ts +75 -0
  374. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.js +228 -0
  375. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.d.ts +41 -0
  376. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.js +203 -0
  377. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.d.ts +72 -0
  378. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.js +222 -0
  379. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.d.ts +41 -0
  380. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.js +203 -0
  381. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.d.ts +47 -0
  382. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.js +215 -0
  383. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.d.ts +50 -0
  384. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.js +204 -0
  385. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.d.ts +269 -0
  386. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.js +507 -0
  387. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.d.ts +79 -0
  388. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.js +328 -0
  389. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/admin/structs.d.ts +215 -0
  390. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/admin/structs.js +533 -0
  391. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/index.d.ts +2 -0
  392. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/index.js +5 -0
  393. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/init.d.ts +2 -0
  394. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/init.js +44 -0
  395. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/rewards-pool/structs.d.ts +93 -0
  396. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/rewards-pool/structs.js +243 -0
  397. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/spool/structs.d.ts +125 -0
  398. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/spool/structs.js +271 -0
  399. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/spool-account/structs.d.ts +114 -0
  400. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/spool-account/structs.js +250 -0
  401. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/user/structs.d.ts +413 -0
  402. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/user/structs.js +754 -0
  403. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/app/structs.d.ts +210 -0
  404. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/app/structs.js +392 -0
  405. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/asset-active-state/structs.d.ts +250 -0
  406. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/asset-active-state/structs.js +491 -0
  407. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/borrow/structs.d.ts +85 -0
  408. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/borrow/structs.js +235 -0
  409. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/borrow-dynamics/structs.d.ts +106 -0
  410. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/borrow-dynamics/structs.js +353 -0
  411. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/collateral-stats/structs.d.ts +79 -0
  412. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/collateral-stats/structs.js +328 -0
  413. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/deposit-collateral/structs.d.ts +79 -0
  414. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/deposit-collateral/structs.js +229 -0
  415. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/flash-loan/structs.d.ts +132 -0
  416. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/flash-loan/structs.js +365 -0
  417. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/incentive-rewards/structs.d.ts +109 -0
  418. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/incentive-rewards/structs.js +342 -0
  419. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/index.d.ts +2 -0
  420. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/index.js +5 -0
  421. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/init.d.ts +2 -0
  422. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/init.js +114 -0
  423. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/interest-model/structs.d.ts +571 -0
  424. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/interest-model/structs.js +682 -0
  425. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/limiter/structs.d.ts +591 -0
  426. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/limiter/structs.js +1360 -0
  427. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/liquidate/structs.d.ts +111 -0
  428. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/liquidate/structs.js +247 -0
  429. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/lock-obligation/structs.d.ts +67 -0
  430. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/lock-obligation/structs.js +217 -0
  431. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/market/structs.d.ts +854 -0
  432. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/market/structs.js +293 -0
  433. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/mint/structs.d.ts +100 -0
  434. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/mint/structs.js +240 -0
  435. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation/structs.d.ts +628 -0
  436. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation/structs.js +1010 -0
  437. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-access/structs.d.ts +92 -0
  438. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-access/structs.js +224 -0
  439. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-collaterals/structs.d.ts +79 -0
  440. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-collaterals/structs.js +328 -0
  441. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-debts/structs.d.ts +85 -0
  442. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-debts/structs.js +340 -0
  443. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/open-obligation/structs.d.ts +104 -0
  444. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/open-obligation/structs.js +347 -0
  445. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/redeem/structs.d.ts +100 -0
  446. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/redeem/structs.js +240 -0
  447. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/repay/structs.d.ts +85 -0
  448. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/repay/structs.js +235 -0
  449. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/reserve/structs.d.ts +497 -0
  450. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/reserve/structs.js +927 -0
  451. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/risk-model/structs.d.ts +443 -0
  452. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/risk-model/structs.js +658 -0
  453. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/version/structs.d.ts +102 -0
  454. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/version/structs.js +335 -0
  455. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/withdraw-collateral/structs.d.ts +79 -0
  456. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/withdraw-collateral/structs.js +229 -0
  457. package/lib/utils/_framework/init-source.d.ts +1 -0
  458. package/lib/utils/_framework/init-source.js +81 -0
  459. package/lib/utils/_framework/loader.d.ts +17 -0
  460. package/lib/utils/_framework/loader.js +99 -0
  461. package/lib/utils/_framework/reified.d.ts +100 -0
  462. package/lib/utils/_framework/reified.js +263 -0
  463. package/lib/utils/_framework/util.d.ts +53 -0
  464. package/lib/utils/_framework/util.js +252 -0
  465. package/lib/utils/airdrop/authority-entry.d.ts +22 -0
  466. package/lib/utils/airdrop/authority-entry.js +138 -0
  467. package/lib/utils/airdrop/user-entry.d.ts +10 -0
  468. package/lib/utils/airdrop/user-entry.js +21 -0
  469. package/lib/utils/airdrop/view-functions.d.ts +10 -0
  470. package/lib/utils/airdrop/view-functions.js +72 -0
  471. package/lib/utils/api/defillama/tvl.d.ts +1 -0
  472. package/lib/utils/api/defillama/tvl.js +59 -0
  473. package/lib/utils/{leader-board.d.ts → api/sentio/leader-board.d.ts} +0 -7
  474. package/lib/utils/api/sentio/leader-board.js +104 -0
  475. package/lib/utils/api/sentio/reward-generated.d.ts +16 -0
  476. package/lib/utils/api/sentio/reward-generated.js +524 -0
  477. package/lib/utils/leaderboard/authority-entry.d.ts +22 -0
  478. package/lib/utils/leaderboard/authority-entry.js +91 -0
  479. package/lib/utils/leaderboard/view-function.d.ts +21 -0
  480. package/lib/utils/leaderboard/view-function.js +92 -0
  481. package/lib/utils/locked-period-vault/index.d.ts +3 -0
  482. package/lib/utils/locked-period-vault/index.js +6 -0
  483. package/lib/utils/locked-period-vault/init.d.ts +2 -0
  484. package/lib/utils/locked-period-vault/init.js +44 -0
  485. package/lib/utils/locked-period-vault/locked-period-vault/functions.d.ts +137 -0
  486. package/lib/utils/locked-period-vault/locked-period-vault/functions.js +264 -0
  487. package/lib/utils/locked-period-vault/locked-period-vault/structs.d.ts +1236 -0
  488. package/lib/utils/locked-period-vault/locked-period-vault/structs.js +2400 -0
  489. package/lib/utils/nft-staking/user-entry.d.ts +8 -7
  490. package/lib/utils/nft-staking/user-entry.js +199 -62
  491. package/lib/utils/price.js +3 -1
  492. package/lib/utils/recap2023.js +3 -6
  493. package/lib/utils/tails-exp-dice/fetch.js +1 -1
  494. package/lib/utils/token.js +6 -0
  495. package/lib/utils/tools.d.ts +4 -0
  496. package/lib/utils/tools.js +26 -1
  497. package/lib/utils/typus-dov-single-v2/authorized-entry.js +2 -2
  498. package/lib/utils/typus-dov-single-v2/depositorPnl.js +1 -1
  499. package/lib/utils/typus-dov-single-v2/function/bidding.d.ts +151 -0
  500. package/lib/utils/typus-dov-single-v2/function/bidding.js +834 -0
  501. package/lib/utils/typus-dov-single-v2/function/token.d.ts +21 -0
  502. package/lib/utils/typus-dov-single-v2/function/token.js +38 -0
  503. package/lib/utils/typus-dov-single-v2/function/vault.d.ts +8 -0
  504. package/lib/utils/typus-dov-single-v2/function/vault.js +23 -0
  505. package/lib/utils/typus-dov-single-v2/mfud-user-entry.d.ts +51 -63
  506. package/lib/utils/typus-dov-single-v2/mfud-user-entry.js +171 -231
  507. package/lib/utils/typus-dov-single-v2/user-entry.d.ts +65 -115
  508. package/lib/utils/typus-dov-single-v2/user-entry.js +141 -335
  509. package/lib/utils/typus-dov-single-v2/user-history.d.ts +11 -5
  510. package/lib/utils/typus-dov-single-v2/user-history.js +430 -169
  511. package/lib/utils/typus-dov-single-v2/view-function.d.ts +16 -2
  512. package/lib/utils/typus-dov-single-v2/view-function.js +39 -24
  513. package/lib/utils/typus-nft/fetch.d.ts +13 -8
  514. package/lib/utils/typus-nft/fetch.js +81 -39
  515. package/lib/utils/typus_perp/admin/functions.d.ts +18 -0
  516. package/lib/utils/typus_perp/admin/functions.js +43 -0
  517. package/lib/utils/typus_perp/admin/structs.d.ts +371 -0
  518. package/lib/utils/typus_perp/admin/structs.js +796 -0
  519. package/lib/utils/typus_perp/critbit/functions.d.ts +101 -0
  520. package/lib/utils/typus_perp/critbit/functions.js +186 -0
  521. package/lib/utils/typus_perp/critbit/structs.d.ts +226 -0
  522. package/lib/utils/typus_perp/critbit/structs.js +572 -0
  523. package/lib/utils/typus_perp/index.d.ts +2 -0
  524. package/lib/utils/typus_perp/index.js +5 -0
  525. package/lib/utils/typus_perp/init.d.ts +2 -0
  526. package/lib/utils/typus_perp/init.js +121 -0
  527. package/lib/utils/typus_perp/lp-pool/functions.d.ts +231 -0
  528. package/lib/utils/typus_perp/lp-pool/functions.js +346 -0
  529. package/lib/utils/typus_perp/lp-pool/structs.d.ts +2232 -0
  530. package/lib/utils/typus_perp/lp-pool/structs.js +3300 -0
  531. package/lib/utils/typus_perp/math/functions.d.ts +16 -0
  532. package/lib/utils/typus_perp/math/functions.js +33 -0
  533. package/lib/utils/typus_perp/oracle/functions.d.ts +14 -0
  534. package/lib/utils/typus_perp/oracle/functions.js +23 -0
  535. package/lib/utils/typus_perp/oracle/structs.d.ts +102 -0
  536. package/lib/utils/typus_perp/oracle/structs.js +353 -0
  537. package/lib/utils/typus_perp/position/functions.d.ts +189 -0
  538. package/lib/utils/typus_perp/position/functions.js +307 -0
  539. package/lib/utils/typus_perp/position/structs.d.ts +588 -0
  540. package/lib/utils/typus_perp/position/structs.js +763 -0
  541. package/lib/utils/typus_perp/stake-pool/functions.d.ts +180 -0
  542. package/lib/utils/typus_perp/stake-pool/functions.js +276 -0
  543. package/lib/utils/typus_perp/stake-pool/structs.d.ts +2089 -0
  544. package/lib/utils/typus_perp/stake-pool/structs.js +3539 -0
  545. package/lib/utils/typus_perp/symbol/functions.d.ts +10 -0
  546. package/lib/utils/typus_perp/symbol/functions.js +21 -0
  547. package/lib/utils/typus_perp/symbol/structs.d.ts +76 -0
  548. package/lib/utils/typus_perp/symbol/structs.js +216 -0
  549. package/lib/utils/typus_perp/tlp/functions.d.ts +20 -0
  550. package/lib/utils/typus_perp/tlp/functions.js +36 -0
  551. package/lib/utils/typus_perp/tlp/structs.d.ts +88 -0
  552. package/lib/utils/typus_perp/tlp/structs.js +329 -0
  553. package/lib/utils/typus_perp/token-interface/functions.d.ts +12 -0
  554. package/lib/utils/typus_perp/token-interface/functions.js +21 -0
  555. package/lib/utils/typus_perp/trading/functions.d.ts +234 -0
  556. package/lib/utils/typus_perp/trading/functions.js +329 -0
  557. package/lib/utils/typus_perp/trading/structs.d.ts +2305 -0
  558. package/lib/utils/typus_perp/trading/structs.js +3792 -0
  559. package/lib/utils/typus_perp/treasury-caps/functions.d.ts +10 -0
  560. package/lib/utils/typus_perp/treasury-caps/functions.js +33 -0
  561. package/lib/utils/typus_perp/treasury-caps/structs.d.ts +50 -0
  562. package/lib/utils/typus_perp/treasury-caps/structs.js +204 -0
  563. package/lib/utils/typus_perp/utils/functions.d.ts +24 -0
  564. package/lib/utils/typus_perp/utils/functions.js +41 -0
  565. package/lib/utils/user/view-function.d.ts +9 -0
  566. package/lib/utils/user/view-function.js +72 -0
  567. package/package.json +8 -5
  568. package/lib/utils/leader-board.js +0 -333
  569. package/lib/utils/typus-dov-double/authorized-entry.d.ts +0 -102
  570. package/lib/utils/typus-dov-double/authorized-entry.js +0 -295
  571. package/lib/utils/typus-dov-double/manager-entry.d.ts +0 -219
  572. package/lib/utils/typus-dov-double/manager-entry.js +0 -584
  573. package/lib/utils/typus-dov-double/portfolio-vault.d.ts +0 -68
  574. package/lib/utils/typus-dov-double/portfolio-vault.js +0 -303
  575. package/lib/utils/typus-dov-double/user-entry.d.ts +0 -93
  576. package/lib/utils/typus-dov-double/user-entry.js +0 -280
  577. package/lib/utils/typus-dov-double/view-function.d.ts +0 -11
  578. package/lib/utils/typus-dov-double/view-function.js +0 -213
  579. package/lib/utils/typus-dov-single/db-data.d.ts +0 -19
  580. package/lib/utils/typus-dov-single/db-data.js +0 -226
  581. package/lib/utils/typus-dov-single/portfolio-vault.d.ts +0 -63
  582. package/lib/utils/typus-dov-single/portfolio-vault.js +0 -284
  583. package/lib/utils/typus-dov-single/registry.d.ts +0 -14
  584. package/lib/utils/typus-dov-single/registry.js +0 -126
  585. package/lib/utils/typus-dov-single/user-entry.d.ts +0 -103
  586. package/lib/utils/typus-dov-single/user-entry.js +0 -388
  587. package/lib/utils/typus-dov-single/user-history.d.ts +0 -17
  588. package/lib/utils/typus-dov-single/user-history.js +0 -146
  589. package/lib/utils/typus-dov-single/view-function.d.ts +0 -50
  590. package/lib/utils/typus-dov-single/view-function.js +0 -444
@@ -0,0 +1,1994 @@
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.Whitelist = exports.isWhitelist = exports.Tails = exports.isTails = exports.TYPUS_NFT = exports.isTYPUS_NFT = exports.RoyaltyUpdateEvent = exports.isRoyaltyUpdateEvent = exports.Royalty = exports.isRoyalty = exports.Pool = exports.isPool = exports.NewManagerCapEvent = exports.isNewManagerCapEvent = exports.MintEvent = exports.isMintEvent = exports.LevelUpEvent = exports.isLevelUpEvent = exports.FirstDepositEvent = exports.isFirstDepositEvent = exports.FirstBidEvent = exports.isFirstBidEvent = exports.ExpUpEvent = exports.isExpUpEvent = exports.ManagerCap = exports.isManagerCap = 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("../../0x1/string/structs");
103
+ var structs_2 = require("../../0x2/object/structs");
104
+ var structs_3 = require("../../0x2/transfer-policy/structs");
105
+ var structs_4 = require("../../0x2/url/structs");
106
+ var structs_5 = require("../../0x2/vec-map/structs");
107
+ var structs_6 = require("../table-vec/structs");
108
+ var bcs_1 = require("@mysten/bcs");
109
+ /* ============================== ManagerCap =============================== */
110
+ function isManagerCap(type) {
111
+ type = (0, util_1.compressSuiType)(type);
112
+ return type === "0x123::typus_nft::ManagerCap";
113
+ }
114
+ exports.isManagerCap = isManagerCap;
115
+ var ManagerCap = /** @class */ (function () {
116
+ function ManagerCap(typeArgs, fields) {
117
+ this.$typeName = ManagerCap.$typeName;
118
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ManagerCap.$typeName], __read(typeArgs), false));
119
+ this.$typeArgs = typeArgs;
120
+ this.id = fields.id;
121
+ }
122
+ ManagerCap.reified = function () {
123
+ var _this = this;
124
+ return {
125
+ typeName: ManagerCap.$typeName,
126
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ManagerCap.$typeName], [], false)),
127
+ typeArgs: [],
128
+ reifiedTypeArgs: [],
129
+ fromFields: function (fields) { return ManagerCap.fromFields(fields); },
130
+ fromFieldsWithTypes: function (item) { return ManagerCap.fromFieldsWithTypes(item); },
131
+ fromBcs: function (data) { return ManagerCap.fromBcs(data); },
132
+ bcs: ManagerCap.bcs,
133
+ fromJSONField: function (field) { return ManagerCap.fromJSONField(field); },
134
+ fromJSON: function (json) { return ManagerCap.fromJSON(json); },
135
+ fromSuiParsedData: function (content) { return ManagerCap.fromSuiParsedData(content); },
136
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
137
+ return [2 /*return*/, ManagerCap.fetch(client, id)];
138
+ }); }); },
139
+ new: function (fields) {
140
+ return new ManagerCap([], fields);
141
+ },
142
+ kind: "StructClassReified",
143
+ };
144
+ };
145
+ Object.defineProperty(ManagerCap, "r", {
146
+ get: function () {
147
+ return ManagerCap.reified();
148
+ },
149
+ enumerable: false,
150
+ configurable: true
151
+ });
152
+ ManagerCap.phantom = function () {
153
+ return (0, reified_1.phantom)(ManagerCap.reified());
154
+ };
155
+ Object.defineProperty(ManagerCap, "p", {
156
+ get: function () {
157
+ return ManagerCap.phantom();
158
+ },
159
+ enumerable: false,
160
+ configurable: true
161
+ });
162
+ Object.defineProperty(ManagerCap, "bcs", {
163
+ get: function () {
164
+ return bcs_1.bcs.struct("ManagerCap", {
165
+ id: structs_2.UID.bcs,
166
+ });
167
+ },
168
+ enumerable: false,
169
+ configurable: true
170
+ });
171
+ ManagerCap.fromFields = function (fields) {
172
+ return ManagerCap.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id) });
173
+ };
174
+ ManagerCap.fromFieldsWithTypes = function (item) {
175
+ if (!isManagerCap(item.type)) {
176
+ throw new Error("not a ManagerCap type");
177
+ }
178
+ return ManagerCap.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id) });
179
+ };
180
+ ManagerCap.fromBcs = function (data) {
181
+ return ManagerCap.fromFields(ManagerCap.bcs.parse(data));
182
+ };
183
+ ManagerCap.prototype.toJSONField = function () {
184
+ return {
185
+ id: this.id,
186
+ };
187
+ };
188
+ ManagerCap.prototype.toJSON = function () {
189
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
190
+ };
191
+ ManagerCap.fromJSONField = function (field) {
192
+ return ManagerCap.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id) });
193
+ };
194
+ ManagerCap.fromJSON = function (json) {
195
+ if (json.$typeName !== ManagerCap.$typeName) {
196
+ throw new Error("not a WithTwoGenerics json object");
197
+ }
198
+ return ManagerCap.fromJSONField(json);
199
+ };
200
+ ManagerCap.fromSuiParsedData = function (content) {
201
+ if (content.dataType !== "moveObject") {
202
+ throw new Error("not an object");
203
+ }
204
+ if (!isManagerCap(content.type)) {
205
+ throw new Error("object at ".concat(content.fields.id, " is not a ManagerCap object"));
206
+ }
207
+ return ManagerCap.fromFieldsWithTypes(content);
208
+ };
209
+ ManagerCap.fetch = function (client, id) {
210
+ return __awaiter(this, void 0, void 0, function () {
211
+ var res;
212
+ var _a, _b;
213
+ return __generator(this, function (_c) {
214
+ switch (_c.label) {
215
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
216
+ case 1:
217
+ res = _c.sent();
218
+ if (res.error) {
219
+ throw new Error("error fetching ManagerCap object at id ".concat(id, ": ").concat(res.error.code));
220
+ }
221
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isManagerCap(res.data.bcs.type)) {
222
+ throw new Error("object at id ".concat(id, " is not a ManagerCap object"));
223
+ }
224
+ return [2 /*return*/, ManagerCap.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
225
+ }
226
+ });
227
+ });
228
+ };
229
+ ManagerCap.$typeName = "0x123::typus_nft::ManagerCap";
230
+ ManagerCap.$numTypeParams = 0;
231
+ return ManagerCap;
232
+ }());
233
+ exports.ManagerCap = ManagerCap;
234
+ /* ============================== ExpUpEvent =============================== */
235
+ function isExpUpEvent(type) {
236
+ type = (0, util_1.compressSuiType)(type);
237
+ return type === "0x123::typus_nft::ExpUpEvent";
238
+ }
239
+ exports.isExpUpEvent = isExpUpEvent;
240
+ var ExpUpEvent = /** @class */ (function () {
241
+ function ExpUpEvent(typeArgs, fields) {
242
+ this.$typeName = ExpUpEvent.$typeName;
243
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ExpUpEvent.$typeName], __read(typeArgs), false));
244
+ this.$typeArgs = typeArgs;
245
+ this.nftId = fields.nftId;
246
+ this.number = fields.number;
247
+ this.expEarn = fields.expEarn;
248
+ }
249
+ ExpUpEvent.reified = function () {
250
+ var _this = this;
251
+ return {
252
+ typeName: ExpUpEvent.$typeName,
253
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ExpUpEvent.$typeName], [], false)),
254
+ typeArgs: [],
255
+ reifiedTypeArgs: [],
256
+ fromFields: function (fields) { return ExpUpEvent.fromFields(fields); },
257
+ fromFieldsWithTypes: function (item) { return ExpUpEvent.fromFieldsWithTypes(item); },
258
+ fromBcs: function (data) { return ExpUpEvent.fromBcs(data); },
259
+ bcs: ExpUpEvent.bcs,
260
+ fromJSONField: function (field) { return ExpUpEvent.fromJSONField(field); },
261
+ fromJSON: function (json) { return ExpUpEvent.fromJSON(json); },
262
+ fromSuiParsedData: function (content) { return ExpUpEvent.fromSuiParsedData(content); },
263
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
264
+ return [2 /*return*/, ExpUpEvent.fetch(client, id)];
265
+ }); }); },
266
+ new: function (fields) {
267
+ return new ExpUpEvent([], fields);
268
+ },
269
+ kind: "StructClassReified",
270
+ };
271
+ };
272
+ Object.defineProperty(ExpUpEvent, "r", {
273
+ get: function () {
274
+ return ExpUpEvent.reified();
275
+ },
276
+ enumerable: false,
277
+ configurable: true
278
+ });
279
+ ExpUpEvent.phantom = function () {
280
+ return (0, reified_1.phantom)(ExpUpEvent.reified());
281
+ };
282
+ Object.defineProperty(ExpUpEvent, "p", {
283
+ get: function () {
284
+ return ExpUpEvent.phantom();
285
+ },
286
+ enumerable: false,
287
+ configurable: true
288
+ });
289
+ Object.defineProperty(ExpUpEvent, "bcs", {
290
+ get: function () {
291
+ return bcs_1.bcs.struct("ExpUpEvent", {
292
+ nft_id: structs_2.ID.bcs,
293
+ number: bcs_1.bcs.u64(),
294
+ exp_earn: bcs_1.bcs.u64(),
295
+ });
296
+ },
297
+ enumerable: false,
298
+ configurable: true
299
+ });
300
+ ExpUpEvent.fromFields = function (fields) {
301
+ return ExpUpEvent.reified().new({
302
+ nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id),
303
+ number: (0, reified_1.decodeFromFields)("u64", fields.number),
304
+ expEarn: (0, reified_1.decodeFromFields)("u64", fields.exp_earn),
305
+ });
306
+ };
307
+ ExpUpEvent.fromFieldsWithTypes = function (item) {
308
+ if (!isExpUpEvent(item.type)) {
309
+ throw new Error("not a ExpUpEvent type");
310
+ }
311
+ return ExpUpEvent.reified().new({
312
+ nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id),
313
+ number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number),
314
+ expEarn: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_earn),
315
+ });
316
+ };
317
+ ExpUpEvent.fromBcs = function (data) {
318
+ return ExpUpEvent.fromFields(ExpUpEvent.bcs.parse(data));
319
+ };
320
+ ExpUpEvent.prototype.toJSONField = function () {
321
+ return {
322
+ nftId: this.nftId,
323
+ number: this.number.toString(),
324
+ expEarn: this.expEarn.toString(),
325
+ };
326
+ };
327
+ ExpUpEvent.prototype.toJSON = function () {
328
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
329
+ };
330
+ ExpUpEvent.fromJSONField = function (field) {
331
+ return ExpUpEvent.reified().new({
332
+ nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId),
333
+ number: (0, reified_1.decodeFromJSONField)("u64", field.number),
334
+ expEarn: (0, reified_1.decodeFromJSONField)("u64", field.expEarn),
335
+ });
336
+ };
337
+ ExpUpEvent.fromJSON = function (json) {
338
+ if (json.$typeName !== ExpUpEvent.$typeName) {
339
+ throw new Error("not a WithTwoGenerics json object");
340
+ }
341
+ return ExpUpEvent.fromJSONField(json);
342
+ };
343
+ ExpUpEvent.fromSuiParsedData = function (content) {
344
+ if (content.dataType !== "moveObject") {
345
+ throw new Error("not an object");
346
+ }
347
+ if (!isExpUpEvent(content.type)) {
348
+ throw new Error("object at ".concat(content.fields.id, " is not a ExpUpEvent object"));
349
+ }
350
+ return ExpUpEvent.fromFieldsWithTypes(content);
351
+ };
352
+ ExpUpEvent.fetch = function (client, id) {
353
+ return __awaiter(this, void 0, void 0, function () {
354
+ var res;
355
+ var _a, _b;
356
+ return __generator(this, function (_c) {
357
+ switch (_c.label) {
358
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
359
+ case 1:
360
+ res = _c.sent();
361
+ if (res.error) {
362
+ throw new Error("error fetching ExpUpEvent object at id ".concat(id, ": ").concat(res.error.code));
363
+ }
364
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isExpUpEvent(res.data.bcs.type)) {
365
+ throw new Error("object at id ".concat(id, " is not a ExpUpEvent object"));
366
+ }
367
+ return [2 /*return*/, ExpUpEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
368
+ }
369
+ });
370
+ });
371
+ };
372
+ ExpUpEvent.$typeName = "0x123::typus_nft::ExpUpEvent";
373
+ ExpUpEvent.$numTypeParams = 0;
374
+ return ExpUpEvent;
375
+ }());
376
+ exports.ExpUpEvent = ExpUpEvent;
377
+ /* ============================== FirstBidEvent =============================== */
378
+ function isFirstBidEvent(type) {
379
+ type = (0, util_1.compressSuiType)(type);
380
+ return type === "0x123::typus_nft::FirstBidEvent";
381
+ }
382
+ exports.isFirstBidEvent = isFirstBidEvent;
383
+ var FirstBidEvent = /** @class */ (function () {
384
+ function FirstBidEvent(typeArgs, fields) {
385
+ this.$typeName = FirstBidEvent.$typeName;
386
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([FirstBidEvent.$typeName], __read(typeArgs), false));
387
+ this.$typeArgs = typeArgs;
388
+ this.nftId = fields.nftId;
389
+ this.number = fields.number;
390
+ this.expEarn = fields.expEarn;
391
+ }
392
+ FirstBidEvent.reified = function () {
393
+ var _this = this;
394
+ return {
395
+ typeName: FirstBidEvent.$typeName,
396
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([FirstBidEvent.$typeName], [], false)),
397
+ typeArgs: [],
398
+ reifiedTypeArgs: [],
399
+ fromFields: function (fields) { return FirstBidEvent.fromFields(fields); },
400
+ fromFieldsWithTypes: function (item) { return FirstBidEvent.fromFieldsWithTypes(item); },
401
+ fromBcs: function (data) { return FirstBidEvent.fromBcs(data); },
402
+ bcs: FirstBidEvent.bcs,
403
+ fromJSONField: function (field) { return FirstBidEvent.fromJSONField(field); },
404
+ fromJSON: function (json) { return FirstBidEvent.fromJSON(json); },
405
+ fromSuiParsedData: function (content) { return FirstBidEvent.fromSuiParsedData(content); },
406
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
407
+ return [2 /*return*/, FirstBidEvent.fetch(client, id)];
408
+ }); }); },
409
+ new: function (fields) {
410
+ return new FirstBidEvent([], fields);
411
+ },
412
+ kind: "StructClassReified",
413
+ };
414
+ };
415
+ Object.defineProperty(FirstBidEvent, "r", {
416
+ get: function () {
417
+ return FirstBidEvent.reified();
418
+ },
419
+ enumerable: false,
420
+ configurable: true
421
+ });
422
+ FirstBidEvent.phantom = function () {
423
+ return (0, reified_1.phantom)(FirstBidEvent.reified());
424
+ };
425
+ Object.defineProperty(FirstBidEvent, "p", {
426
+ get: function () {
427
+ return FirstBidEvent.phantom();
428
+ },
429
+ enumerable: false,
430
+ configurable: true
431
+ });
432
+ Object.defineProperty(FirstBidEvent, "bcs", {
433
+ get: function () {
434
+ return bcs_1.bcs.struct("FirstBidEvent", {
435
+ nft_id: structs_2.ID.bcs,
436
+ number: bcs_1.bcs.u64(),
437
+ exp_earn: bcs_1.bcs.u64(),
438
+ });
439
+ },
440
+ enumerable: false,
441
+ configurable: true
442
+ });
443
+ FirstBidEvent.fromFields = function (fields) {
444
+ return FirstBidEvent.reified().new({
445
+ nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id),
446
+ number: (0, reified_1.decodeFromFields)("u64", fields.number),
447
+ expEarn: (0, reified_1.decodeFromFields)("u64", fields.exp_earn),
448
+ });
449
+ };
450
+ FirstBidEvent.fromFieldsWithTypes = function (item) {
451
+ if (!isFirstBidEvent(item.type)) {
452
+ throw new Error("not a FirstBidEvent type");
453
+ }
454
+ return FirstBidEvent.reified().new({
455
+ nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id),
456
+ number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number),
457
+ expEarn: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_earn),
458
+ });
459
+ };
460
+ FirstBidEvent.fromBcs = function (data) {
461
+ return FirstBidEvent.fromFields(FirstBidEvent.bcs.parse(data));
462
+ };
463
+ FirstBidEvent.prototype.toJSONField = function () {
464
+ return {
465
+ nftId: this.nftId,
466
+ number: this.number.toString(),
467
+ expEarn: this.expEarn.toString(),
468
+ };
469
+ };
470
+ FirstBidEvent.prototype.toJSON = function () {
471
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
472
+ };
473
+ FirstBidEvent.fromJSONField = function (field) {
474
+ return FirstBidEvent.reified().new({
475
+ nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId),
476
+ number: (0, reified_1.decodeFromJSONField)("u64", field.number),
477
+ expEarn: (0, reified_1.decodeFromJSONField)("u64", field.expEarn),
478
+ });
479
+ };
480
+ FirstBidEvent.fromJSON = function (json) {
481
+ if (json.$typeName !== FirstBidEvent.$typeName) {
482
+ throw new Error("not a WithTwoGenerics json object");
483
+ }
484
+ return FirstBidEvent.fromJSONField(json);
485
+ };
486
+ FirstBidEvent.fromSuiParsedData = function (content) {
487
+ if (content.dataType !== "moveObject") {
488
+ throw new Error("not an object");
489
+ }
490
+ if (!isFirstBidEvent(content.type)) {
491
+ throw new Error("object at ".concat(content.fields.id, " is not a FirstBidEvent object"));
492
+ }
493
+ return FirstBidEvent.fromFieldsWithTypes(content);
494
+ };
495
+ FirstBidEvent.fetch = function (client, id) {
496
+ return __awaiter(this, void 0, void 0, function () {
497
+ var res;
498
+ var _a, _b;
499
+ return __generator(this, function (_c) {
500
+ switch (_c.label) {
501
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
502
+ case 1:
503
+ res = _c.sent();
504
+ if (res.error) {
505
+ throw new Error("error fetching FirstBidEvent object at id ".concat(id, ": ").concat(res.error.code));
506
+ }
507
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isFirstBidEvent(res.data.bcs.type)) {
508
+ throw new Error("object at id ".concat(id, " is not a FirstBidEvent object"));
509
+ }
510
+ return [2 /*return*/, FirstBidEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
511
+ }
512
+ });
513
+ });
514
+ };
515
+ FirstBidEvent.$typeName = "0x123::typus_nft::FirstBidEvent";
516
+ FirstBidEvent.$numTypeParams = 0;
517
+ return FirstBidEvent;
518
+ }());
519
+ exports.FirstBidEvent = FirstBidEvent;
520
+ /* ============================== FirstDepositEvent =============================== */
521
+ function isFirstDepositEvent(type) {
522
+ type = (0, util_1.compressSuiType)(type);
523
+ return type === "0x123::typus_nft::FirstDepositEvent";
524
+ }
525
+ exports.isFirstDepositEvent = isFirstDepositEvent;
526
+ var FirstDepositEvent = /** @class */ (function () {
527
+ function FirstDepositEvent(typeArgs, fields) {
528
+ this.$typeName = FirstDepositEvent.$typeName;
529
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([FirstDepositEvent.$typeName], __read(typeArgs), false));
530
+ this.$typeArgs = typeArgs;
531
+ this.nftId = fields.nftId;
532
+ this.number = fields.number;
533
+ this.expEarn = fields.expEarn;
534
+ }
535
+ FirstDepositEvent.reified = function () {
536
+ var _this = this;
537
+ return {
538
+ typeName: FirstDepositEvent.$typeName,
539
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([FirstDepositEvent.$typeName], [], false)),
540
+ typeArgs: [],
541
+ reifiedTypeArgs: [],
542
+ fromFields: function (fields) { return FirstDepositEvent.fromFields(fields); },
543
+ fromFieldsWithTypes: function (item) { return FirstDepositEvent.fromFieldsWithTypes(item); },
544
+ fromBcs: function (data) { return FirstDepositEvent.fromBcs(data); },
545
+ bcs: FirstDepositEvent.bcs,
546
+ fromJSONField: function (field) { return FirstDepositEvent.fromJSONField(field); },
547
+ fromJSON: function (json) { return FirstDepositEvent.fromJSON(json); },
548
+ fromSuiParsedData: function (content) { return FirstDepositEvent.fromSuiParsedData(content); },
549
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
550
+ return [2 /*return*/, FirstDepositEvent.fetch(client, id)];
551
+ }); }); },
552
+ new: function (fields) {
553
+ return new FirstDepositEvent([], fields);
554
+ },
555
+ kind: "StructClassReified",
556
+ };
557
+ };
558
+ Object.defineProperty(FirstDepositEvent, "r", {
559
+ get: function () {
560
+ return FirstDepositEvent.reified();
561
+ },
562
+ enumerable: false,
563
+ configurable: true
564
+ });
565
+ FirstDepositEvent.phantom = function () {
566
+ return (0, reified_1.phantom)(FirstDepositEvent.reified());
567
+ };
568
+ Object.defineProperty(FirstDepositEvent, "p", {
569
+ get: function () {
570
+ return FirstDepositEvent.phantom();
571
+ },
572
+ enumerable: false,
573
+ configurable: true
574
+ });
575
+ Object.defineProperty(FirstDepositEvent, "bcs", {
576
+ get: function () {
577
+ return bcs_1.bcs.struct("FirstDepositEvent", {
578
+ nft_id: structs_2.ID.bcs,
579
+ number: bcs_1.bcs.u64(),
580
+ exp_earn: bcs_1.bcs.u64(),
581
+ });
582
+ },
583
+ enumerable: false,
584
+ configurable: true
585
+ });
586
+ FirstDepositEvent.fromFields = function (fields) {
587
+ return FirstDepositEvent.reified().new({
588
+ nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id),
589
+ number: (0, reified_1.decodeFromFields)("u64", fields.number),
590
+ expEarn: (0, reified_1.decodeFromFields)("u64", fields.exp_earn),
591
+ });
592
+ };
593
+ FirstDepositEvent.fromFieldsWithTypes = function (item) {
594
+ if (!isFirstDepositEvent(item.type)) {
595
+ throw new Error("not a FirstDepositEvent type");
596
+ }
597
+ return FirstDepositEvent.reified().new({
598
+ nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id),
599
+ number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number),
600
+ expEarn: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp_earn),
601
+ });
602
+ };
603
+ FirstDepositEvent.fromBcs = function (data) {
604
+ return FirstDepositEvent.fromFields(FirstDepositEvent.bcs.parse(data));
605
+ };
606
+ FirstDepositEvent.prototype.toJSONField = function () {
607
+ return {
608
+ nftId: this.nftId,
609
+ number: this.number.toString(),
610
+ expEarn: this.expEarn.toString(),
611
+ };
612
+ };
613
+ FirstDepositEvent.prototype.toJSON = function () {
614
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
615
+ };
616
+ FirstDepositEvent.fromJSONField = function (field) {
617
+ return FirstDepositEvent.reified().new({
618
+ nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId),
619
+ number: (0, reified_1.decodeFromJSONField)("u64", field.number),
620
+ expEarn: (0, reified_1.decodeFromJSONField)("u64", field.expEarn),
621
+ });
622
+ };
623
+ FirstDepositEvent.fromJSON = function (json) {
624
+ if (json.$typeName !== FirstDepositEvent.$typeName) {
625
+ throw new Error("not a WithTwoGenerics json object");
626
+ }
627
+ return FirstDepositEvent.fromJSONField(json);
628
+ };
629
+ FirstDepositEvent.fromSuiParsedData = function (content) {
630
+ if (content.dataType !== "moveObject") {
631
+ throw new Error("not an object");
632
+ }
633
+ if (!isFirstDepositEvent(content.type)) {
634
+ throw new Error("object at ".concat(content.fields.id, " is not a FirstDepositEvent object"));
635
+ }
636
+ return FirstDepositEvent.fromFieldsWithTypes(content);
637
+ };
638
+ FirstDepositEvent.fetch = function (client, id) {
639
+ return __awaiter(this, void 0, void 0, function () {
640
+ var res;
641
+ var _a, _b;
642
+ return __generator(this, function (_c) {
643
+ switch (_c.label) {
644
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
645
+ case 1:
646
+ res = _c.sent();
647
+ if (res.error) {
648
+ throw new Error("error fetching FirstDepositEvent object at id ".concat(id, ": ").concat(res.error.code));
649
+ }
650
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isFirstDepositEvent(res.data.bcs.type)) {
651
+ throw new Error("object at id ".concat(id, " is not a FirstDepositEvent object"));
652
+ }
653
+ return [2 /*return*/, FirstDepositEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
654
+ }
655
+ });
656
+ });
657
+ };
658
+ FirstDepositEvent.$typeName = "0x123::typus_nft::FirstDepositEvent";
659
+ FirstDepositEvent.$numTypeParams = 0;
660
+ return FirstDepositEvent;
661
+ }());
662
+ exports.FirstDepositEvent = FirstDepositEvent;
663
+ /* ============================== LevelUpEvent =============================== */
664
+ function isLevelUpEvent(type) {
665
+ type = (0, util_1.compressSuiType)(type);
666
+ return type === "0x123::typus_nft::LevelUpEvent";
667
+ }
668
+ exports.isLevelUpEvent = isLevelUpEvent;
669
+ var LevelUpEvent = /** @class */ (function () {
670
+ function LevelUpEvent(typeArgs, fields) {
671
+ this.$typeName = LevelUpEvent.$typeName;
672
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([LevelUpEvent.$typeName], __read(typeArgs), false));
673
+ this.$typeArgs = typeArgs;
674
+ this.nftId = fields.nftId;
675
+ this.level = fields.level;
676
+ }
677
+ LevelUpEvent.reified = function () {
678
+ var _this = this;
679
+ return {
680
+ typeName: LevelUpEvent.$typeName,
681
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([LevelUpEvent.$typeName], [], false)),
682
+ typeArgs: [],
683
+ reifiedTypeArgs: [],
684
+ fromFields: function (fields) { return LevelUpEvent.fromFields(fields); },
685
+ fromFieldsWithTypes: function (item) { return LevelUpEvent.fromFieldsWithTypes(item); },
686
+ fromBcs: function (data) { return LevelUpEvent.fromBcs(data); },
687
+ bcs: LevelUpEvent.bcs,
688
+ fromJSONField: function (field) { return LevelUpEvent.fromJSONField(field); },
689
+ fromJSON: function (json) { return LevelUpEvent.fromJSON(json); },
690
+ fromSuiParsedData: function (content) { return LevelUpEvent.fromSuiParsedData(content); },
691
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
692
+ return [2 /*return*/, LevelUpEvent.fetch(client, id)];
693
+ }); }); },
694
+ new: function (fields) {
695
+ return new LevelUpEvent([], fields);
696
+ },
697
+ kind: "StructClassReified",
698
+ };
699
+ };
700
+ Object.defineProperty(LevelUpEvent, "r", {
701
+ get: function () {
702
+ return LevelUpEvent.reified();
703
+ },
704
+ enumerable: false,
705
+ configurable: true
706
+ });
707
+ LevelUpEvent.phantom = function () {
708
+ return (0, reified_1.phantom)(LevelUpEvent.reified());
709
+ };
710
+ Object.defineProperty(LevelUpEvent, "p", {
711
+ get: function () {
712
+ return LevelUpEvent.phantom();
713
+ },
714
+ enumerable: false,
715
+ configurable: true
716
+ });
717
+ Object.defineProperty(LevelUpEvent, "bcs", {
718
+ get: function () {
719
+ return bcs_1.bcs.struct("LevelUpEvent", {
720
+ nft_id: structs_2.ID.bcs,
721
+ level: bcs_1.bcs.u64(),
722
+ });
723
+ },
724
+ enumerable: false,
725
+ configurable: true
726
+ });
727
+ LevelUpEvent.fromFields = function (fields) {
728
+ return LevelUpEvent.reified().new({
729
+ nftId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.nft_id),
730
+ level: (0, reified_1.decodeFromFields)("u64", fields.level),
731
+ });
732
+ };
733
+ LevelUpEvent.fromFieldsWithTypes = function (item) {
734
+ if (!isLevelUpEvent(item.type)) {
735
+ throw new Error("not a LevelUpEvent type");
736
+ }
737
+ return LevelUpEvent.reified().new({
738
+ nftId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.nft_id),
739
+ level: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.level),
740
+ });
741
+ };
742
+ LevelUpEvent.fromBcs = function (data) {
743
+ return LevelUpEvent.fromFields(LevelUpEvent.bcs.parse(data));
744
+ };
745
+ LevelUpEvent.prototype.toJSONField = function () {
746
+ return {
747
+ nftId: this.nftId,
748
+ level: this.level.toString(),
749
+ };
750
+ };
751
+ LevelUpEvent.prototype.toJSON = function () {
752
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
753
+ };
754
+ LevelUpEvent.fromJSONField = function (field) {
755
+ return LevelUpEvent.reified().new({
756
+ nftId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.nftId),
757
+ level: (0, reified_1.decodeFromJSONField)("u64", field.level),
758
+ });
759
+ };
760
+ LevelUpEvent.fromJSON = function (json) {
761
+ if (json.$typeName !== LevelUpEvent.$typeName) {
762
+ throw new Error("not a WithTwoGenerics json object");
763
+ }
764
+ return LevelUpEvent.fromJSONField(json);
765
+ };
766
+ LevelUpEvent.fromSuiParsedData = function (content) {
767
+ if (content.dataType !== "moveObject") {
768
+ throw new Error("not an object");
769
+ }
770
+ if (!isLevelUpEvent(content.type)) {
771
+ throw new Error("object at ".concat(content.fields.id, " is not a LevelUpEvent object"));
772
+ }
773
+ return LevelUpEvent.fromFieldsWithTypes(content);
774
+ };
775
+ LevelUpEvent.fetch = function (client, id) {
776
+ return __awaiter(this, void 0, void 0, function () {
777
+ var res;
778
+ var _a, _b;
779
+ return __generator(this, function (_c) {
780
+ switch (_c.label) {
781
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
782
+ case 1:
783
+ res = _c.sent();
784
+ if (res.error) {
785
+ throw new Error("error fetching LevelUpEvent object at id ".concat(id, ": ").concat(res.error.code));
786
+ }
787
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLevelUpEvent(res.data.bcs.type)) {
788
+ throw new Error("object at id ".concat(id, " is not a LevelUpEvent object"));
789
+ }
790
+ return [2 /*return*/, LevelUpEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
791
+ }
792
+ });
793
+ });
794
+ };
795
+ LevelUpEvent.$typeName = "0x123::typus_nft::LevelUpEvent";
796
+ LevelUpEvent.$numTypeParams = 0;
797
+ return LevelUpEvent;
798
+ }());
799
+ exports.LevelUpEvent = LevelUpEvent;
800
+ /* ============================== MintEvent =============================== */
801
+ function isMintEvent(type) {
802
+ type = (0, util_1.compressSuiType)(type);
803
+ return type === "0x123::typus_nft::MintEvent";
804
+ }
805
+ exports.isMintEvent = isMintEvent;
806
+ var MintEvent = /** @class */ (function () {
807
+ function MintEvent(typeArgs, fields) {
808
+ this.$typeName = MintEvent.$typeName;
809
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([MintEvent.$typeName], __read(typeArgs), false));
810
+ this.$typeArgs = typeArgs;
811
+ this.id = fields.id;
812
+ this.name = fields.name;
813
+ this.description = fields.description;
814
+ this.number = fields.number;
815
+ this.url = fields.url;
816
+ this.attributes = fields.attributes;
817
+ this.sender = fields.sender;
818
+ }
819
+ MintEvent.reified = function () {
820
+ var _this = this;
821
+ return {
822
+ typeName: MintEvent.$typeName,
823
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([MintEvent.$typeName], [], false)),
824
+ typeArgs: [],
825
+ reifiedTypeArgs: [],
826
+ fromFields: function (fields) { return MintEvent.fromFields(fields); },
827
+ fromFieldsWithTypes: function (item) { return MintEvent.fromFieldsWithTypes(item); },
828
+ fromBcs: function (data) { return MintEvent.fromBcs(data); },
829
+ bcs: MintEvent.bcs,
830
+ fromJSONField: function (field) { return MintEvent.fromJSONField(field); },
831
+ fromJSON: function (json) { return MintEvent.fromJSON(json); },
832
+ fromSuiParsedData: function (content) { return MintEvent.fromSuiParsedData(content); },
833
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
834
+ return [2 /*return*/, MintEvent.fetch(client, id)];
835
+ }); }); },
836
+ new: function (fields) {
837
+ return new MintEvent([], fields);
838
+ },
839
+ kind: "StructClassReified",
840
+ };
841
+ };
842
+ Object.defineProperty(MintEvent, "r", {
843
+ get: function () {
844
+ return MintEvent.reified();
845
+ },
846
+ enumerable: false,
847
+ configurable: true
848
+ });
849
+ MintEvent.phantom = function () {
850
+ return (0, reified_1.phantom)(MintEvent.reified());
851
+ };
852
+ Object.defineProperty(MintEvent, "p", {
853
+ get: function () {
854
+ return MintEvent.phantom();
855
+ },
856
+ enumerable: false,
857
+ configurable: true
858
+ });
859
+ Object.defineProperty(MintEvent, "bcs", {
860
+ get: function () {
861
+ return bcs_1.bcs.struct("MintEvent", {
862
+ id: structs_2.ID.bcs,
863
+ name: structs_1.String.bcs,
864
+ description: structs_1.String.bcs,
865
+ number: bcs_1.bcs.u64(),
866
+ url: structs_4.Url.bcs,
867
+ attributes: structs_5.VecMap.bcs(structs_1.String.bcs, structs_1.String.bcs),
868
+ sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
869
+ });
870
+ },
871
+ enumerable: false,
872
+ configurable: true
873
+ });
874
+ MintEvent.fromFields = function (fields) {
875
+ return MintEvent.reified().new({
876
+ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id),
877
+ name: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.name),
878
+ description: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.description),
879
+ number: (0, reified_1.decodeFromFields)("u64", fields.number),
880
+ url: (0, reified_1.decodeFromFields)(structs_4.Url.reified(), fields.url),
881
+ attributes: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), fields.attributes),
882
+ sender: (0, reified_1.decodeFromFields)("address", fields.sender),
883
+ });
884
+ };
885
+ MintEvent.fromFieldsWithTypes = function (item) {
886
+ if (!isMintEvent(item.type)) {
887
+ throw new Error("not a MintEvent type");
888
+ }
889
+ return MintEvent.reified().new({
890
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id),
891
+ name: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.name),
892
+ description: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.description),
893
+ number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number),
894
+ url: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.Url.reified(), item.fields.url),
895
+ attributes: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), item.fields.attributes),
896
+ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
897
+ });
898
+ };
899
+ MintEvent.fromBcs = function (data) {
900
+ return MintEvent.fromFields(MintEvent.bcs.parse(data));
901
+ };
902
+ MintEvent.prototype.toJSONField = function () {
903
+ return {
904
+ id: this.id,
905
+ name: this.name,
906
+ description: this.description,
907
+ number: this.number.toString(),
908
+ url: this.url,
909
+ attributes: this.attributes.toJSONField(),
910
+ sender: this.sender,
911
+ };
912
+ };
913
+ MintEvent.prototype.toJSON = function () {
914
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
915
+ };
916
+ MintEvent.fromJSONField = function (field) {
917
+ return MintEvent.reified().new({
918
+ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id),
919
+ name: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.name),
920
+ description: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.description),
921
+ number: (0, reified_1.decodeFromJSONField)("u64", field.number),
922
+ url: (0, reified_1.decodeFromJSONField)(structs_4.Url.reified(), field.url),
923
+ attributes: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), field.attributes),
924
+ sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
925
+ });
926
+ };
927
+ MintEvent.fromJSON = function (json) {
928
+ if (json.$typeName !== MintEvent.$typeName) {
929
+ throw new Error("not a WithTwoGenerics json object");
930
+ }
931
+ return MintEvent.fromJSONField(json);
932
+ };
933
+ MintEvent.fromSuiParsedData = function (content) {
934
+ if (content.dataType !== "moveObject") {
935
+ throw new Error("not an object");
936
+ }
937
+ if (!isMintEvent(content.type)) {
938
+ throw new Error("object at ".concat(content.fields.id, " is not a MintEvent object"));
939
+ }
940
+ return MintEvent.fromFieldsWithTypes(content);
941
+ };
942
+ MintEvent.fetch = function (client, id) {
943
+ return __awaiter(this, void 0, void 0, function () {
944
+ var res;
945
+ var _a, _b;
946
+ return __generator(this, function (_c) {
947
+ switch (_c.label) {
948
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
949
+ case 1:
950
+ res = _c.sent();
951
+ if (res.error) {
952
+ throw new Error("error fetching MintEvent object at id ".concat(id, ": ").concat(res.error.code));
953
+ }
954
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isMintEvent(res.data.bcs.type)) {
955
+ throw new Error("object at id ".concat(id, " is not a MintEvent object"));
956
+ }
957
+ return [2 /*return*/, MintEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
958
+ }
959
+ });
960
+ });
961
+ };
962
+ MintEvent.$typeName = "0x123::typus_nft::MintEvent";
963
+ MintEvent.$numTypeParams = 0;
964
+ return MintEvent;
965
+ }());
966
+ exports.MintEvent = MintEvent;
967
+ /* ============================== NewManagerCapEvent =============================== */
968
+ function isNewManagerCapEvent(type) {
969
+ type = (0, util_1.compressSuiType)(type);
970
+ return type === "0x123::typus_nft::NewManagerCapEvent";
971
+ }
972
+ exports.isNewManagerCapEvent = isNewManagerCapEvent;
973
+ var NewManagerCapEvent = /** @class */ (function () {
974
+ function NewManagerCapEvent(typeArgs, fields) {
975
+ this.$typeName = NewManagerCapEvent.$typeName;
976
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewManagerCapEvent.$typeName], __read(typeArgs), false));
977
+ this.$typeArgs = typeArgs;
978
+ this.id = fields.id;
979
+ this.sender = fields.sender;
980
+ }
981
+ NewManagerCapEvent.reified = function () {
982
+ var _this = this;
983
+ return {
984
+ typeName: NewManagerCapEvent.$typeName,
985
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewManagerCapEvent.$typeName], [], false)),
986
+ typeArgs: [],
987
+ reifiedTypeArgs: [],
988
+ fromFields: function (fields) { return NewManagerCapEvent.fromFields(fields); },
989
+ fromFieldsWithTypes: function (item) { return NewManagerCapEvent.fromFieldsWithTypes(item); },
990
+ fromBcs: function (data) { return NewManagerCapEvent.fromBcs(data); },
991
+ bcs: NewManagerCapEvent.bcs,
992
+ fromJSONField: function (field) { return NewManagerCapEvent.fromJSONField(field); },
993
+ fromJSON: function (json) { return NewManagerCapEvent.fromJSON(json); },
994
+ fromSuiParsedData: function (content) { return NewManagerCapEvent.fromSuiParsedData(content); },
995
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
996
+ return [2 /*return*/, NewManagerCapEvent.fetch(client, id)];
997
+ }); }); },
998
+ new: function (fields) {
999
+ return new NewManagerCapEvent([], fields);
1000
+ },
1001
+ kind: "StructClassReified",
1002
+ };
1003
+ };
1004
+ Object.defineProperty(NewManagerCapEvent, "r", {
1005
+ get: function () {
1006
+ return NewManagerCapEvent.reified();
1007
+ },
1008
+ enumerable: false,
1009
+ configurable: true
1010
+ });
1011
+ NewManagerCapEvent.phantom = function () {
1012
+ return (0, reified_1.phantom)(NewManagerCapEvent.reified());
1013
+ };
1014
+ Object.defineProperty(NewManagerCapEvent, "p", {
1015
+ get: function () {
1016
+ return NewManagerCapEvent.phantom();
1017
+ },
1018
+ enumerable: false,
1019
+ configurable: true
1020
+ });
1021
+ Object.defineProperty(NewManagerCapEvent, "bcs", {
1022
+ get: function () {
1023
+ return bcs_1.bcs.struct("NewManagerCapEvent", {
1024
+ id: structs_2.ID.bcs,
1025
+ sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
1026
+ });
1027
+ },
1028
+ enumerable: false,
1029
+ configurable: true
1030
+ });
1031
+ NewManagerCapEvent.fromFields = function (fields) {
1032
+ return NewManagerCapEvent.reified().new({
1033
+ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id),
1034
+ sender: (0, reified_1.decodeFromFields)("address", fields.sender),
1035
+ });
1036
+ };
1037
+ NewManagerCapEvent.fromFieldsWithTypes = function (item) {
1038
+ if (!isNewManagerCapEvent(item.type)) {
1039
+ throw new Error("not a NewManagerCapEvent type");
1040
+ }
1041
+ return NewManagerCapEvent.reified().new({
1042
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id),
1043
+ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
1044
+ });
1045
+ };
1046
+ NewManagerCapEvent.fromBcs = function (data) {
1047
+ return NewManagerCapEvent.fromFields(NewManagerCapEvent.bcs.parse(data));
1048
+ };
1049
+ NewManagerCapEvent.prototype.toJSONField = function () {
1050
+ return {
1051
+ id: this.id,
1052
+ sender: this.sender,
1053
+ };
1054
+ };
1055
+ NewManagerCapEvent.prototype.toJSON = function () {
1056
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1057
+ };
1058
+ NewManagerCapEvent.fromJSONField = function (field) {
1059
+ return NewManagerCapEvent.reified().new({
1060
+ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id),
1061
+ sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
1062
+ });
1063
+ };
1064
+ NewManagerCapEvent.fromJSON = function (json) {
1065
+ if (json.$typeName !== NewManagerCapEvent.$typeName) {
1066
+ throw new Error("not a WithTwoGenerics json object");
1067
+ }
1068
+ return NewManagerCapEvent.fromJSONField(json);
1069
+ };
1070
+ NewManagerCapEvent.fromSuiParsedData = function (content) {
1071
+ if (content.dataType !== "moveObject") {
1072
+ throw new Error("not an object");
1073
+ }
1074
+ if (!isNewManagerCapEvent(content.type)) {
1075
+ throw new Error("object at ".concat(content.fields.id, " is not a NewManagerCapEvent object"));
1076
+ }
1077
+ return NewManagerCapEvent.fromFieldsWithTypes(content);
1078
+ };
1079
+ NewManagerCapEvent.fetch = function (client, id) {
1080
+ return __awaiter(this, void 0, void 0, function () {
1081
+ var res;
1082
+ var _a, _b;
1083
+ return __generator(this, function (_c) {
1084
+ switch (_c.label) {
1085
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1086
+ case 1:
1087
+ res = _c.sent();
1088
+ if (res.error) {
1089
+ throw new Error("error fetching NewManagerCapEvent object at id ".concat(id, ": ").concat(res.error.code));
1090
+ }
1091
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewManagerCapEvent(res.data.bcs.type)) {
1092
+ throw new Error("object at id ".concat(id, " is not a NewManagerCapEvent object"));
1093
+ }
1094
+ return [2 /*return*/, NewManagerCapEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1095
+ }
1096
+ });
1097
+ });
1098
+ };
1099
+ NewManagerCapEvent.$typeName = "0x123::typus_nft::NewManagerCapEvent";
1100
+ NewManagerCapEvent.$numTypeParams = 0;
1101
+ return NewManagerCapEvent;
1102
+ }());
1103
+ exports.NewManagerCapEvent = NewManagerCapEvent;
1104
+ /* ============================== Pool =============================== */
1105
+ function isPool(type) {
1106
+ type = (0, util_1.compressSuiType)(type);
1107
+ return type === "0x123::typus_nft::Pool";
1108
+ }
1109
+ exports.isPool = isPool;
1110
+ var Pool = /** @class */ (function () {
1111
+ function Pool(typeArgs, fields) {
1112
+ this.$typeName = Pool.$typeName;
1113
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Pool.$typeName], __read(typeArgs), false));
1114
+ this.$typeArgs = typeArgs;
1115
+ this.id = fields.id;
1116
+ this.tails = fields.tails;
1117
+ this.num = fields.num;
1118
+ this.isLive = fields.isLive;
1119
+ this.startMs = fields.startMs;
1120
+ }
1121
+ Pool.reified = function () {
1122
+ var _this = this;
1123
+ return {
1124
+ typeName: Pool.$typeName,
1125
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Pool.$typeName], [], false)),
1126
+ typeArgs: [],
1127
+ reifiedTypeArgs: [],
1128
+ fromFields: function (fields) { return Pool.fromFields(fields); },
1129
+ fromFieldsWithTypes: function (item) { return Pool.fromFieldsWithTypes(item); },
1130
+ fromBcs: function (data) { return Pool.fromBcs(data); },
1131
+ bcs: Pool.bcs,
1132
+ fromJSONField: function (field) { return Pool.fromJSONField(field); },
1133
+ fromJSON: function (json) { return Pool.fromJSON(json); },
1134
+ fromSuiParsedData: function (content) { return Pool.fromSuiParsedData(content); },
1135
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1136
+ return [2 /*return*/, Pool.fetch(client, id)];
1137
+ }); }); },
1138
+ new: function (fields) {
1139
+ return new Pool([], fields);
1140
+ },
1141
+ kind: "StructClassReified",
1142
+ };
1143
+ };
1144
+ Object.defineProperty(Pool, "r", {
1145
+ get: function () {
1146
+ return Pool.reified();
1147
+ },
1148
+ enumerable: false,
1149
+ configurable: true
1150
+ });
1151
+ Pool.phantom = function () {
1152
+ return (0, reified_1.phantom)(Pool.reified());
1153
+ };
1154
+ Object.defineProperty(Pool, "p", {
1155
+ get: function () {
1156
+ return Pool.phantom();
1157
+ },
1158
+ enumerable: false,
1159
+ configurable: true
1160
+ });
1161
+ Object.defineProperty(Pool, "bcs", {
1162
+ get: function () {
1163
+ return bcs_1.bcs.struct("Pool", {
1164
+ id: structs_2.UID.bcs,
1165
+ tails: structs_6.TableVec.bcs,
1166
+ num: bcs_1.bcs.u64(),
1167
+ is_live: bcs_1.bcs.bool(),
1168
+ start_ms: bcs_1.bcs.u64(),
1169
+ });
1170
+ },
1171
+ enumerable: false,
1172
+ configurable: true
1173
+ });
1174
+ Pool.fromFields = function (fields) {
1175
+ return Pool.reified().new({
1176
+ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
1177
+ tails: (0, reified_1.decodeFromFields)(structs_6.TableVec.reified(reified.phantom(Tails.reified())), fields.tails),
1178
+ num: (0, reified_1.decodeFromFields)("u64", fields.num),
1179
+ isLive: (0, reified_1.decodeFromFields)("bool", fields.is_live),
1180
+ startMs: (0, reified_1.decodeFromFields)("u64", fields.start_ms),
1181
+ });
1182
+ };
1183
+ Pool.fromFieldsWithTypes = function (item) {
1184
+ if (!isPool(item.type)) {
1185
+ throw new Error("not a Pool type");
1186
+ }
1187
+ return Pool.reified().new({
1188
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
1189
+ tails: (0, reified_1.decodeFromFieldsWithTypes)(structs_6.TableVec.reified(reified.phantom(Tails.reified())), item.fields.tails),
1190
+ num: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.num),
1191
+ isLive: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_live),
1192
+ startMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.start_ms),
1193
+ });
1194
+ };
1195
+ Pool.fromBcs = function (data) {
1196
+ return Pool.fromFields(Pool.bcs.parse(data));
1197
+ };
1198
+ Pool.prototype.toJSONField = function () {
1199
+ return {
1200
+ id: this.id,
1201
+ tails: this.tails.toJSONField(),
1202
+ num: this.num.toString(),
1203
+ isLive: this.isLive,
1204
+ startMs: this.startMs.toString(),
1205
+ };
1206
+ };
1207
+ Pool.prototype.toJSON = function () {
1208
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1209
+ };
1210
+ Pool.fromJSONField = function (field) {
1211
+ return Pool.reified().new({
1212
+ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
1213
+ tails: (0, reified_1.decodeFromJSONField)(structs_6.TableVec.reified(reified.phantom(Tails.reified())), field.tails),
1214
+ num: (0, reified_1.decodeFromJSONField)("u64", field.num),
1215
+ isLive: (0, reified_1.decodeFromJSONField)("bool", field.isLive),
1216
+ startMs: (0, reified_1.decodeFromJSONField)("u64", field.startMs),
1217
+ });
1218
+ };
1219
+ Pool.fromJSON = function (json) {
1220
+ if (json.$typeName !== Pool.$typeName) {
1221
+ throw new Error("not a WithTwoGenerics json object");
1222
+ }
1223
+ return Pool.fromJSONField(json);
1224
+ };
1225
+ Pool.fromSuiParsedData = function (content) {
1226
+ if (content.dataType !== "moveObject") {
1227
+ throw new Error("not an object");
1228
+ }
1229
+ if (!isPool(content.type)) {
1230
+ throw new Error("object at ".concat(content.fields.id, " is not a Pool object"));
1231
+ }
1232
+ return Pool.fromFieldsWithTypes(content);
1233
+ };
1234
+ Pool.fetch = function (client, id) {
1235
+ return __awaiter(this, void 0, void 0, function () {
1236
+ var res;
1237
+ var _a, _b;
1238
+ return __generator(this, function (_c) {
1239
+ switch (_c.label) {
1240
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1241
+ case 1:
1242
+ res = _c.sent();
1243
+ if (res.error) {
1244
+ throw new Error("error fetching Pool object at id ".concat(id, ": ").concat(res.error.code));
1245
+ }
1246
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPool(res.data.bcs.type)) {
1247
+ throw new Error("object at id ".concat(id, " is not a Pool object"));
1248
+ }
1249
+ return [2 /*return*/, Pool.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1250
+ }
1251
+ });
1252
+ });
1253
+ };
1254
+ Pool.$typeName = "0x123::typus_nft::Pool";
1255
+ Pool.$numTypeParams = 0;
1256
+ return Pool;
1257
+ }());
1258
+ exports.Pool = Pool;
1259
+ /* ============================== Royalty =============================== */
1260
+ function isRoyalty(type) {
1261
+ type = (0, util_1.compressSuiType)(type);
1262
+ return type === "0x123::typus_nft::Royalty";
1263
+ }
1264
+ exports.isRoyalty = isRoyalty;
1265
+ var Royalty = /** @class */ (function () {
1266
+ function Royalty(typeArgs, fields) {
1267
+ this.$typeName = Royalty.$typeName;
1268
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Royalty.$typeName], __read(typeArgs), false));
1269
+ this.$typeArgs = typeArgs;
1270
+ this.id = fields.id;
1271
+ this.recipients = fields.recipients;
1272
+ this.policyCap = fields.policyCap;
1273
+ }
1274
+ Royalty.reified = function () {
1275
+ var _this = this;
1276
+ return {
1277
+ typeName: Royalty.$typeName,
1278
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Royalty.$typeName], [], false)),
1279
+ typeArgs: [],
1280
+ reifiedTypeArgs: [],
1281
+ fromFields: function (fields) { return Royalty.fromFields(fields); },
1282
+ fromFieldsWithTypes: function (item) { return Royalty.fromFieldsWithTypes(item); },
1283
+ fromBcs: function (data) { return Royalty.fromBcs(data); },
1284
+ bcs: Royalty.bcs,
1285
+ fromJSONField: function (field) { return Royalty.fromJSONField(field); },
1286
+ fromJSON: function (json) { return Royalty.fromJSON(json); },
1287
+ fromSuiParsedData: function (content) { return Royalty.fromSuiParsedData(content); },
1288
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1289
+ return [2 /*return*/, Royalty.fetch(client, id)];
1290
+ }); }); },
1291
+ new: function (fields) {
1292
+ return new Royalty([], fields);
1293
+ },
1294
+ kind: "StructClassReified",
1295
+ };
1296
+ };
1297
+ Object.defineProperty(Royalty, "r", {
1298
+ get: function () {
1299
+ return Royalty.reified();
1300
+ },
1301
+ enumerable: false,
1302
+ configurable: true
1303
+ });
1304
+ Royalty.phantom = function () {
1305
+ return (0, reified_1.phantom)(Royalty.reified());
1306
+ };
1307
+ Object.defineProperty(Royalty, "p", {
1308
+ get: function () {
1309
+ return Royalty.phantom();
1310
+ },
1311
+ enumerable: false,
1312
+ configurable: true
1313
+ });
1314
+ Object.defineProperty(Royalty, "bcs", {
1315
+ get: function () {
1316
+ return bcs_1.bcs.struct("Royalty", {
1317
+ id: structs_2.UID.bcs,
1318
+ recipients: structs_5.VecMap.bcs(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }), bcs_1.bcs.u64()),
1319
+ policy_cap: structs_3.TransferPolicyCap.bcs,
1320
+ });
1321
+ },
1322
+ enumerable: false,
1323
+ configurable: true
1324
+ });
1325
+ Royalty.fromFields = function (fields) {
1326
+ return Royalty.reified().new({
1327
+ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
1328
+ recipients: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified("address", "u64"), fields.recipients),
1329
+ policyCap: (0, reified_1.decodeFromFields)(structs_3.TransferPolicyCap.reified(reified.phantom(Tails.reified())), fields.policy_cap),
1330
+ });
1331
+ };
1332
+ Royalty.fromFieldsWithTypes = function (item) {
1333
+ if (!isRoyalty(item.type)) {
1334
+ throw new Error("not a Royalty type");
1335
+ }
1336
+ return Royalty.reified().new({
1337
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
1338
+ recipients: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified("address", "u64"), item.fields.recipients),
1339
+ policyCap: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.TransferPolicyCap.reified(reified.phantom(Tails.reified())), item.fields.policy_cap),
1340
+ });
1341
+ };
1342
+ Royalty.fromBcs = function (data) {
1343
+ return Royalty.fromFields(Royalty.bcs.parse(data));
1344
+ };
1345
+ Royalty.prototype.toJSONField = function () {
1346
+ return {
1347
+ id: this.id,
1348
+ recipients: this.recipients.toJSONField(),
1349
+ policyCap: this.policyCap.toJSONField(),
1350
+ };
1351
+ };
1352
+ Royalty.prototype.toJSON = function () {
1353
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1354
+ };
1355
+ Royalty.fromJSONField = function (field) {
1356
+ return Royalty.reified().new({
1357
+ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
1358
+ recipients: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified("address", "u64"), field.recipients),
1359
+ policyCap: (0, reified_1.decodeFromJSONField)(structs_3.TransferPolicyCap.reified(reified.phantom(Tails.reified())), field.policyCap),
1360
+ });
1361
+ };
1362
+ Royalty.fromJSON = function (json) {
1363
+ if (json.$typeName !== Royalty.$typeName) {
1364
+ throw new Error("not a WithTwoGenerics json object");
1365
+ }
1366
+ return Royalty.fromJSONField(json);
1367
+ };
1368
+ Royalty.fromSuiParsedData = function (content) {
1369
+ if (content.dataType !== "moveObject") {
1370
+ throw new Error("not an object");
1371
+ }
1372
+ if (!isRoyalty(content.type)) {
1373
+ throw new Error("object at ".concat(content.fields.id, " is not a Royalty object"));
1374
+ }
1375
+ return Royalty.fromFieldsWithTypes(content);
1376
+ };
1377
+ Royalty.fetch = function (client, id) {
1378
+ return __awaiter(this, void 0, void 0, function () {
1379
+ var res;
1380
+ var _a, _b;
1381
+ return __generator(this, function (_c) {
1382
+ switch (_c.label) {
1383
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1384
+ case 1:
1385
+ res = _c.sent();
1386
+ if (res.error) {
1387
+ throw new Error("error fetching Royalty object at id ".concat(id, ": ").concat(res.error.code));
1388
+ }
1389
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRoyalty(res.data.bcs.type)) {
1390
+ throw new Error("object at id ".concat(id, " is not a Royalty object"));
1391
+ }
1392
+ return [2 /*return*/, Royalty.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1393
+ }
1394
+ });
1395
+ });
1396
+ };
1397
+ Royalty.$typeName = "0x123::typus_nft::Royalty";
1398
+ Royalty.$numTypeParams = 0;
1399
+ return Royalty;
1400
+ }());
1401
+ exports.Royalty = Royalty;
1402
+ /* ============================== RoyaltyUpdateEvent =============================== */
1403
+ function isRoyaltyUpdateEvent(type) {
1404
+ type = (0, util_1.compressSuiType)(type);
1405
+ return type === "0x123::typus_nft::RoyaltyUpdateEvent";
1406
+ }
1407
+ exports.isRoyaltyUpdateEvent = isRoyaltyUpdateEvent;
1408
+ var RoyaltyUpdateEvent = /** @class */ (function () {
1409
+ function RoyaltyUpdateEvent(typeArgs, fields) {
1410
+ this.$typeName = RoyaltyUpdateEvent.$typeName;
1411
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RoyaltyUpdateEvent.$typeName], __read(typeArgs), false));
1412
+ this.$typeArgs = typeArgs;
1413
+ this.sender = fields.sender;
1414
+ this.recipients = fields.recipients;
1415
+ }
1416
+ RoyaltyUpdateEvent.reified = function () {
1417
+ var _this = this;
1418
+ return {
1419
+ typeName: RoyaltyUpdateEvent.$typeName,
1420
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RoyaltyUpdateEvent.$typeName], [], false)),
1421
+ typeArgs: [],
1422
+ reifiedTypeArgs: [],
1423
+ fromFields: function (fields) { return RoyaltyUpdateEvent.fromFields(fields); },
1424
+ fromFieldsWithTypes: function (item) { return RoyaltyUpdateEvent.fromFieldsWithTypes(item); },
1425
+ fromBcs: function (data) { return RoyaltyUpdateEvent.fromBcs(data); },
1426
+ bcs: RoyaltyUpdateEvent.bcs,
1427
+ fromJSONField: function (field) { return RoyaltyUpdateEvent.fromJSONField(field); },
1428
+ fromJSON: function (json) { return RoyaltyUpdateEvent.fromJSON(json); },
1429
+ fromSuiParsedData: function (content) { return RoyaltyUpdateEvent.fromSuiParsedData(content); },
1430
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1431
+ return [2 /*return*/, RoyaltyUpdateEvent.fetch(client, id)];
1432
+ }); }); },
1433
+ new: function (fields) {
1434
+ return new RoyaltyUpdateEvent([], fields);
1435
+ },
1436
+ kind: "StructClassReified",
1437
+ };
1438
+ };
1439
+ Object.defineProperty(RoyaltyUpdateEvent, "r", {
1440
+ get: function () {
1441
+ return RoyaltyUpdateEvent.reified();
1442
+ },
1443
+ enumerable: false,
1444
+ configurable: true
1445
+ });
1446
+ RoyaltyUpdateEvent.phantom = function () {
1447
+ return (0, reified_1.phantom)(RoyaltyUpdateEvent.reified());
1448
+ };
1449
+ Object.defineProperty(RoyaltyUpdateEvent, "p", {
1450
+ get: function () {
1451
+ return RoyaltyUpdateEvent.phantom();
1452
+ },
1453
+ enumerable: false,
1454
+ configurable: true
1455
+ });
1456
+ Object.defineProperty(RoyaltyUpdateEvent, "bcs", {
1457
+ get: function () {
1458
+ return bcs_1.bcs.struct("RoyaltyUpdateEvent", {
1459
+ sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
1460
+ recipients: structs_5.VecMap.bcs(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }), bcs_1.bcs.u64()),
1461
+ });
1462
+ },
1463
+ enumerable: false,
1464
+ configurable: true
1465
+ });
1466
+ RoyaltyUpdateEvent.fromFields = function (fields) {
1467
+ return RoyaltyUpdateEvent.reified().new({
1468
+ sender: (0, reified_1.decodeFromFields)("address", fields.sender),
1469
+ recipients: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified("address", "u64"), fields.recipients),
1470
+ });
1471
+ };
1472
+ RoyaltyUpdateEvent.fromFieldsWithTypes = function (item) {
1473
+ if (!isRoyaltyUpdateEvent(item.type)) {
1474
+ throw new Error("not a RoyaltyUpdateEvent type");
1475
+ }
1476
+ return RoyaltyUpdateEvent.reified().new({
1477
+ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
1478
+ recipients: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified("address", "u64"), item.fields.recipients),
1479
+ });
1480
+ };
1481
+ RoyaltyUpdateEvent.fromBcs = function (data) {
1482
+ return RoyaltyUpdateEvent.fromFields(RoyaltyUpdateEvent.bcs.parse(data));
1483
+ };
1484
+ RoyaltyUpdateEvent.prototype.toJSONField = function () {
1485
+ return {
1486
+ sender: this.sender,
1487
+ recipients: this.recipients.toJSONField(),
1488
+ };
1489
+ };
1490
+ RoyaltyUpdateEvent.prototype.toJSON = function () {
1491
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1492
+ };
1493
+ RoyaltyUpdateEvent.fromJSONField = function (field) {
1494
+ return RoyaltyUpdateEvent.reified().new({
1495
+ sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
1496
+ recipients: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified("address", "u64"), field.recipients),
1497
+ });
1498
+ };
1499
+ RoyaltyUpdateEvent.fromJSON = function (json) {
1500
+ if (json.$typeName !== RoyaltyUpdateEvent.$typeName) {
1501
+ throw new Error("not a WithTwoGenerics json object");
1502
+ }
1503
+ return RoyaltyUpdateEvent.fromJSONField(json);
1504
+ };
1505
+ RoyaltyUpdateEvent.fromSuiParsedData = function (content) {
1506
+ if (content.dataType !== "moveObject") {
1507
+ throw new Error("not an object");
1508
+ }
1509
+ if (!isRoyaltyUpdateEvent(content.type)) {
1510
+ throw new Error("object at ".concat(content.fields.id, " is not a RoyaltyUpdateEvent object"));
1511
+ }
1512
+ return RoyaltyUpdateEvent.fromFieldsWithTypes(content);
1513
+ };
1514
+ RoyaltyUpdateEvent.fetch = function (client, id) {
1515
+ return __awaiter(this, void 0, void 0, function () {
1516
+ var res;
1517
+ var _a, _b;
1518
+ return __generator(this, function (_c) {
1519
+ switch (_c.label) {
1520
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1521
+ case 1:
1522
+ res = _c.sent();
1523
+ if (res.error) {
1524
+ throw new Error("error fetching RoyaltyUpdateEvent object at id ".concat(id, ": ").concat(res.error.code));
1525
+ }
1526
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRoyaltyUpdateEvent(res.data.bcs.type)) {
1527
+ throw new Error("object at id ".concat(id, " is not a RoyaltyUpdateEvent object"));
1528
+ }
1529
+ return [2 /*return*/, RoyaltyUpdateEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1530
+ }
1531
+ });
1532
+ });
1533
+ };
1534
+ RoyaltyUpdateEvent.$typeName = "0x123::typus_nft::RoyaltyUpdateEvent";
1535
+ RoyaltyUpdateEvent.$numTypeParams = 0;
1536
+ return RoyaltyUpdateEvent;
1537
+ }());
1538
+ exports.RoyaltyUpdateEvent = RoyaltyUpdateEvent;
1539
+ /* ============================== TYPUS_NFT =============================== */
1540
+ function isTYPUS_NFT(type) {
1541
+ type = (0, util_1.compressSuiType)(type);
1542
+ return type === "0x123::typus_nft::TYPUS_NFT";
1543
+ }
1544
+ exports.isTYPUS_NFT = isTYPUS_NFT;
1545
+ var TYPUS_NFT = /** @class */ (function () {
1546
+ function TYPUS_NFT(typeArgs, fields) {
1547
+ this.$typeName = TYPUS_NFT.$typeName;
1548
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TYPUS_NFT.$typeName], __read(typeArgs), false));
1549
+ this.$typeArgs = typeArgs;
1550
+ this.dummyField = fields.dummyField;
1551
+ }
1552
+ TYPUS_NFT.reified = function () {
1553
+ var _this = this;
1554
+ return {
1555
+ typeName: TYPUS_NFT.$typeName,
1556
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TYPUS_NFT.$typeName], [], false)),
1557
+ typeArgs: [],
1558
+ reifiedTypeArgs: [],
1559
+ fromFields: function (fields) { return TYPUS_NFT.fromFields(fields); },
1560
+ fromFieldsWithTypes: function (item) { return TYPUS_NFT.fromFieldsWithTypes(item); },
1561
+ fromBcs: function (data) { return TYPUS_NFT.fromBcs(data); },
1562
+ bcs: TYPUS_NFT.bcs,
1563
+ fromJSONField: function (field) { return TYPUS_NFT.fromJSONField(field); },
1564
+ fromJSON: function (json) { return TYPUS_NFT.fromJSON(json); },
1565
+ fromSuiParsedData: function (content) { return TYPUS_NFT.fromSuiParsedData(content); },
1566
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1567
+ return [2 /*return*/, TYPUS_NFT.fetch(client, id)];
1568
+ }); }); },
1569
+ new: function (fields) {
1570
+ return new TYPUS_NFT([], fields);
1571
+ },
1572
+ kind: "StructClassReified",
1573
+ };
1574
+ };
1575
+ Object.defineProperty(TYPUS_NFT, "r", {
1576
+ get: function () {
1577
+ return TYPUS_NFT.reified();
1578
+ },
1579
+ enumerable: false,
1580
+ configurable: true
1581
+ });
1582
+ TYPUS_NFT.phantom = function () {
1583
+ return (0, reified_1.phantom)(TYPUS_NFT.reified());
1584
+ };
1585
+ Object.defineProperty(TYPUS_NFT, "p", {
1586
+ get: function () {
1587
+ return TYPUS_NFT.phantom();
1588
+ },
1589
+ enumerable: false,
1590
+ configurable: true
1591
+ });
1592
+ Object.defineProperty(TYPUS_NFT, "bcs", {
1593
+ get: function () {
1594
+ return bcs_1.bcs.struct("TYPUS_NFT", {
1595
+ dummy_field: bcs_1.bcs.bool(),
1596
+ });
1597
+ },
1598
+ enumerable: false,
1599
+ configurable: true
1600
+ });
1601
+ TYPUS_NFT.fromFields = function (fields) {
1602
+ return TYPUS_NFT.reified().new({ dummyField: (0, reified_1.decodeFromFields)("bool", fields.dummy_field) });
1603
+ };
1604
+ TYPUS_NFT.fromFieldsWithTypes = function (item) {
1605
+ if (!isTYPUS_NFT(item.type)) {
1606
+ throw new Error("not a TYPUS_NFT type");
1607
+ }
1608
+ return TYPUS_NFT.reified().new({ dummyField: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.dummy_field) });
1609
+ };
1610
+ TYPUS_NFT.fromBcs = function (data) {
1611
+ return TYPUS_NFT.fromFields(TYPUS_NFT.bcs.parse(data));
1612
+ };
1613
+ TYPUS_NFT.prototype.toJSONField = function () {
1614
+ return {
1615
+ dummyField: this.dummyField,
1616
+ };
1617
+ };
1618
+ TYPUS_NFT.prototype.toJSON = function () {
1619
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1620
+ };
1621
+ TYPUS_NFT.fromJSONField = function (field) {
1622
+ return TYPUS_NFT.reified().new({ dummyField: (0, reified_1.decodeFromJSONField)("bool", field.dummyField) });
1623
+ };
1624
+ TYPUS_NFT.fromJSON = function (json) {
1625
+ if (json.$typeName !== TYPUS_NFT.$typeName) {
1626
+ throw new Error("not a WithTwoGenerics json object");
1627
+ }
1628
+ return TYPUS_NFT.fromJSONField(json);
1629
+ };
1630
+ TYPUS_NFT.fromSuiParsedData = function (content) {
1631
+ if (content.dataType !== "moveObject") {
1632
+ throw new Error("not an object");
1633
+ }
1634
+ if (!isTYPUS_NFT(content.type)) {
1635
+ throw new Error("object at ".concat(content.fields.id, " is not a TYPUS_NFT object"));
1636
+ }
1637
+ return TYPUS_NFT.fromFieldsWithTypes(content);
1638
+ };
1639
+ TYPUS_NFT.fetch = function (client, id) {
1640
+ return __awaiter(this, void 0, void 0, function () {
1641
+ var res;
1642
+ var _a, _b;
1643
+ return __generator(this, function (_c) {
1644
+ switch (_c.label) {
1645
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1646
+ case 1:
1647
+ res = _c.sent();
1648
+ if (res.error) {
1649
+ throw new Error("error fetching TYPUS_NFT object at id ".concat(id, ": ").concat(res.error.code));
1650
+ }
1651
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTYPUS_NFT(res.data.bcs.type)) {
1652
+ throw new Error("object at id ".concat(id, " is not a TYPUS_NFT object"));
1653
+ }
1654
+ return [2 /*return*/, TYPUS_NFT.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1655
+ }
1656
+ });
1657
+ });
1658
+ };
1659
+ TYPUS_NFT.$typeName = "0x123::typus_nft::TYPUS_NFT";
1660
+ TYPUS_NFT.$numTypeParams = 0;
1661
+ return TYPUS_NFT;
1662
+ }());
1663
+ exports.TYPUS_NFT = TYPUS_NFT;
1664
+ /* ============================== Tails =============================== */
1665
+ function isTails(type) {
1666
+ type = (0, util_1.compressSuiType)(type);
1667
+ return type === "0x123::typus_nft::Tails";
1668
+ }
1669
+ exports.isTails = isTails;
1670
+ var Tails = /** @class */ (function () {
1671
+ function Tails(typeArgs, fields) {
1672
+ this.$typeName = Tails.$typeName;
1673
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Tails.$typeName], __read(typeArgs), false));
1674
+ this.$typeArgs = typeArgs;
1675
+ this.id = fields.id;
1676
+ this.name = fields.name;
1677
+ this.description = fields.description;
1678
+ this.number = fields.number;
1679
+ this.url = fields.url;
1680
+ this.attributes = fields.attributes;
1681
+ this.level = fields.level;
1682
+ this.exp = fields.exp;
1683
+ this.firstBid = fields.firstBid;
1684
+ this.firstDeposit = fields.firstDeposit;
1685
+ this.firstDepositNft = fields.firstDepositNft;
1686
+ this.u64Padding = fields.u64Padding;
1687
+ }
1688
+ Tails.reified = function () {
1689
+ var _this = this;
1690
+ return {
1691
+ typeName: Tails.$typeName,
1692
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Tails.$typeName], [], false)),
1693
+ typeArgs: [],
1694
+ reifiedTypeArgs: [],
1695
+ fromFields: function (fields) { return Tails.fromFields(fields); },
1696
+ fromFieldsWithTypes: function (item) { return Tails.fromFieldsWithTypes(item); },
1697
+ fromBcs: function (data) { return Tails.fromBcs(data); },
1698
+ bcs: Tails.bcs,
1699
+ fromJSONField: function (field) { return Tails.fromJSONField(field); },
1700
+ fromJSON: function (json) { return Tails.fromJSON(json); },
1701
+ fromSuiParsedData: function (content) { return Tails.fromSuiParsedData(content); },
1702
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1703
+ return [2 /*return*/, Tails.fetch(client, id)];
1704
+ }); }); },
1705
+ new: function (fields) {
1706
+ return new Tails([], fields);
1707
+ },
1708
+ kind: "StructClassReified",
1709
+ };
1710
+ };
1711
+ Object.defineProperty(Tails, "r", {
1712
+ get: function () {
1713
+ return Tails.reified();
1714
+ },
1715
+ enumerable: false,
1716
+ configurable: true
1717
+ });
1718
+ Tails.phantom = function () {
1719
+ return (0, reified_1.phantom)(Tails.reified());
1720
+ };
1721
+ Object.defineProperty(Tails, "p", {
1722
+ get: function () {
1723
+ return Tails.phantom();
1724
+ },
1725
+ enumerable: false,
1726
+ configurable: true
1727
+ });
1728
+ Object.defineProperty(Tails, "bcs", {
1729
+ get: function () {
1730
+ return bcs_1.bcs.struct("Tails", {
1731
+ id: structs_2.UID.bcs,
1732
+ name: structs_1.String.bcs,
1733
+ description: structs_1.String.bcs,
1734
+ number: bcs_1.bcs.u64(),
1735
+ url: structs_4.Url.bcs,
1736
+ attributes: structs_5.VecMap.bcs(structs_1.String.bcs, structs_1.String.bcs),
1737
+ level: bcs_1.bcs.u64(),
1738
+ exp: bcs_1.bcs.u64(),
1739
+ first_bid: bcs_1.bcs.bool(),
1740
+ first_deposit: bcs_1.bcs.bool(),
1741
+ first_deposit_nft: bcs_1.bcs.bool(),
1742
+ u64_padding: structs_5.VecMap.bcs(structs_1.String.bcs, bcs_1.bcs.u64()),
1743
+ });
1744
+ },
1745
+ enumerable: false,
1746
+ configurable: true
1747
+ });
1748
+ Tails.fromFields = function (fields) {
1749
+ return Tails.reified().new({
1750
+ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
1751
+ name: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.name),
1752
+ description: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.description),
1753
+ number: (0, reified_1.decodeFromFields)("u64", fields.number),
1754
+ url: (0, reified_1.decodeFromFields)(structs_4.Url.reified(), fields.url),
1755
+ attributes: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), fields.attributes),
1756
+ level: (0, reified_1.decodeFromFields)("u64", fields.level),
1757
+ exp: (0, reified_1.decodeFromFields)("u64", fields.exp),
1758
+ firstBid: (0, reified_1.decodeFromFields)("bool", fields.first_bid),
1759
+ firstDeposit: (0, reified_1.decodeFromFields)("bool", fields.first_deposit),
1760
+ firstDepositNft: (0, reified_1.decodeFromFields)("bool", fields.first_deposit_nft),
1761
+ u64Padding: (0, reified_1.decodeFromFields)(structs_5.VecMap.reified(structs_1.String.reified(), "u64"), fields.u64_padding),
1762
+ });
1763
+ };
1764
+ Tails.fromFieldsWithTypes = function (item) {
1765
+ if (!isTails(item.type)) {
1766
+ throw new Error("not a Tails type");
1767
+ }
1768
+ return Tails.reified().new({
1769
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
1770
+ name: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.name),
1771
+ description: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.description),
1772
+ number: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.number),
1773
+ url: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.Url.reified(), item.fields.url),
1774
+ attributes: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), item.fields.attributes),
1775
+ level: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.level),
1776
+ exp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.exp),
1777
+ firstBid: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.first_bid),
1778
+ firstDeposit: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.first_deposit),
1779
+ firstDepositNft: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.first_deposit_nft),
1780
+ u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.VecMap.reified(structs_1.String.reified(), "u64"), item.fields.u64_padding),
1781
+ });
1782
+ };
1783
+ Tails.fromBcs = function (data) {
1784
+ return Tails.fromFields(Tails.bcs.parse(data));
1785
+ };
1786
+ Tails.prototype.toJSONField = function () {
1787
+ return {
1788
+ id: this.id,
1789
+ name: this.name,
1790
+ description: this.description,
1791
+ number: this.number.toString(),
1792
+ url: this.url,
1793
+ attributes: this.attributes.toJSONField(),
1794
+ level: this.level.toString(),
1795
+ exp: this.exp.toString(),
1796
+ firstBid: this.firstBid,
1797
+ firstDeposit: this.firstDeposit,
1798
+ firstDepositNft: this.firstDepositNft,
1799
+ u64Padding: this.u64Padding.toJSONField(),
1800
+ };
1801
+ };
1802
+ Tails.prototype.toJSON = function () {
1803
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1804
+ };
1805
+ Tails.fromJSONField = function (field) {
1806
+ return Tails.reified().new({
1807
+ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
1808
+ name: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.name),
1809
+ description: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.description),
1810
+ number: (0, reified_1.decodeFromJSONField)("u64", field.number),
1811
+ url: (0, reified_1.decodeFromJSONField)(structs_4.Url.reified(), field.url),
1812
+ attributes: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified(structs_1.String.reified(), structs_1.String.reified()), field.attributes),
1813
+ level: (0, reified_1.decodeFromJSONField)("u64", field.level),
1814
+ exp: (0, reified_1.decodeFromJSONField)("u64", field.exp),
1815
+ firstBid: (0, reified_1.decodeFromJSONField)("bool", field.firstBid),
1816
+ firstDeposit: (0, reified_1.decodeFromJSONField)("bool", field.firstDeposit),
1817
+ firstDepositNft: (0, reified_1.decodeFromJSONField)("bool", field.firstDepositNft),
1818
+ u64Padding: (0, reified_1.decodeFromJSONField)(structs_5.VecMap.reified(structs_1.String.reified(), "u64"), field.u64Padding),
1819
+ });
1820
+ };
1821
+ Tails.fromJSON = function (json) {
1822
+ if (json.$typeName !== Tails.$typeName) {
1823
+ throw new Error("not a WithTwoGenerics json object");
1824
+ }
1825
+ return Tails.fromJSONField(json);
1826
+ };
1827
+ Tails.fromSuiParsedData = function (content) {
1828
+ if (content.dataType !== "moveObject") {
1829
+ throw new Error("not an object");
1830
+ }
1831
+ if (!isTails(content.type)) {
1832
+ throw new Error("object at ".concat(content.fields.id, " is not a Tails object"));
1833
+ }
1834
+ return Tails.fromFieldsWithTypes(content);
1835
+ };
1836
+ Tails.fetch = function (client, id) {
1837
+ return __awaiter(this, void 0, void 0, function () {
1838
+ var res;
1839
+ var _a, _b;
1840
+ return __generator(this, function (_c) {
1841
+ switch (_c.label) {
1842
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1843
+ case 1:
1844
+ res = _c.sent();
1845
+ if (res.error) {
1846
+ throw new Error("error fetching Tails object at id ".concat(id, ": ").concat(res.error.code));
1847
+ }
1848
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTails(res.data.bcs.type)) {
1849
+ throw new Error("object at id ".concat(id, " is not a Tails object"));
1850
+ }
1851
+ return [2 /*return*/, Tails.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1852
+ }
1853
+ });
1854
+ });
1855
+ };
1856
+ Tails.$typeName = "0x123::typus_nft::Tails";
1857
+ Tails.$numTypeParams = 0;
1858
+ return Tails;
1859
+ }());
1860
+ exports.Tails = Tails;
1861
+ /* ============================== Whitelist =============================== */
1862
+ function isWhitelist(type) {
1863
+ type = (0, util_1.compressSuiType)(type);
1864
+ return type === "0x123::typus_nft::Whitelist";
1865
+ }
1866
+ exports.isWhitelist = isWhitelist;
1867
+ var Whitelist = /** @class */ (function () {
1868
+ function Whitelist(typeArgs, fields) {
1869
+ this.$typeName = Whitelist.$typeName;
1870
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Whitelist.$typeName], __read(typeArgs), false));
1871
+ this.$typeArgs = typeArgs;
1872
+ this.id = fields.id;
1873
+ this.for = fields.for;
1874
+ }
1875
+ Whitelist.reified = function () {
1876
+ var _this = this;
1877
+ return {
1878
+ typeName: Whitelist.$typeName,
1879
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Whitelist.$typeName], [], false)),
1880
+ typeArgs: [],
1881
+ reifiedTypeArgs: [],
1882
+ fromFields: function (fields) { return Whitelist.fromFields(fields); },
1883
+ fromFieldsWithTypes: function (item) { return Whitelist.fromFieldsWithTypes(item); },
1884
+ fromBcs: function (data) { return Whitelist.fromBcs(data); },
1885
+ bcs: Whitelist.bcs,
1886
+ fromJSONField: function (field) { return Whitelist.fromJSONField(field); },
1887
+ fromJSON: function (json) { return Whitelist.fromJSON(json); },
1888
+ fromSuiParsedData: function (content) { return Whitelist.fromSuiParsedData(content); },
1889
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1890
+ return [2 /*return*/, Whitelist.fetch(client, id)];
1891
+ }); }); },
1892
+ new: function (fields) {
1893
+ return new Whitelist([], fields);
1894
+ },
1895
+ kind: "StructClassReified",
1896
+ };
1897
+ };
1898
+ Object.defineProperty(Whitelist, "r", {
1899
+ get: function () {
1900
+ return Whitelist.reified();
1901
+ },
1902
+ enumerable: false,
1903
+ configurable: true
1904
+ });
1905
+ Whitelist.phantom = function () {
1906
+ return (0, reified_1.phantom)(Whitelist.reified());
1907
+ };
1908
+ Object.defineProperty(Whitelist, "p", {
1909
+ get: function () {
1910
+ return Whitelist.phantom();
1911
+ },
1912
+ enumerable: false,
1913
+ configurable: true
1914
+ });
1915
+ Object.defineProperty(Whitelist, "bcs", {
1916
+ get: function () {
1917
+ return bcs_1.bcs.struct("Whitelist", {
1918
+ id: structs_2.UID.bcs,
1919
+ for: structs_2.ID.bcs,
1920
+ });
1921
+ },
1922
+ enumerable: false,
1923
+ configurable: true
1924
+ });
1925
+ Whitelist.fromFields = function (fields) {
1926
+ return Whitelist.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id), for: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.for) });
1927
+ };
1928
+ Whitelist.fromFieldsWithTypes = function (item) {
1929
+ if (!isWhitelist(item.type)) {
1930
+ throw new Error("not a Whitelist type");
1931
+ }
1932
+ return Whitelist.reified().new({
1933
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
1934
+ for: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.for),
1935
+ });
1936
+ };
1937
+ Whitelist.fromBcs = function (data) {
1938
+ return Whitelist.fromFields(Whitelist.bcs.parse(data));
1939
+ };
1940
+ Whitelist.prototype.toJSONField = function () {
1941
+ return {
1942
+ id: this.id,
1943
+ for: this.for,
1944
+ };
1945
+ };
1946
+ Whitelist.prototype.toJSON = function () {
1947
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1948
+ };
1949
+ Whitelist.fromJSONField = function (field) {
1950
+ return Whitelist.reified().new({
1951
+ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
1952
+ for: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.for),
1953
+ });
1954
+ };
1955
+ Whitelist.fromJSON = function (json) {
1956
+ if (json.$typeName !== Whitelist.$typeName) {
1957
+ throw new Error("not a WithTwoGenerics json object");
1958
+ }
1959
+ return Whitelist.fromJSONField(json);
1960
+ };
1961
+ Whitelist.fromSuiParsedData = function (content) {
1962
+ if (content.dataType !== "moveObject") {
1963
+ throw new Error("not an object");
1964
+ }
1965
+ if (!isWhitelist(content.type)) {
1966
+ throw new Error("object at ".concat(content.fields.id, " is not a Whitelist object"));
1967
+ }
1968
+ return Whitelist.fromFieldsWithTypes(content);
1969
+ };
1970
+ Whitelist.fetch = function (client, id) {
1971
+ return __awaiter(this, void 0, void 0, function () {
1972
+ var res;
1973
+ var _a, _b;
1974
+ return __generator(this, function (_c) {
1975
+ switch (_c.label) {
1976
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1977
+ case 1:
1978
+ res = _c.sent();
1979
+ if (res.error) {
1980
+ throw new Error("error fetching Whitelist object at id ".concat(id, ": ").concat(res.error.code));
1981
+ }
1982
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isWhitelist(res.data.bcs.type)) {
1983
+ throw new Error("object at id ".concat(id, " is not a Whitelist object"));
1984
+ }
1985
+ return [2 /*return*/, Whitelist.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1986
+ }
1987
+ });
1988
+ });
1989
+ };
1990
+ Whitelist.$typeName = "0x123::typus_nft::Whitelist";
1991
+ Whitelist.$numTypeParams = 0;
1992
+ return Whitelist;
1993
+ }());
1994
+ exports.Whitelist = Whitelist;