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