@typus/typus-sdk 1.2.70 → 1.2.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (527) hide show
  1. package/lib/config.json +4 -2
  2. package/lib/utils/_dependencies/source/0x1/ascii/structs.d.ts +82 -0
  3. package/lib/utils/_dependencies/source/0x1/ascii/structs.js +352 -0
  4. package/lib/utils/_dependencies/source/0x1/bit-vector/structs.d.ts +50 -0
  5. package/lib/utils/_dependencies/source/0x1/bit-vector/structs.js +239 -0
  6. package/lib/utils/_dependencies/source/0x1/fixed-point32/structs.d.ts +41 -0
  7. package/lib/utils/_dependencies/source/0x1/fixed-point32/structs.js +203 -0
  8. package/lib/utils/_dependencies/source/0x1/index.d.ts +2 -0
  9. package/lib/utils/_dependencies/source/0x1/index.js +5 -0
  10. package/lib/utils/_dependencies/source/0x1/init.d.ts +2 -0
  11. package/lib/utils/_dependencies/source/0x1/init.js +42 -0
  12. package/lib/utils/_dependencies/source/0x1/option/structs.d.ts +46 -0
  13. package/lib/utils/_dependencies/source/0x1/option/structs.js +233 -0
  14. package/lib/utils/_dependencies/source/0x1/string/structs.d.ts +44 -0
  15. package/lib/utils/_dependencies/source/0x1/string/structs.js +227 -0
  16. package/lib/utils/_dependencies/source/0x1/type-name/structs.d.ts +48 -0
  17. package/lib/utils/_dependencies/source/0x1/type-name/structs.js +204 -0
  18. package/lib/utils/_dependencies/source/0x123/discount-mint/structs.d.ts +552 -0
  19. package/lib/utils/_dependencies/source/0x123/discount-mint/structs.js +1068 -0
  20. package/lib/utils/_dependencies/source/0x123/index.d.ts +2 -0
  21. package/lib/utils/_dependencies/source/0x123/index.js +5 -0
  22. package/lib/utils/_dependencies/source/0x123/init.d.ts +2 -0
  23. package/lib/utils/_dependencies/source/0x123/init.js +61 -0
  24. package/lib/utils/_dependencies/source/0x123/royalty-rule/structs.d.ts +85 -0
  25. package/lib/utils/_dependencies/source/0x123/royalty-rule/structs.js +340 -0
  26. package/lib/utils/_dependencies/source/0x123/staking/structs.d.ts +433 -0
  27. package/lib/utils/_dependencies/source/0x123/staking/structs.js +784 -0
  28. package/lib/utils/_dependencies/source/0x123/table-vec/structs.d.ts +63 -0
  29. package/lib/utils/_dependencies/source/0x123/table-vec/structs.js +236 -0
  30. package/lib/utils/_dependencies/source/0x123/typus-nft/structs.d.ts +1006 -0
  31. package/lib/utils/_dependencies/source/0x123/typus-nft/structs.js +1994 -0
  32. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/index.d.ts +2 -0
  33. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/index.js +5 -0
  34. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/init.d.ts +2 -0
  35. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/init.js +38 -0
  36. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/whitelist/structs.d.ts +340 -0
  37. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/whitelist/structs.js +1103 -0
  38. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/index.d.ts +2 -0
  39. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/index.js +5 -0
  40. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/init.d.ts +2 -0
  41. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/init.js +40 -0
  42. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/price-feed/structs.d.ts +47 -0
  43. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/price-feed/structs.js +215 -0
  44. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/price-update-policy/structs.d.ts +212 -0
  45. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/price-update-policy/structs.js +525 -0
  46. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/x-oracle/structs.d.ts +471 -0
  47. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/x-oracle/structs.js +669 -0
  48. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/airdrop/structs.d.ts +463 -0
  49. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/airdrop/structs.js +961 -0
  50. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/big-vector/structs.d.ts +137 -0
  51. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/big-vector/structs.js +401 -0
  52. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/critbit/structs.d.ts +226 -0
  53. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/critbit/structs.js +572 -0
  54. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/ecosystem/structs.d.ts +383 -0
  55. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/ecosystem/structs.js +802 -0
  56. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/index.d.ts +2 -0
  57. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/index.js +5 -0
  58. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/init.d.ts +2 -0
  59. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/init.js +72 -0
  60. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/leaderboard/structs.d.ts +591 -0
  61. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/leaderboard/structs.js +1156 -0
  62. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/linked-object-table/structs.d.ts +152 -0
  63. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/linked-object-table/structs.js +380 -0
  64. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/linked-set/structs.d.ts +138 -0
  65. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/linked-set/structs.js +376 -0
  66. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/tgld/structs.d.ts +261 -0
  67. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/tgld/structs.js +653 -0
  68. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/user/structs.d.ts +194 -0
  69. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/user/structs.js +509 -0
  70. package/lib/utils/_dependencies/source/0x2/authenticator-state/structs.d.ts +442 -0
  71. package/lib/utils/_dependencies/source/0x2/authenticator-state/structs.js +807 -0
  72. package/lib/utils/_dependencies/source/0x2/bag/structs.d.ts +56 -0
  73. package/lib/utils/_dependencies/source/0x2/bag/structs.js +210 -0
  74. package/lib/utils/_dependencies/source/0x2/balance/structs.d.ts +79 -0
  75. package/lib/utils/_dependencies/source/0x2/balance/structs.js +332 -0
  76. package/lib/utils/_dependencies/source/0x2/bcs/structs.d.ts +44 -0
  77. package/lib/utils/_dependencies/source/0x2/bcs/structs.js +227 -0
  78. package/lib/utils/_dependencies/source/0x2/bls12381/structs.d.ts +155 -0
  79. package/lib/utils/_dependencies/source/0x2/bls12381/structs.js +578 -0
  80. package/lib/utils/_dependencies/source/0x2/borrow/structs.d.ts +104 -0
  81. package/lib/utils/_dependencies/source/0x2/borrow/structs.js +353 -0
  82. package/lib/utils/_dependencies/source/0x2/clock/structs.d.ts +56 -0
  83. package/lib/utils/_dependencies/source/0x2/clock/structs.js +216 -0
  84. package/lib/utils/_dependencies/source/0x2/coin/structs.d.ts +379 -0
  85. package/lib/utils/_dependencies/source/0x2/coin/structs.js +924 -0
  86. package/lib/utils/_dependencies/source/0x2/deny-list/structs.d.ts +178 -0
  87. package/lib/utils/_dependencies/source/0x2/deny-list/structs.js +386 -0
  88. package/lib/utils/_dependencies/source/0x2/display/structs.d.ts +228 -0
  89. package/lib/utils/_dependencies/source/0x2/display/structs.js +498 -0
  90. package/lib/utils/_dependencies/source/0x2/dynamic-field/structs.d.ts +63 -0
  91. package/lib/utils/_dependencies/source/0x2/dynamic-field/structs.js +226 -0
  92. package/lib/utils/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +42 -0
  93. package/lib/utils/_dependencies/source/0x2/dynamic-object-field/structs.js +208 -0
  94. package/lib/utils/_dependencies/source/0x2/groth16/structs.d.ts +186 -0
  95. package/lib/utils/_dependencies/source/0x2/groth16/structs.js +626 -0
  96. package/lib/utils/_dependencies/source/0x2/group-ops/structs.d.ts +44 -0
  97. package/lib/utils/_dependencies/source/0x2/group-ops/structs.js +229 -0
  98. package/lib/utils/_dependencies/source/0x2/index.d.ts +2 -0
  99. package/lib/utils/_dependencies/source/0x2/index.js +5 -0
  100. package/lib/utils/_dependencies/source/0x2/init.d.ts +2 -0
  101. package/lib/utils/_dependencies/source/0x2/init.js +151 -0
  102. package/lib/utils/_dependencies/source/0x2/kiosk/structs.d.ts +565 -0
  103. package/lib/utils/_dependencies/source/0x2/kiosk/structs.js +1501 -0
  104. package/lib/utils/_dependencies/source/0x2/kiosk-extension/structs.d.ts +112 -0
  105. package/lib/utils/_dependencies/source/0x2/kiosk-extension/structs.js +349 -0
  106. package/lib/utils/_dependencies/source/0x2/linked-table/structs.d.ts +144 -0
  107. package/lib/utils/_dependencies/source/0x2/linked-table/structs.js +380 -0
  108. package/lib/utils/_dependencies/source/0x2/object/structs.d.ts +83 -0
  109. package/lib/utils/_dependencies/source/0x2/object/structs.js +328 -0
  110. package/lib/utils/_dependencies/source/0x2/object-bag/structs.d.ts +56 -0
  111. package/lib/utils/_dependencies/source/0x2/object-bag/structs.js +210 -0
  112. package/lib/utils/_dependencies/source/0x2/object-table/structs.d.ts +56 -0
  113. package/lib/utils/_dependencies/source/0x2/object-table/structs.js +218 -0
  114. package/lib/utils/_dependencies/source/0x2/package/structs.d.ts +262 -0
  115. package/lib/utils/_dependencies/source/0x2/package/structs.js +682 -0
  116. package/lib/utils/_dependencies/source/0x2/priority-queue/structs.d.ts +101 -0
  117. package/lib/utils/_dependencies/source/0x2/priority-queue/structs.js +376 -0
  118. package/lib/utils/_dependencies/source/0x2/random/structs.d.ts +190 -0
  119. package/lib/utils/_dependencies/source/0x2/random/structs.js +533 -0
  120. package/lib/utils/_dependencies/source/0x2/sui/structs.d.ts +41 -0
  121. package/lib/utils/_dependencies/source/0x2/sui/structs.js +203 -0
  122. package/lib/utils/_dependencies/source/0x2/table/structs.d.ts +56 -0
  123. package/lib/utils/_dependencies/source/0x2/table/structs.js +218 -0
  124. package/lib/utils/_dependencies/source/0x2/table-vec/structs.d.ts +63 -0
  125. package/lib/utils/_dependencies/source/0x2/table-vec/structs.js +236 -0
  126. package/lib/utils/_dependencies/source/0x2/token/structs.d.ts +424 -0
  127. package/lib/utils/_dependencies/source/0x2/token/structs.js +937 -0
  128. package/lib/utils/_dependencies/source/0x2/transfer/structs.d.ts +52 -0
  129. package/lib/utils/_dependencies/source/0x2/transfer/structs.js +218 -0
  130. package/lib/utils/_dependencies/source/0x2/transfer-policy/structs.d.ts +345 -0
  131. package/lib/utils/_dependencies/source/0x2/transfer-policy/structs.js +923 -0
  132. package/lib/utils/_dependencies/source/0x2/tx-context/structs.d.ts +68 -0
  133. package/lib/utils/_dependencies/source/0x2/tx-context/structs.js +257 -0
  134. package/lib/utils/_dependencies/source/0x2/url/structs.d.ts +48 -0
  135. package/lib/utils/_dependencies/source/0x2/url/structs.js +204 -0
  136. package/lib/utils/_dependencies/source/0x2/vec-map/structs.d.ts +101 -0
  137. package/lib/utils/_dependencies/source/0x2/vec-map/structs.js +378 -0
  138. package/lib/utils/_dependencies/source/0x2/vec-set/structs.d.ts +45 -0
  139. package/lib/utils/_dependencies/source/0x2/vec-set/structs.js +232 -0
  140. package/lib/utils/_dependencies/source/0x2/versioned/structs.d.ts +104 -0
  141. package/lib/utils/_dependencies/source/0x2/versioned/structs.js +353 -0
  142. package/lib/utils/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +105 -0
  143. package/lib/utils/_dependencies/source/0x2/zklogin-verified-id/structs.js +241 -0
  144. package/lib/utils/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +69 -0
  145. package/lib/utils/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +223 -0
  146. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +2 -0
  147. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +5 -0
  148. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +2 -0
  149. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +31 -0
  150. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +50 -0
  151. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +204 -0
  152. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +2 -0
  153. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +5 -0
  154. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +2 -0
  155. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +34 -0
  156. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +41 -0
  157. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +203 -0
  158. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +112 -0
  159. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +359 -0
  160. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/auto-bid/structs.d.ts +1404 -0
  161. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/auto-bid/structs.js +2581 -0
  162. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/index.d.ts +2 -0
  163. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/index.js +5 -0
  164. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/init.d.ts +2 -0
  165. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/init.js +131 -0
  166. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tails-staking/structs.d.ts +1201 -0
  167. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tails-staking/structs.js +2527 -0
  168. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-authorized-entry/structs.d.ts +1622 -0
  169. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-authorized-entry/structs.js +2192 -0
  170. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-fee-pool-entry/structs.d.ts +395 -0
  171. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-fee-pool-entry/structs.js +1094 -0
  172. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-registry-authorized-entry/structs.d.ts +994 -0
  173. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-registry-authorized-entry/structs.js +1358 -0
  174. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-view-function/structs.d.ts +77 -0
  175. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-view-function/structs.js +245 -0
  176. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/typus-dov-single/structs.d.ts +4338 -0
  177. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/typus-dov-single/structs.js +5821 -0
  178. package/lib/utils/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +2 -0
  179. package/lib/utils/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +5 -0
  180. package/lib/utils/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +2 -0
  181. package/lib/utils/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +5 -0
  182. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/ac-table/structs.d.ts +218 -0
  183. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/ac-table/structs.js +524 -0
  184. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/balance-bag/structs.d.ts +77 -0
  185. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/balance-bag/structs.js +217 -0
  186. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/index.d.ts +2 -0
  187. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/index.js +5 -0
  188. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/init.d.ts +2 -0
  189. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/init.js +46 -0
  190. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/one-time-lock-value/structs.d.ts +69 -0
  191. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/one-time-lock-value/structs.js +233 -0
  192. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/ownership/structs.d.ts +60 -0
  193. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/ownership/structs.js +218 -0
  194. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/supply-bag/structs.d.ts +77 -0
  195. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/supply-bag/structs.js +217 -0
  196. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/wit-table/structs.d.ts +103 -0
  197. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/wit-table/structs.js +259 -0
  198. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/witness/structs.d.ts +79 -0
  199. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/witness/structs.js +332 -0
  200. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/index.d.ts +2 -0
  201. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/index.js +5 -0
  202. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/init.d.ts +2 -0
  203. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/init.js +40 -0
  204. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/oracle/structs.d.ts +277 -0
  205. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/oracle/structs.js +553 -0
  206. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/pyth-parser/structs.d.ts +102 -0
  207. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/pyth-parser/structs.js +353 -0
  208. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/supra/structs.d.ts +65 -0
  209. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/supra/structs.js +233 -0
  210. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/switchboard-feed-parser/structs.d.ts +65 -0
  211. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/switchboard-feed-parser/structs.js +233 -0
  212. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +83 -0
  213. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +192 -0
  214. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +333 -0
  215. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +382 -0
  216. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +68 -0
  217. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +176 -0
  218. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +843 -0
  219. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +959 -0
  220. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +41 -0
  221. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +167 -0
  222. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +2 -0
  223. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +5 -0
  224. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +2 -0
  225. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +80 -0
  226. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +146 -0
  227. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +274 -0
  228. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +2272 -0
  229. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +4465 -0
  230. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +719 -0
  231. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +1107 -0
  232. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +2 -0
  233. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +5 -0
  234. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +2 -0
  235. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +44 -0
  236. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +81 -0
  237. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +258 -0
  238. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +53 -0
  239. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +221 -0
  240. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +115 -0
  241. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +294 -0
  242. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +50 -0
  243. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +204 -0
  244. package/lib/utils/_dependencies/source/0x9c564002970ce40370b0c1a8328d2e91924dab43ca2cb483af67aaf0f7cbe44e/index.d.ts +2 -0
  245. package/lib/utils/_dependencies/source/0x9c564002970ce40370b0c1a8328d2e91924dab43ca2cb483af67aaf0f7cbe44e/index.js +5 -0
  246. package/lib/utils/_dependencies/source/0x9c564002970ce40370b0c1a8328d2e91924dab43ca2cb483af67aaf0f7cbe44e/init.d.ts +2 -0
  247. package/lib/utils/_dependencies/source/0x9c564002970ce40370b0c1a8328d2e91924dab43ca2cb483af67aaf0f7cbe44e/init.js +5 -0
  248. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/authority/structs.d.ts +83 -0
  249. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/authority/structs.js +234 -0
  250. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/balance-pool/structs.d.ts +333 -0
  251. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/balance-pool/structs.js +528 -0
  252. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/big-vector/structs.d.ts +68 -0
  253. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/big-vector/structs.js +230 -0
  254. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/dutch/structs.d.ts +843 -0
  255. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/dutch/structs.js +1573 -0
  256. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/i64/structs.d.ts +41 -0
  257. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/i64/structs.js +203 -0
  258. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/index.d.ts +2 -0
  259. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/index.js +5 -0
  260. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/init.d.ts +2 -0
  261. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/init.js +80 -0
  262. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/linked-list/structs.d.ts +146 -0
  263. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/linked-list/structs.js +386 -0
  264. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/vault/structs.d.ts +2272 -0
  265. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/vault/structs.js +4465 -0
  266. package/lib/utils/_dependencies/source/0xad013d5fde39e15eabda32b3dbdafd67dac32b798ce63237c27a8f73339b9b6f/index.d.ts +2 -0
  267. package/lib/utils/_dependencies/source/0xad013d5fde39e15eabda32b3dbdafd67dac32b798ce63237c27a8f73339b9b6f/index.js +5 -0
  268. package/lib/utils/_dependencies/source/0xad013d5fde39e15eabda32b3dbdafd67dac32b798ce63237c27a8f73339b9b6f/init.d.ts +2 -0
  269. package/lib/utils/_dependencies/source/0xad013d5fde39e15eabda32b3dbdafd67dac32b798ce63237c27a8f73339b9b6f/init.js +5 -0
  270. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +2 -0
  271. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +5 -0
  272. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +2 -0
  273. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +37 -0
  274. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +79 -0
  275. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +328 -0
  276. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +85 -0
  277. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +340 -0
  278. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +41 -0
  279. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +205 -0
  280. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/coin-decimals-registry/structs.d.ts +174 -0
  281. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/coin-decimals-registry/structs.js +511 -0
  282. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/index.d.ts +2 -0
  283. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/index.js +5 -0
  284. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/init.d.ts +2 -0
  285. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/init.js +33 -0
  286. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.d.ts +44 -0
  287. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.js +227 -0
  288. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.d.ts +44 -0
  289. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.js +227 -0
  290. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.d.ts +72 -0
  291. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.js +231 -0
  292. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.d.ts +45 -0
  293. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.js +232 -0
  294. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.d.ts +140 -0
  295. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.js +466 -0
  296. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.d.ts +52 -0
  297. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.js +204 -0
  298. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.d.ts +58 -0
  299. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.js +241 -0
  300. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.d.ts +158 -0
  301. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.js +406 -0
  302. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.d.ts +52 -0
  303. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.js +204 -0
  304. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.d.ts +75 -0
  305. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.js +246 -0
  306. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.d.ts +80 -0
  307. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.js +228 -0
  308. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.d.ts +2 -0
  309. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.js +5 -0
  310. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.d.ts +2 -0
  311. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.js +91 -0
  312. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.d.ts +46 -0
  313. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.js +204 -0
  314. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.d.ts +177 -0
  315. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.js +592 -0
  316. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.d.ts +141 -0
  317. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.js +413 -0
  318. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.d.ts +101 -0
  319. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.js +361 -0
  320. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.d.ts +79 -0
  321. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.js +328 -0
  322. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.d.ts +50 -0
  323. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.js +204 -0
  324. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.d.ts +269 -0
  325. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.js +413 -0
  326. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.d.ts +85 -0
  327. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.js +340 -0
  328. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.d.ts +145 -0
  329. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.js +490 -0
  330. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.d.ts +143 -0
  331. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.js +467 -0
  332. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.d.ts +122 -0
  333. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.js +283 -0
  334. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.d.ts +79 -0
  335. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.js +328 -0
  336. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.d.ts +279 -0
  337. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.js +407 -0
  338. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.d.ts +105 -0
  339. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.js +342 -0
  340. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.d.ts +66 -0
  341. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.js +216 -0
  342. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.d.ts +200 -0
  343. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.js +341 -0
  344. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.d.ts +67 -0
  345. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.js +246 -0
  346. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.d.ts +41 -0
  347. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.js +203 -0
  348. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.d.ts +71 -0
  349. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.js +252 -0
  350. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.d.ts +45 -0
  351. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.js +232 -0
  352. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.d.ts +47 -0
  353. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.js +215 -0
  354. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.d.ts +2 -0
  355. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.js +5 -0
  356. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.d.ts +2 -0
  357. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.js +85 -0
  358. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.d.ts +46 -0
  359. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.js +204 -0
  360. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.d.ts +84 -0
  361. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.js +228 -0
  362. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.d.ts +153 -0
  363. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.js +223 -0
  364. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.d.ts +44 -0
  365. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.js +227 -0
  366. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.d.ts +351 -0
  367. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.js +360 -0
  368. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.d.ts +41 -0
  369. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.js +203 -0
  370. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.d.ts +110 -0
  371. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.js +370 -0
  372. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.d.ts +75 -0
  373. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.js +228 -0
  374. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.d.ts +41 -0
  375. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.js +203 -0
  376. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.d.ts +72 -0
  377. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.js +222 -0
  378. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.d.ts +41 -0
  379. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.js +203 -0
  380. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.d.ts +47 -0
  381. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.js +215 -0
  382. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.d.ts +50 -0
  383. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.js +204 -0
  384. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.d.ts +269 -0
  385. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.js +507 -0
  386. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.d.ts +79 -0
  387. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.js +328 -0
  388. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/admin/structs.d.ts +215 -0
  389. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/admin/structs.js +533 -0
  390. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/index.d.ts +2 -0
  391. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/index.js +5 -0
  392. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/init.d.ts +2 -0
  393. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/init.js +44 -0
  394. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/rewards-pool/structs.d.ts +93 -0
  395. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/rewards-pool/structs.js +243 -0
  396. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/spool/structs.d.ts +125 -0
  397. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/spool/structs.js +271 -0
  398. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/spool-account/structs.d.ts +114 -0
  399. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/spool-account/structs.js +250 -0
  400. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/user/structs.d.ts +413 -0
  401. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/user/structs.js +754 -0
  402. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/app/structs.d.ts +210 -0
  403. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/app/structs.js +392 -0
  404. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/asset-active-state/structs.d.ts +250 -0
  405. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/asset-active-state/structs.js +491 -0
  406. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/borrow/structs.d.ts +85 -0
  407. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/borrow/structs.js +235 -0
  408. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/borrow-dynamics/structs.d.ts +106 -0
  409. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/borrow-dynamics/structs.js +353 -0
  410. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/collateral-stats/structs.d.ts +79 -0
  411. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/collateral-stats/structs.js +328 -0
  412. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/deposit-collateral/structs.d.ts +79 -0
  413. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/deposit-collateral/structs.js +229 -0
  414. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/flash-loan/structs.d.ts +132 -0
  415. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/flash-loan/structs.js +365 -0
  416. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/incentive-rewards/structs.d.ts +109 -0
  417. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/incentive-rewards/structs.js +342 -0
  418. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/index.d.ts +2 -0
  419. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/index.js +5 -0
  420. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/init.d.ts +2 -0
  421. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/init.js +114 -0
  422. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/interest-model/structs.d.ts +571 -0
  423. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/interest-model/structs.js +682 -0
  424. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/limiter/structs.d.ts +591 -0
  425. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/limiter/structs.js +1360 -0
  426. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/liquidate/structs.d.ts +111 -0
  427. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/liquidate/structs.js +247 -0
  428. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/lock-obligation/structs.d.ts +67 -0
  429. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/lock-obligation/structs.js +217 -0
  430. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/market/structs.d.ts +854 -0
  431. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/market/structs.js +293 -0
  432. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/mint/structs.d.ts +100 -0
  433. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/mint/structs.js +240 -0
  434. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation/structs.d.ts +628 -0
  435. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation/structs.js +1010 -0
  436. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-access/structs.d.ts +92 -0
  437. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-access/structs.js +224 -0
  438. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-collaterals/structs.d.ts +79 -0
  439. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-collaterals/structs.js +328 -0
  440. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-debts/structs.d.ts +85 -0
  441. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-debts/structs.js +340 -0
  442. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/open-obligation/structs.d.ts +104 -0
  443. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/open-obligation/structs.js +347 -0
  444. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/redeem/structs.d.ts +100 -0
  445. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/redeem/structs.js +240 -0
  446. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/repay/structs.d.ts +85 -0
  447. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/repay/structs.js +235 -0
  448. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/reserve/structs.d.ts +497 -0
  449. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/reserve/structs.js +927 -0
  450. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/risk-model/structs.d.ts +443 -0
  451. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/risk-model/structs.js +658 -0
  452. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/version/structs.d.ts +102 -0
  453. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/version/structs.js +335 -0
  454. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/withdraw-collateral/structs.d.ts +79 -0
  455. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/withdraw-collateral/structs.js +229 -0
  456. package/lib/utils/_framework/init-source.d.ts +1 -0
  457. package/lib/utils/_framework/init-source.js +81 -0
  458. package/lib/utils/_framework/loader.d.ts +17 -0
  459. package/lib/utils/_framework/loader.js +99 -0
  460. package/lib/utils/_framework/reified.d.ts +100 -0
  461. package/lib/utils/_framework/reified.js +263 -0
  462. package/lib/utils/_framework/util.d.ts +53 -0
  463. package/lib/utils/_framework/util.js +252 -0
  464. package/lib/utils/api/sentio/reward-generated.d.ts +1 -0
  465. package/lib/utils/api/sentio/reward-generated.js +54 -1
  466. package/lib/utils/locked-period-vault/index.d.ts +3 -0
  467. package/lib/utils/locked-period-vault/index.js +6 -0
  468. package/lib/utils/locked-period-vault/init.d.ts +2 -0
  469. package/lib/utils/locked-period-vault/init.js +44 -0
  470. package/lib/utils/locked-period-vault/locked-period-vault/functions.d.ts +137 -0
  471. package/lib/utils/locked-period-vault/locked-period-vault/functions.js +264 -0
  472. package/lib/utils/locked-period-vault/locked-period-vault/structs.d.ts +1236 -0
  473. package/lib/utils/locked-period-vault/locked-period-vault/structs.js +2400 -0
  474. package/lib/utils/typus-dov-single-v2/user-history.js +15 -2
  475. package/lib/utils/typus_perp/admin/functions.d.ts +18 -0
  476. package/lib/utils/typus_perp/admin/functions.js +43 -0
  477. package/lib/utils/typus_perp/admin/structs.d.ts +371 -0
  478. package/lib/utils/typus_perp/admin/structs.js +796 -0
  479. package/lib/utils/typus_perp/critbit/functions.d.ts +101 -0
  480. package/lib/utils/typus_perp/critbit/functions.js +186 -0
  481. package/lib/utils/typus_perp/critbit/structs.d.ts +226 -0
  482. package/lib/utils/typus_perp/critbit/structs.js +572 -0
  483. package/lib/utils/typus_perp/index.d.ts +2 -0
  484. package/lib/utils/typus_perp/index.js +5 -0
  485. package/lib/utils/typus_perp/init.d.ts +2 -0
  486. package/lib/utils/typus_perp/init.js +121 -0
  487. package/lib/utils/typus_perp/lp-pool/functions.d.ts +231 -0
  488. package/lib/utils/typus_perp/lp-pool/functions.js +346 -0
  489. package/lib/utils/typus_perp/lp-pool/structs.d.ts +2232 -0
  490. package/lib/utils/typus_perp/lp-pool/structs.js +3300 -0
  491. package/lib/utils/typus_perp/math/functions.d.ts +16 -0
  492. package/lib/utils/typus_perp/math/functions.js +33 -0
  493. package/lib/utils/typus_perp/oracle/functions.d.ts +14 -0
  494. package/lib/utils/typus_perp/oracle/functions.js +23 -0
  495. package/lib/utils/typus_perp/oracle/structs.d.ts +102 -0
  496. package/lib/utils/typus_perp/oracle/structs.js +353 -0
  497. package/lib/utils/typus_perp/position/functions.d.ts +189 -0
  498. package/lib/utils/typus_perp/position/functions.js +307 -0
  499. package/lib/utils/typus_perp/position/structs.d.ts +588 -0
  500. package/lib/utils/typus_perp/position/structs.js +763 -0
  501. package/lib/utils/typus_perp/stake-pool/functions.d.ts +180 -0
  502. package/lib/utils/typus_perp/stake-pool/functions.js +276 -0
  503. package/lib/utils/typus_perp/stake-pool/structs.d.ts +2089 -0
  504. package/lib/utils/typus_perp/stake-pool/structs.js +3539 -0
  505. package/lib/utils/typus_perp/symbol/functions.d.ts +10 -0
  506. package/lib/utils/typus_perp/symbol/functions.js +21 -0
  507. package/lib/utils/typus_perp/symbol/structs.d.ts +76 -0
  508. package/lib/utils/typus_perp/symbol/structs.js +216 -0
  509. package/lib/utils/typus_perp/tlp/functions.d.ts +20 -0
  510. package/lib/utils/typus_perp/tlp/functions.js +36 -0
  511. package/lib/utils/typus_perp/tlp/structs.d.ts +88 -0
  512. package/lib/utils/typus_perp/tlp/structs.js +329 -0
  513. package/lib/utils/typus_perp/token-interface/functions.d.ts +12 -0
  514. package/lib/utils/typus_perp/token-interface/functions.js +21 -0
  515. package/lib/utils/typus_perp/trading/functions.d.ts +234 -0
  516. package/lib/utils/typus_perp/trading/functions.js +329 -0
  517. package/lib/utils/typus_perp/trading/structs.d.ts +2305 -0
  518. package/lib/utils/typus_perp/trading/structs.js +3792 -0
  519. package/lib/utils/typus_perp/treasury-caps/functions.d.ts +10 -0
  520. package/lib/utils/typus_perp/treasury-caps/functions.js +33 -0
  521. package/lib/utils/typus_perp/treasury-caps/structs.d.ts +50 -0
  522. package/lib/utils/typus_perp/treasury-caps/structs.js +204 -0
  523. package/lib/utils/typus_perp/utils/functions.d.ts +24 -0
  524. package/lib/utils/typus_perp/utils/functions.js +41 -0
  525. package/package.json +2 -2
  526. package/lib/utils/locked-period-vault/user-entry.d.ts +0 -81
  527. package/lib/utils/locked-period-vault/user-entry.js +0 -101
@@ -0,0 +1,1501 @@
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.PurchaseCap = exports.isPurchaseCap = exports.Lock = exports.isLock = exports.Listing = exports.isListing = exports.KioskOwnerCap = exports.isKioskOwnerCap = exports.Kiosk = exports.isKiosk = exports.ItemPurchased = exports.isItemPurchased = exports.ItemListed = exports.isItemListed = exports.ItemDelisted = exports.isItemDelisted = exports.Item = exports.isItem = exports.Borrow = exports.isBorrow = 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("../balance/structs");
103
+ var structs_2 = require("../object/structs");
104
+ var structs_3 = require("../sui/structs");
105
+ var bcs_1 = require("@mysten/bcs");
106
+ /* ============================== Borrow =============================== */
107
+ function isBorrow(type) {
108
+ type = (0, util_1.compressSuiType)(type);
109
+ return type === "0x2::kiosk::Borrow";
110
+ }
111
+ exports.isBorrow = isBorrow;
112
+ var Borrow = /** @class */ (function () {
113
+ function Borrow(typeArgs, fields) {
114
+ this.$typeName = Borrow.$typeName;
115
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Borrow.$typeName], __read(typeArgs), false));
116
+ this.$typeArgs = typeArgs;
117
+ this.kioskId = fields.kioskId;
118
+ this.itemId = fields.itemId;
119
+ }
120
+ Borrow.reified = function () {
121
+ var _this = this;
122
+ return {
123
+ typeName: Borrow.$typeName,
124
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Borrow.$typeName], [], false)),
125
+ typeArgs: [],
126
+ reifiedTypeArgs: [],
127
+ fromFields: function (fields) { return Borrow.fromFields(fields); },
128
+ fromFieldsWithTypes: function (item) { return Borrow.fromFieldsWithTypes(item); },
129
+ fromBcs: function (data) { return Borrow.fromBcs(data); },
130
+ bcs: Borrow.bcs,
131
+ fromJSONField: function (field) { return Borrow.fromJSONField(field); },
132
+ fromJSON: function (json) { return Borrow.fromJSON(json); },
133
+ fromSuiParsedData: function (content) { return Borrow.fromSuiParsedData(content); },
134
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
135
+ return [2 /*return*/, Borrow.fetch(client, id)];
136
+ }); }); },
137
+ new: function (fields) {
138
+ return new Borrow([], fields);
139
+ },
140
+ kind: "StructClassReified",
141
+ };
142
+ };
143
+ Object.defineProperty(Borrow, "r", {
144
+ get: function () {
145
+ return Borrow.reified();
146
+ },
147
+ enumerable: false,
148
+ configurable: true
149
+ });
150
+ Borrow.phantom = function () {
151
+ return (0, reified_1.phantom)(Borrow.reified());
152
+ };
153
+ Object.defineProperty(Borrow, "p", {
154
+ get: function () {
155
+ return Borrow.phantom();
156
+ },
157
+ enumerable: false,
158
+ configurable: true
159
+ });
160
+ Object.defineProperty(Borrow, "bcs", {
161
+ get: function () {
162
+ return bcs_1.bcs.struct("Borrow", {
163
+ kiosk_id: structs_2.ID.bcs,
164
+ item_id: structs_2.ID.bcs,
165
+ });
166
+ },
167
+ enumerable: false,
168
+ configurable: true
169
+ });
170
+ Borrow.fromFields = function (fields) {
171
+ return Borrow.reified().new({
172
+ kioskId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.kiosk_id),
173
+ itemId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.item_id),
174
+ });
175
+ };
176
+ Borrow.fromFieldsWithTypes = function (item) {
177
+ if (!isBorrow(item.type)) {
178
+ throw new Error("not a Borrow type");
179
+ }
180
+ return Borrow.reified().new({
181
+ kioskId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.kiosk_id),
182
+ itemId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.item_id),
183
+ });
184
+ };
185
+ Borrow.fromBcs = function (data) {
186
+ return Borrow.fromFields(Borrow.bcs.parse(data));
187
+ };
188
+ Borrow.prototype.toJSONField = function () {
189
+ return {
190
+ kioskId: this.kioskId,
191
+ itemId: this.itemId,
192
+ };
193
+ };
194
+ Borrow.prototype.toJSON = function () {
195
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
196
+ };
197
+ Borrow.fromJSONField = function (field) {
198
+ return Borrow.reified().new({
199
+ kioskId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.kioskId),
200
+ itemId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.itemId),
201
+ });
202
+ };
203
+ Borrow.fromJSON = function (json) {
204
+ if (json.$typeName !== Borrow.$typeName) {
205
+ throw new Error("not a WithTwoGenerics json object");
206
+ }
207
+ return Borrow.fromJSONField(json);
208
+ };
209
+ Borrow.fromSuiParsedData = function (content) {
210
+ if (content.dataType !== "moveObject") {
211
+ throw new Error("not an object");
212
+ }
213
+ if (!isBorrow(content.type)) {
214
+ throw new Error("object at ".concat(content.fields.id, " is not a Borrow object"));
215
+ }
216
+ return Borrow.fromFieldsWithTypes(content);
217
+ };
218
+ Borrow.fetch = function (client, id) {
219
+ return __awaiter(this, void 0, void 0, function () {
220
+ var res;
221
+ var _a, _b;
222
+ return __generator(this, function (_c) {
223
+ switch (_c.label) {
224
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
225
+ case 1:
226
+ res = _c.sent();
227
+ if (res.error) {
228
+ throw new Error("error fetching Borrow object at id ".concat(id, ": ").concat(res.error.code));
229
+ }
230
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isBorrow(res.data.bcs.type)) {
231
+ throw new Error("object at id ".concat(id, " is not a Borrow object"));
232
+ }
233
+ return [2 /*return*/, Borrow.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
234
+ }
235
+ });
236
+ });
237
+ };
238
+ Borrow.$typeName = "0x2::kiosk::Borrow";
239
+ Borrow.$numTypeParams = 0;
240
+ return Borrow;
241
+ }());
242
+ exports.Borrow = Borrow;
243
+ /* ============================== Item =============================== */
244
+ function isItem(type) {
245
+ type = (0, util_1.compressSuiType)(type);
246
+ return type === "0x2::kiosk::Item";
247
+ }
248
+ exports.isItem = isItem;
249
+ var Item = /** @class */ (function () {
250
+ function Item(typeArgs, fields) {
251
+ this.$typeName = Item.$typeName;
252
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Item.$typeName], __read(typeArgs), false));
253
+ this.$typeArgs = typeArgs;
254
+ this.id = fields.id;
255
+ }
256
+ Item.reified = function () {
257
+ var _this = this;
258
+ return {
259
+ typeName: Item.$typeName,
260
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Item.$typeName], [], false)),
261
+ typeArgs: [],
262
+ reifiedTypeArgs: [],
263
+ fromFields: function (fields) { return Item.fromFields(fields); },
264
+ fromFieldsWithTypes: function (item) { return Item.fromFieldsWithTypes(item); },
265
+ fromBcs: function (data) { return Item.fromBcs(data); },
266
+ bcs: Item.bcs,
267
+ fromJSONField: function (field) { return Item.fromJSONField(field); },
268
+ fromJSON: function (json) { return Item.fromJSON(json); },
269
+ fromSuiParsedData: function (content) { return Item.fromSuiParsedData(content); },
270
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
271
+ return [2 /*return*/, Item.fetch(client, id)];
272
+ }); }); },
273
+ new: function (fields) {
274
+ return new Item([], fields);
275
+ },
276
+ kind: "StructClassReified",
277
+ };
278
+ };
279
+ Object.defineProperty(Item, "r", {
280
+ get: function () {
281
+ return Item.reified();
282
+ },
283
+ enumerable: false,
284
+ configurable: true
285
+ });
286
+ Item.phantom = function () {
287
+ return (0, reified_1.phantom)(Item.reified());
288
+ };
289
+ Object.defineProperty(Item, "p", {
290
+ get: function () {
291
+ return Item.phantom();
292
+ },
293
+ enumerable: false,
294
+ configurable: true
295
+ });
296
+ Object.defineProperty(Item, "bcs", {
297
+ get: function () {
298
+ return bcs_1.bcs.struct("Item", {
299
+ id: structs_2.ID.bcs,
300
+ });
301
+ },
302
+ enumerable: false,
303
+ configurable: true
304
+ });
305
+ Item.fromFields = function (fields) {
306
+ return Item.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id) });
307
+ };
308
+ Item.fromFieldsWithTypes = function (item) {
309
+ if (!isItem(item.type)) {
310
+ throw new Error("not a Item type");
311
+ }
312
+ return Item.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id) });
313
+ };
314
+ Item.fromBcs = function (data) {
315
+ return Item.fromFields(Item.bcs.parse(data));
316
+ };
317
+ Item.prototype.toJSONField = function () {
318
+ return {
319
+ id: this.id,
320
+ };
321
+ };
322
+ Item.prototype.toJSON = function () {
323
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
324
+ };
325
+ Item.fromJSONField = function (field) {
326
+ return Item.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id) });
327
+ };
328
+ Item.fromJSON = function (json) {
329
+ if (json.$typeName !== Item.$typeName) {
330
+ throw new Error("not a WithTwoGenerics json object");
331
+ }
332
+ return Item.fromJSONField(json);
333
+ };
334
+ Item.fromSuiParsedData = function (content) {
335
+ if (content.dataType !== "moveObject") {
336
+ throw new Error("not an object");
337
+ }
338
+ if (!isItem(content.type)) {
339
+ throw new Error("object at ".concat(content.fields.id, " is not a Item object"));
340
+ }
341
+ return Item.fromFieldsWithTypes(content);
342
+ };
343
+ Item.fetch = function (client, id) {
344
+ return __awaiter(this, void 0, void 0, function () {
345
+ var res;
346
+ var _a, _b;
347
+ return __generator(this, function (_c) {
348
+ switch (_c.label) {
349
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
350
+ case 1:
351
+ res = _c.sent();
352
+ if (res.error) {
353
+ throw new Error("error fetching Item object at id ".concat(id, ": ").concat(res.error.code));
354
+ }
355
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isItem(res.data.bcs.type)) {
356
+ throw new Error("object at id ".concat(id, " is not a Item object"));
357
+ }
358
+ return [2 /*return*/, Item.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
359
+ }
360
+ });
361
+ });
362
+ };
363
+ Item.$typeName = "0x2::kiosk::Item";
364
+ Item.$numTypeParams = 0;
365
+ return Item;
366
+ }());
367
+ exports.Item = Item;
368
+ /* ============================== ItemDelisted =============================== */
369
+ function isItemDelisted(type) {
370
+ type = (0, util_1.compressSuiType)(type);
371
+ return type.startsWith("0x2::kiosk::ItemDelisted<");
372
+ }
373
+ exports.isItemDelisted = isItemDelisted;
374
+ var ItemDelisted = /** @class */ (function () {
375
+ function ItemDelisted(typeArgs, fields) {
376
+ this.$typeName = ItemDelisted.$typeName;
377
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ItemDelisted.$typeName], __read(typeArgs), false));
378
+ this.$typeArgs = typeArgs;
379
+ this.kiosk = fields.kiosk;
380
+ this.id = fields.id;
381
+ }
382
+ ItemDelisted.reified = function (T) {
383
+ var _this = this;
384
+ return {
385
+ typeName: ItemDelisted.$typeName,
386
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ItemDelisted.$typeName], [(0, reified_1.extractType)(T)], false)),
387
+ typeArgs: [(0, reified_1.extractType)(T)],
388
+ reifiedTypeArgs: [T],
389
+ fromFields: function (fields) { return ItemDelisted.fromFields(T, fields); },
390
+ fromFieldsWithTypes: function (item) { return ItemDelisted.fromFieldsWithTypes(T, item); },
391
+ fromBcs: function (data) { return ItemDelisted.fromBcs(T, data); },
392
+ bcs: ItemDelisted.bcs,
393
+ fromJSONField: function (field) { return ItemDelisted.fromJSONField(T, field); },
394
+ fromJSON: function (json) { return ItemDelisted.fromJSON(T, json); },
395
+ fromSuiParsedData: function (content) { return ItemDelisted.fromSuiParsedData(T, content); },
396
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
397
+ return [2 /*return*/, ItemDelisted.fetch(client, T, id)];
398
+ }); }); },
399
+ new: function (fields) {
400
+ return new ItemDelisted([(0, reified_1.extractType)(T)], fields);
401
+ },
402
+ kind: "StructClassReified",
403
+ };
404
+ };
405
+ Object.defineProperty(ItemDelisted, "r", {
406
+ get: function () {
407
+ return ItemDelisted.reified;
408
+ },
409
+ enumerable: false,
410
+ configurable: true
411
+ });
412
+ ItemDelisted.phantom = function (T) {
413
+ return (0, reified_1.phantom)(ItemDelisted.reified(T));
414
+ };
415
+ Object.defineProperty(ItemDelisted, "p", {
416
+ get: function () {
417
+ return ItemDelisted.phantom;
418
+ },
419
+ enumerable: false,
420
+ configurable: true
421
+ });
422
+ Object.defineProperty(ItemDelisted, "bcs", {
423
+ get: function () {
424
+ return bcs_1.bcs.struct("ItemDelisted", {
425
+ kiosk: structs_2.ID.bcs,
426
+ id: structs_2.ID.bcs,
427
+ });
428
+ },
429
+ enumerable: false,
430
+ configurable: true
431
+ });
432
+ ItemDelisted.fromFields = function (typeArg, fields) {
433
+ return ItemDelisted.reified(typeArg).new({
434
+ kiosk: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.kiosk),
435
+ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id),
436
+ });
437
+ };
438
+ ItemDelisted.fromFieldsWithTypes = function (typeArg, item) {
439
+ if (!isItemDelisted(item.type)) {
440
+ throw new Error("not a ItemDelisted type");
441
+ }
442
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
443
+ return ItemDelisted.reified(typeArg).new({
444
+ kiosk: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.kiosk),
445
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id),
446
+ });
447
+ };
448
+ ItemDelisted.fromBcs = function (typeArg, data) {
449
+ return ItemDelisted.fromFields(typeArg, ItemDelisted.bcs.parse(data));
450
+ };
451
+ ItemDelisted.prototype.toJSONField = function () {
452
+ return {
453
+ kiosk: this.kiosk,
454
+ id: this.id,
455
+ };
456
+ };
457
+ ItemDelisted.prototype.toJSON = function () {
458
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
459
+ };
460
+ ItemDelisted.fromJSONField = function (typeArg, field) {
461
+ return ItemDelisted.reified(typeArg).new({
462
+ kiosk: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.kiosk),
463
+ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id),
464
+ });
465
+ };
466
+ ItemDelisted.fromJSON = function (typeArg, json) {
467
+ if (json.$typeName !== ItemDelisted.$typeName) {
468
+ throw new Error("not a WithTwoGenerics json object");
469
+ }
470
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(ItemDelisted.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
471
+ return ItemDelisted.fromJSONField(typeArg, json);
472
+ };
473
+ ItemDelisted.fromSuiParsedData = function (typeArg, content) {
474
+ if (content.dataType !== "moveObject") {
475
+ throw new Error("not an object");
476
+ }
477
+ if (!isItemDelisted(content.type)) {
478
+ throw new Error("object at ".concat(content.fields.id, " is not a ItemDelisted object"));
479
+ }
480
+ return ItemDelisted.fromFieldsWithTypes(typeArg, content);
481
+ };
482
+ ItemDelisted.fetch = function (client, typeArg, id) {
483
+ return __awaiter(this, void 0, void 0, function () {
484
+ var res;
485
+ var _a, _b;
486
+ return __generator(this, function (_c) {
487
+ switch (_c.label) {
488
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
489
+ case 1:
490
+ res = _c.sent();
491
+ if (res.error) {
492
+ throw new Error("error fetching ItemDelisted object at id ".concat(id, ": ").concat(res.error.code));
493
+ }
494
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isItemDelisted(res.data.bcs.type)) {
495
+ throw new Error("object at id ".concat(id, " is not a ItemDelisted object"));
496
+ }
497
+ return [2 /*return*/, ItemDelisted.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
498
+ }
499
+ });
500
+ });
501
+ };
502
+ ItemDelisted.$typeName = "0x2::kiosk::ItemDelisted";
503
+ ItemDelisted.$numTypeParams = 1;
504
+ return ItemDelisted;
505
+ }());
506
+ exports.ItemDelisted = ItemDelisted;
507
+ /* ============================== ItemListed =============================== */
508
+ function isItemListed(type) {
509
+ type = (0, util_1.compressSuiType)(type);
510
+ return type.startsWith("0x2::kiosk::ItemListed<");
511
+ }
512
+ exports.isItemListed = isItemListed;
513
+ var ItemListed = /** @class */ (function () {
514
+ function ItemListed(typeArgs, fields) {
515
+ this.$typeName = ItemListed.$typeName;
516
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ItemListed.$typeName], __read(typeArgs), false));
517
+ this.$typeArgs = typeArgs;
518
+ this.kiosk = fields.kiosk;
519
+ this.id = fields.id;
520
+ this.price = fields.price;
521
+ }
522
+ ItemListed.reified = function (T) {
523
+ var _this = this;
524
+ return {
525
+ typeName: ItemListed.$typeName,
526
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ItemListed.$typeName], [(0, reified_1.extractType)(T)], false)),
527
+ typeArgs: [(0, reified_1.extractType)(T)],
528
+ reifiedTypeArgs: [T],
529
+ fromFields: function (fields) { return ItemListed.fromFields(T, fields); },
530
+ fromFieldsWithTypes: function (item) { return ItemListed.fromFieldsWithTypes(T, item); },
531
+ fromBcs: function (data) { return ItemListed.fromBcs(T, data); },
532
+ bcs: ItemListed.bcs,
533
+ fromJSONField: function (field) { return ItemListed.fromJSONField(T, field); },
534
+ fromJSON: function (json) { return ItemListed.fromJSON(T, json); },
535
+ fromSuiParsedData: function (content) { return ItemListed.fromSuiParsedData(T, content); },
536
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
537
+ return [2 /*return*/, ItemListed.fetch(client, T, id)];
538
+ }); }); },
539
+ new: function (fields) {
540
+ return new ItemListed([(0, reified_1.extractType)(T)], fields);
541
+ },
542
+ kind: "StructClassReified",
543
+ };
544
+ };
545
+ Object.defineProperty(ItemListed, "r", {
546
+ get: function () {
547
+ return ItemListed.reified;
548
+ },
549
+ enumerable: false,
550
+ configurable: true
551
+ });
552
+ ItemListed.phantom = function (T) {
553
+ return (0, reified_1.phantom)(ItemListed.reified(T));
554
+ };
555
+ Object.defineProperty(ItemListed, "p", {
556
+ get: function () {
557
+ return ItemListed.phantom;
558
+ },
559
+ enumerable: false,
560
+ configurable: true
561
+ });
562
+ Object.defineProperty(ItemListed, "bcs", {
563
+ get: function () {
564
+ return bcs_1.bcs.struct("ItemListed", {
565
+ kiosk: structs_2.ID.bcs,
566
+ id: structs_2.ID.bcs,
567
+ price: bcs_1.bcs.u64(),
568
+ });
569
+ },
570
+ enumerable: false,
571
+ configurable: true
572
+ });
573
+ ItemListed.fromFields = function (typeArg, fields) {
574
+ return ItemListed.reified(typeArg).new({
575
+ kiosk: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.kiosk),
576
+ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id),
577
+ price: (0, reified_1.decodeFromFields)("u64", fields.price),
578
+ });
579
+ };
580
+ ItemListed.fromFieldsWithTypes = function (typeArg, item) {
581
+ if (!isItemListed(item.type)) {
582
+ throw new Error("not a ItemListed type");
583
+ }
584
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
585
+ return ItemListed.reified(typeArg).new({
586
+ kiosk: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.kiosk),
587
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id),
588
+ price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price),
589
+ });
590
+ };
591
+ ItemListed.fromBcs = function (typeArg, data) {
592
+ return ItemListed.fromFields(typeArg, ItemListed.bcs.parse(data));
593
+ };
594
+ ItemListed.prototype.toJSONField = function () {
595
+ return {
596
+ kiosk: this.kiosk,
597
+ id: this.id,
598
+ price: this.price.toString(),
599
+ };
600
+ };
601
+ ItemListed.prototype.toJSON = function () {
602
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
603
+ };
604
+ ItemListed.fromJSONField = function (typeArg, field) {
605
+ return ItemListed.reified(typeArg).new({
606
+ kiosk: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.kiosk),
607
+ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id),
608
+ price: (0, reified_1.decodeFromJSONField)("u64", field.price),
609
+ });
610
+ };
611
+ ItemListed.fromJSON = function (typeArg, json) {
612
+ if (json.$typeName !== ItemListed.$typeName) {
613
+ throw new Error("not a WithTwoGenerics json object");
614
+ }
615
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(ItemListed.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
616
+ return ItemListed.fromJSONField(typeArg, json);
617
+ };
618
+ ItemListed.fromSuiParsedData = function (typeArg, content) {
619
+ if (content.dataType !== "moveObject") {
620
+ throw new Error("not an object");
621
+ }
622
+ if (!isItemListed(content.type)) {
623
+ throw new Error("object at ".concat(content.fields.id, " is not a ItemListed object"));
624
+ }
625
+ return ItemListed.fromFieldsWithTypes(typeArg, content);
626
+ };
627
+ ItemListed.fetch = function (client, typeArg, id) {
628
+ return __awaiter(this, void 0, void 0, function () {
629
+ var res;
630
+ var _a, _b;
631
+ return __generator(this, function (_c) {
632
+ switch (_c.label) {
633
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
634
+ case 1:
635
+ res = _c.sent();
636
+ if (res.error) {
637
+ throw new Error("error fetching ItemListed object at id ".concat(id, ": ").concat(res.error.code));
638
+ }
639
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isItemListed(res.data.bcs.type)) {
640
+ throw new Error("object at id ".concat(id, " is not a ItemListed object"));
641
+ }
642
+ return [2 /*return*/, ItemListed.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
643
+ }
644
+ });
645
+ });
646
+ };
647
+ ItemListed.$typeName = "0x2::kiosk::ItemListed";
648
+ ItemListed.$numTypeParams = 1;
649
+ return ItemListed;
650
+ }());
651
+ exports.ItemListed = ItemListed;
652
+ /* ============================== ItemPurchased =============================== */
653
+ function isItemPurchased(type) {
654
+ type = (0, util_1.compressSuiType)(type);
655
+ return type.startsWith("0x2::kiosk::ItemPurchased<");
656
+ }
657
+ exports.isItemPurchased = isItemPurchased;
658
+ var ItemPurchased = /** @class */ (function () {
659
+ function ItemPurchased(typeArgs, fields) {
660
+ this.$typeName = ItemPurchased.$typeName;
661
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ItemPurchased.$typeName], __read(typeArgs), false));
662
+ this.$typeArgs = typeArgs;
663
+ this.kiosk = fields.kiosk;
664
+ this.id = fields.id;
665
+ this.price = fields.price;
666
+ }
667
+ ItemPurchased.reified = function (T) {
668
+ var _this = this;
669
+ return {
670
+ typeName: ItemPurchased.$typeName,
671
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ItemPurchased.$typeName], [(0, reified_1.extractType)(T)], false)),
672
+ typeArgs: [(0, reified_1.extractType)(T)],
673
+ reifiedTypeArgs: [T],
674
+ fromFields: function (fields) { return ItemPurchased.fromFields(T, fields); },
675
+ fromFieldsWithTypes: function (item) { return ItemPurchased.fromFieldsWithTypes(T, item); },
676
+ fromBcs: function (data) { return ItemPurchased.fromBcs(T, data); },
677
+ bcs: ItemPurchased.bcs,
678
+ fromJSONField: function (field) { return ItemPurchased.fromJSONField(T, field); },
679
+ fromJSON: function (json) { return ItemPurchased.fromJSON(T, json); },
680
+ fromSuiParsedData: function (content) { return ItemPurchased.fromSuiParsedData(T, content); },
681
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
682
+ return [2 /*return*/, ItemPurchased.fetch(client, T, id)];
683
+ }); }); },
684
+ new: function (fields) {
685
+ return new ItemPurchased([(0, reified_1.extractType)(T)], fields);
686
+ },
687
+ kind: "StructClassReified",
688
+ };
689
+ };
690
+ Object.defineProperty(ItemPurchased, "r", {
691
+ get: function () {
692
+ return ItemPurchased.reified;
693
+ },
694
+ enumerable: false,
695
+ configurable: true
696
+ });
697
+ ItemPurchased.phantom = function (T) {
698
+ return (0, reified_1.phantom)(ItemPurchased.reified(T));
699
+ };
700
+ Object.defineProperty(ItemPurchased, "p", {
701
+ get: function () {
702
+ return ItemPurchased.phantom;
703
+ },
704
+ enumerable: false,
705
+ configurable: true
706
+ });
707
+ Object.defineProperty(ItemPurchased, "bcs", {
708
+ get: function () {
709
+ return bcs_1.bcs.struct("ItemPurchased", {
710
+ kiosk: structs_2.ID.bcs,
711
+ id: structs_2.ID.bcs,
712
+ price: bcs_1.bcs.u64(),
713
+ });
714
+ },
715
+ enumerable: false,
716
+ configurable: true
717
+ });
718
+ ItemPurchased.fromFields = function (typeArg, fields) {
719
+ return ItemPurchased.reified(typeArg).new({
720
+ kiosk: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.kiosk),
721
+ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id),
722
+ price: (0, reified_1.decodeFromFields)("u64", fields.price),
723
+ });
724
+ };
725
+ ItemPurchased.fromFieldsWithTypes = function (typeArg, item) {
726
+ if (!isItemPurchased(item.type)) {
727
+ throw new Error("not a ItemPurchased type");
728
+ }
729
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
730
+ return ItemPurchased.reified(typeArg).new({
731
+ kiosk: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.kiosk),
732
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id),
733
+ price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price),
734
+ });
735
+ };
736
+ ItemPurchased.fromBcs = function (typeArg, data) {
737
+ return ItemPurchased.fromFields(typeArg, ItemPurchased.bcs.parse(data));
738
+ };
739
+ ItemPurchased.prototype.toJSONField = function () {
740
+ return {
741
+ kiosk: this.kiosk,
742
+ id: this.id,
743
+ price: this.price.toString(),
744
+ };
745
+ };
746
+ ItemPurchased.prototype.toJSON = function () {
747
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
748
+ };
749
+ ItemPurchased.fromJSONField = function (typeArg, field) {
750
+ return ItemPurchased.reified(typeArg).new({
751
+ kiosk: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.kiosk),
752
+ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id),
753
+ price: (0, reified_1.decodeFromJSONField)("u64", field.price),
754
+ });
755
+ };
756
+ ItemPurchased.fromJSON = function (typeArg, json) {
757
+ if (json.$typeName !== ItemPurchased.$typeName) {
758
+ throw new Error("not a WithTwoGenerics json object");
759
+ }
760
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(ItemPurchased.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
761
+ return ItemPurchased.fromJSONField(typeArg, json);
762
+ };
763
+ ItemPurchased.fromSuiParsedData = function (typeArg, content) {
764
+ if (content.dataType !== "moveObject") {
765
+ throw new Error("not an object");
766
+ }
767
+ if (!isItemPurchased(content.type)) {
768
+ throw new Error("object at ".concat(content.fields.id, " is not a ItemPurchased object"));
769
+ }
770
+ return ItemPurchased.fromFieldsWithTypes(typeArg, content);
771
+ };
772
+ ItemPurchased.fetch = function (client, typeArg, id) {
773
+ return __awaiter(this, void 0, void 0, function () {
774
+ var res;
775
+ var _a, _b;
776
+ return __generator(this, function (_c) {
777
+ switch (_c.label) {
778
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
779
+ case 1:
780
+ res = _c.sent();
781
+ if (res.error) {
782
+ throw new Error("error fetching ItemPurchased object at id ".concat(id, ": ").concat(res.error.code));
783
+ }
784
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isItemPurchased(res.data.bcs.type)) {
785
+ throw new Error("object at id ".concat(id, " is not a ItemPurchased object"));
786
+ }
787
+ return [2 /*return*/, ItemPurchased.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
788
+ }
789
+ });
790
+ });
791
+ };
792
+ ItemPurchased.$typeName = "0x2::kiosk::ItemPurchased";
793
+ ItemPurchased.$numTypeParams = 1;
794
+ return ItemPurchased;
795
+ }());
796
+ exports.ItemPurchased = ItemPurchased;
797
+ /* ============================== Kiosk =============================== */
798
+ function isKiosk(type) {
799
+ type = (0, util_1.compressSuiType)(type);
800
+ return type === "0x2::kiosk::Kiosk";
801
+ }
802
+ exports.isKiosk = isKiosk;
803
+ var Kiosk = /** @class */ (function () {
804
+ function Kiosk(typeArgs, fields) {
805
+ this.$typeName = Kiosk.$typeName;
806
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Kiosk.$typeName], __read(typeArgs), false));
807
+ this.$typeArgs = typeArgs;
808
+ this.id = fields.id;
809
+ this.profits = fields.profits;
810
+ this.owner = fields.owner;
811
+ this.itemCount = fields.itemCount;
812
+ this.allowExtensions = fields.allowExtensions;
813
+ }
814
+ Kiosk.reified = function () {
815
+ var _this = this;
816
+ return {
817
+ typeName: Kiosk.$typeName,
818
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Kiosk.$typeName], [], false)),
819
+ typeArgs: [],
820
+ reifiedTypeArgs: [],
821
+ fromFields: function (fields) { return Kiosk.fromFields(fields); },
822
+ fromFieldsWithTypes: function (item) { return Kiosk.fromFieldsWithTypes(item); },
823
+ fromBcs: function (data) { return Kiosk.fromBcs(data); },
824
+ bcs: Kiosk.bcs,
825
+ fromJSONField: function (field) { return Kiosk.fromJSONField(field); },
826
+ fromJSON: function (json) { return Kiosk.fromJSON(json); },
827
+ fromSuiParsedData: function (content) { return Kiosk.fromSuiParsedData(content); },
828
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
829
+ return [2 /*return*/, Kiosk.fetch(client, id)];
830
+ }); }); },
831
+ new: function (fields) {
832
+ return new Kiosk([], fields);
833
+ },
834
+ kind: "StructClassReified",
835
+ };
836
+ };
837
+ Object.defineProperty(Kiosk, "r", {
838
+ get: function () {
839
+ return Kiosk.reified();
840
+ },
841
+ enumerable: false,
842
+ configurable: true
843
+ });
844
+ Kiosk.phantom = function () {
845
+ return (0, reified_1.phantom)(Kiosk.reified());
846
+ };
847
+ Object.defineProperty(Kiosk, "p", {
848
+ get: function () {
849
+ return Kiosk.phantom();
850
+ },
851
+ enumerable: false,
852
+ configurable: true
853
+ });
854
+ Object.defineProperty(Kiosk, "bcs", {
855
+ get: function () {
856
+ return bcs_1.bcs.struct("Kiosk", {
857
+ id: structs_2.UID.bcs,
858
+ profits: structs_1.Balance.bcs,
859
+ owner: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
860
+ item_count: bcs_1.bcs.u32(),
861
+ allow_extensions: bcs_1.bcs.bool(),
862
+ });
863
+ },
864
+ enumerable: false,
865
+ configurable: true
866
+ });
867
+ Kiosk.fromFields = function (fields) {
868
+ return Kiosk.reified().new({
869
+ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
870
+ profits: (0, reified_1.decodeFromFields)(structs_1.Balance.reified(reified.phantom(structs_3.SUI.reified())), fields.profits),
871
+ owner: (0, reified_1.decodeFromFields)("address", fields.owner),
872
+ itemCount: (0, reified_1.decodeFromFields)("u32", fields.item_count),
873
+ allowExtensions: (0, reified_1.decodeFromFields)("bool", fields.allow_extensions),
874
+ });
875
+ };
876
+ Kiosk.fromFieldsWithTypes = function (item) {
877
+ if (!isKiosk(item.type)) {
878
+ throw new Error("not a Kiosk type");
879
+ }
880
+ return Kiosk.reified().new({
881
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
882
+ profits: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.Balance.reified(reified.phantom(structs_3.SUI.reified())), item.fields.profits),
883
+ owner: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.owner),
884
+ itemCount: (0, reified_1.decodeFromFieldsWithTypes)("u32", item.fields.item_count),
885
+ allowExtensions: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.allow_extensions),
886
+ });
887
+ };
888
+ Kiosk.fromBcs = function (data) {
889
+ return Kiosk.fromFields(Kiosk.bcs.parse(data));
890
+ };
891
+ Kiosk.prototype.toJSONField = function () {
892
+ return {
893
+ id: this.id,
894
+ profits: this.profits.toJSONField(),
895
+ owner: this.owner,
896
+ itemCount: this.itemCount,
897
+ allowExtensions: this.allowExtensions,
898
+ };
899
+ };
900
+ Kiosk.prototype.toJSON = function () {
901
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
902
+ };
903
+ Kiosk.fromJSONField = function (field) {
904
+ return Kiosk.reified().new({
905
+ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
906
+ profits: (0, reified_1.decodeFromJSONField)(structs_1.Balance.reified(reified.phantom(structs_3.SUI.reified())), field.profits),
907
+ owner: (0, reified_1.decodeFromJSONField)("address", field.owner),
908
+ itemCount: (0, reified_1.decodeFromJSONField)("u32", field.itemCount),
909
+ allowExtensions: (0, reified_1.decodeFromJSONField)("bool", field.allowExtensions),
910
+ });
911
+ };
912
+ Kiosk.fromJSON = function (json) {
913
+ if (json.$typeName !== Kiosk.$typeName) {
914
+ throw new Error("not a WithTwoGenerics json object");
915
+ }
916
+ return Kiosk.fromJSONField(json);
917
+ };
918
+ Kiosk.fromSuiParsedData = function (content) {
919
+ if (content.dataType !== "moveObject") {
920
+ throw new Error("not an object");
921
+ }
922
+ if (!isKiosk(content.type)) {
923
+ throw new Error("object at ".concat(content.fields.id, " is not a Kiosk object"));
924
+ }
925
+ return Kiosk.fromFieldsWithTypes(content);
926
+ };
927
+ Kiosk.fetch = function (client, id) {
928
+ return __awaiter(this, void 0, void 0, function () {
929
+ var res;
930
+ var _a, _b;
931
+ return __generator(this, function (_c) {
932
+ switch (_c.label) {
933
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
934
+ case 1:
935
+ res = _c.sent();
936
+ if (res.error) {
937
+ throw new Error("error fetching Kiosk object at id ".concat(id, ": ").concat(res.error.code));
938
+ }
939
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isKiosk(res.data.bcs.type)) {
940
+ throw new Error("object at id ".concat(id, " is not a Kiosk object"));
941
+ }
942
+ return [2 /*return*/, Kiosk.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
943
+ }
944
+ });
945
+ });
946
+ };
947
+ Kiosk.$typeName = "0x2::kiosk::Kiosk";
948
+ Kiosk.$numTypeParams = 0;
949
+ return Kiosk;
950
+ }());
951
+ exports.Kiosk = Kiosk;
952
+ /* ============================== KioskOwnerCap =============================== */
953
+ function isKioskOwnerCap(type) {
954
+ type = (0, util_1.compressSuiType)(type);
955
+ return type === "0x2::kiosk::KioskOwnerCap";
956
+ }
957
+ exports.isKioskOwnerCap = isKioskOwnerCap;
958
+ var KioskOwnerCap = /** @class */ (function () {
959
+ function KioskOwnerCap(typeArgs, fields) {
960
+ this.$typeName = KioskOwnerCap.$typeName;
961
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([KioskOwnerCap.$typeName], __read(typeArgs), false));
962
+ this.$typeArgs = typeArgs;
963
+ this.id = fields.id;
964
+ this.for = fields.for;
965
+ }
966
+ KioskOwnerCap.reified = function () {
967
+ var _this = this;
968
+ return {
969
+ typeName: KioskOwnerCap.$typeName,
970
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([KioskOwnerCap.$typeName], [], false)),
971
+ typeArgs: [],
972
+ reifiedTypeArgs: [],
973
+ fromFields: function (fields) { return KioskOwnerCap.fromFields(fields); },
974
+ fromFieldsWithTypes: function (item) { return KioskOwnerCap.fromFieldsWithTypes(item); },
975
+ fromBcs: function (data) { return KioskOwnerCap.fromBcs(data); },
976
+ bcs: KioskOwnerCap.bcs,
977
+ fromJSONField: function (field) { return KioskOwnerCap.fromJSONField(field); },
978
+ fromJSON: function (json) { return KioskOwnerCap.fromJSON(json); },
979
+ fromSuiParsedData: function (content) { return KioskOwnerCap.fromSuiParsedData(content); },
980
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
981
+ return [2 /*return*/, KioskOwnerCap.fetch(client, id)];
982
+ }); }); },
983
+ new: function (fields) {
984
+ return new KioskOwnerCap([], fields);
985
+ },
986
+ kind: "StructClassReified",
987
+ };
988
+ };
989
+ Object.defineProperty(KioskOwnerCap, "r", {
990
+ get: function () {
991
+ return KioskOwnerCap.reified();
992
+ },
993
+ enumerable: false,
994
+ configurable: true
995
+ });
996
+ KioskOwnerCap.phantom = function () {
997
+ return (0, reified_1.phantom)(KioskOwnerCap.reified());
998
+ };
999
+ Object.defineProperty(KioskOwnerCap, "p", {
1000
+ get: function () {
1001
+ return KioskOwnerCap.phantom();
1002
+ },
1003
+ enumerable: false,
1004
+ configurable: true
1005
+ });
1006
+ Object.defineProperty(KioskOwnerCap, "bcs", {
1007
+ get: function () {
1008
+ return bcs_1.bcs.struct("KioskOwnerCap", {
1009
+ id: structs_2.UID.bcs,
1010
+ for: structs_2.ID.bcs,
1011
+ });
1012
+ },
1013
+ enumerable: false,
1014
+ configurable: true
1015
+ });
1016
+ KioskOwnerCap.fromFields = function (fields) {
1017
+ return KioskOwnerCap.reified().new({
1018
+ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
1019
+ for: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.for),
1020
+ });
1021
+ };
1022
+ KioskOwnerCap.fromFieldsWithTypes = function (item) {
1023
+ if (!isKioskOwnerCap(item.type)) {
1024
+ throw new Error("not a KioskOwnerCap type");
1025
+ }
1026
+ return KioskOwnerCap.reified().new({
1027
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
1028
+ for: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.for),
1029
+ });
1030
+ };
1031
+ KioskOwnerCap.fromBcs = function (data) {
1032
+ return KioskOwnerCap.fromFields(KioskOwnerCap.bcs.parse(data));
1033
+ };
1034
+ KioskOwnerCap.prototype.toJSONField = function () {
1035
+ return {
1036
+ id: this.id,
1037
+ for: this.for,
1038
+ };
1039
+ };
1040
+ KioskOwnerCap.prototype.toJSON = function () {
1041
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1042
+ };
1043
+ KioskOwnerCap.fromJSONField = function (field) {
1044
+ return KioskOwnerCap.reified().new({
1045
+ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
1046
+ for: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.for),
1047
+ });
1048
+ };
1049
+ KioskOwnerCap.fromJSON = function (json) {
1050
+ if (json.$typeName !== KioskOwnerCap.$typeName) {
1051
+ throw new Error("not a WithTwoGenerics json object");
1052
+ }
1053
+ return KioskOwnerCap.fromJSONField(json);
1054
+ };
1055
+ KioskOwnerCap.fromSuiParsedData = function (content) {
1056
+ if (content.dataType !== "moveObject") {
1057
+ throw new Error("not an object");
1058
+ }
1059
+ if (!isKioskOwnerCap(content.type)) {
1060
+ throw new Error("object at ".concat(content.fields.id, " is not a KioskOwnerCap object"));
1061
+ }
1062
+ return KioskOwnerCap.fromFieldsWithTypes(content);
1063
+ };
1064
+ KioskOwnerCap.fetch = function (client, id) {
1065
+ return __awaiter(this, void 0, void 0, function () {
1066
+ var res;
1067
+ var _a, _b;
1068
+ return __generator(this, function (_c) {
1069
+ switch (_c.label) {
1070
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1071
+ case 1:
1072
+ res = _c.sent();
1073
+ if (res.error) {
1074
+ throw new Error("error fetching KioskOwnerCap object at id ".concat(id, ": ").concat(res.error.code));
1075
+ }
1076
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isKioskOwnerCap(res.data.bcs.type)) {
1077
+ throw new Error("object at id ".concat(id, " is not a KioskOwnerCap object"));
1078
+ }
1079
+ return [2 /*return*/, KioskOwnerCap.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1080
+ }
1081
+ });
1082
+ });
1083
+ };
1084
+ KioskOwnerCap.$typeName = "0x2::kiosk::KioskOwnerCap";
1085
+ KioskOwnerCap.$numTypeParams = 0;
1086
+ return KioskOwnerCap;
1087
+ }());
1088
+ exports.KioskOwnerCap = KioskOwnerCap;
1089
+ /* ============================== Listing =============================== */
1090
+ function isListing(type) {
1091
+ type = (0, util_1.compressSuiType)(type);
1092
+ return type === "0x2::kiosk::Listing";
1093
+ }
1094
+ exports.isListing = isListing;
1095
+ var Listing = /** @class */ (function () {
1096
+ function Listing(typeArgs, fields) {
1097
+ this.$typeName = Listing.$typeName;
1098
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Listing.$typeName], __read(typeArgs), false));
1099
+ this.$typeArgs = typeArgs;
1100
+ this.id = fields.id;
1101
+ this.isExclusive = fields.isExclusive;
1102
+ }
1103
+ Listing.reified = function () {
1104
+ var _this = this;
1105
+ return {
1106
+ typeName: Listing.$typeName,
1107
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Listing.$typeName], [], false)),
1108
+ typeArgs: [],
1109
+ reifiedTypeArgs: [],
1110
+ fromFields: function (fields) { return Listing.fromFields(fields); },
1111
+ fromFieldsWithTypes: function (item) { return Listing.fromFieldsWithTypes(item); },
1112
+ fromBcs: function (data) { return Listing.fromBcs(data); },
1113
+ bcs: Listing.bcs,
1114
+ fromJSONField: function (field) { return Listing.fromJSONField(field); },
1115
+ fromJSON: function (json) { return Listing.fromJSON(json); },
1116
+ fromSuiParsedData: function (content) { return Listing.fromSuiParsedData(content); },
1117
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1118
+ return [2 /*return*/, Listing.fetch(client, id)];
1119
+ }); }); },
1120
+ new: function (fields) {
1121
+ return new Listing([], fields);
1122
+ },
1123
+ kind: "StructClassReified",
1124
+ };
1125
+ };
1126
+ Object.defineProperty(Listing, "r", {
1127
+ get: function () {
1128
+ return Listing.reified();
1129
+ },
1130
+ enumerable: false,
1131
+ configurable: true
1132
+ });
1133
+ Listing.phantom = function () {
1134
+ return (0, reified_1.phantom)(Listing.reified());
1135
+ };
1136
+ Object.defineProperty(Listing, "p", {
1137
+ get: function () {
1138
+ return Listing.phantom();
1139
+ },
1140
+ enumerable: false,
1141
+ configurable: true
1142
+ });
1143
+ Object.defineProperty(Listing, "bcs", {
1144
+ get: function () {
1145
+ return bcs_1.bcs.struct("Listing", {
1146
+ id: structs_2.ID.bcs,
1147
+ is_exclusive: bcs_1.bcs.bool(),
1148
+ });
1149
+ },
1150
+ enumerable: false,
1151
+ configurable: true
1152
+ });
1153
+ Listing.fromFields = function (fields) {
1154
+ return Listing.reified().new({
1155
+ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id),
1156
+ isExclusive: (0, reified_1.decodeFromFields)("bool", fields.is_exclusive),
1157
+ });
1158
+ };
1159
+ Listing.fromFieldsWithTypes = function (item) {
1160
+ if (!isListing(item.type)) {
1161
+ throw new Error("not a Listing type");
1162
+ }
1163
+ return Listing.reified().new({
1164
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id),
1165
+ isExclusive: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_exclusive),
1166
+ });
1167
+ };
1168
+ Listing.fromBcs = function (data) {
1169
+ return Listing.fromFields(Listing.bcs.parse(data));
1170
+ };
1171
+ Listing.prototype.toJSONField = function () {
1172
+ return {
1173
+ id: this.id,
1174
+ isExclusive: this.isExclusive,
1175
+ };
1176
+ };
1177
+ Listing.prototype.toJSON = function () {
1178
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1179
+ };
1180
+ Listing.fromJSONField = function (field) {
1181
+ return Listing.reified().new({
1182
+ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id),
1183
+ isExclusive: (0, reified_1.decodeFromJSONField)("bool", field.isExclusive),
1184
+ });
1185
+ };
1186
+ Listing.fromJSON = function (json) {
1187
+ if (json.$typeName !== Listing.$typeName) {
1188
+ throw new Error("not a WithTwoGenerics json object");
1189
+ }
1190
+ return Listing.fromJSONField(json);
1191
+ };
1192
+ Listing.fromSuiParsedData = function (content) {
1193
+ if (content.dataType !== "moveObject") {
1194
+ throw new Error("not an object");
1195
+ }
1196
+ if (!isListing(content.type)) {
1197
+ throw new Error("object at ".concat(content.fields.id, " is not a Listing object"));
1198
+ }
1199
+ return Listing.fromFieldsWithTypes(content);
1200
+ };
1201
+ Listing.fetch = function (client, id) {
1202
+ return __awaiter(this, void 0, void 0, function () {
1203
+ var res;
1204
+ var _a, _b;
1205
+ return __generator(this, function (_c) {
1206
+ switch (_c.label) {
1207
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1208
+ case 1:
1209
+ res = _c.sent();
1210
+ if (res.error) {
1211
+ throw new Error("error fetching Listing object at id ".concat(id, ": ").concat(res.error.code));
1212
+ }
1213
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isListing(res.data.bcs.type)) {
1214
+ throw new Error("object at id ".concat(id, " is not a Listing object"));
1215
+ }
1216
+ return [2 /*return*/, Listing.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1217
+ }
1218
+ });
1219
+ });
1220
+ };
1221
+ Listing.$typeName = "0x2::kiosk::Listing";
1222
+ Listing.$numTypeParams = 0;
1223
+ return Listing;
1224
+ }());
1225
+ exports.Listing = Listing;
1226
+ /* ============================== Lock =============================== */
1227
+ function isLock(type) {
1228
+ type = (0, util_1.compressSuiType)(type);
1229
+ return type === "0x2::kiosk::Lock";
1230
+ }
1231
+ exports.isLock = isLock;
1232
+ var Lock = /** @class */ (function () {
1233
+ function Lock(typeArgs, fields) {
1234
+ this.$typeName = Lock.$typeName;
1235
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Lock.$typeName], __read(typeArgs), false));
1236
+ this.$typeArgs = typeArgs;
1237
+ this.id = fields.id;
1238
+ }
1239
+ Lock.reified = function () {
1240
+ var _this = this;
1241
+ return {
1242
+ typeName: Lock.$typeName,
1243
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Lock.$typeName], [], false)),
1244
+ typeArgs: [],
1245
+ reifiedTypeArgs: [],
1246
+ fromFields: function (fields) { return Lock.fromFields(fields); },
1247
+ fromFieldsWithTypes: function (item) { return Lock.fromFieldsWithTypes(item); },
1248
+ fromBcs: function (data) { return Lock.fromBcs(data); },
1249
+ bcs: Lock.bcs,
1250
+ fromJSONField: function (field) { return Lock.fromJSONField(field); },
1251
+ fromJSON: function (json) { return Lock.fromJSON(json); },
1252
+ fromSuiParsedData: function (content) { return Lock.fromSuiParsedData(content); },
1253
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1254
+ return [2 /*return*/, Lock.fetch(client, id)];
1255
+ }); }); },
1256
+ new: function (fields) {
1257
+ return new Lock([], fields);
1258
+ },
1259
+ kind: "StructClassReified",
1260
+ };
1261
+ };
1262
+ Object.defineProperty(Lock, "r", {
1263
+ get: function () {
1264
+ return Lock.reified();
1265
+ },
1266
+ enumerable: false,
1267
+ configurable: true
1268
+ });
1269
+ Lock.phantom = function () {
1270
+ return (0, reified_1.phantom)(Lock.reified());
1271
+ };
1272
+ Object.defineProperty(Lock, "p", {
1273
+ get: function () {
1274
+ return Lock.phantom();
1275
+ },
1276
+ enumerable: false,
1277
+ configurable: true
1278
+ });
1279
+ Object.defineProperty(Lock, "bcs", {
1280
+ get: function () {
1281
+ return bcs_1.bcs.struct("Lock", {
1282
+ id: structs_2.ID.bcs,
1283
+ });
1284
+ },
1285
+ enumerable: false,
1286
+ configurable: true
1287
+ });
1288
+ Lock.fromFields = function (fields) {
1289
+ return Lock.reified().new({ id: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.id) });
1290
+ };
1291
+ Lock.fromFieldsWithTypes = function (item) {
1292
+ if (!isLock(item.type)) {
1293
+ throw new Error("not a Lock type");
1294
+ }
1295
+ return Lock.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.id) });
1296
+ };
1297
+ Lock.fromBcs = function (data) {
1298
+ return Lock.fromFields(Lock.bcs.parse(data));
1299
+ };
1300
+ Lock.prototype.toJSONField = function () {
1301
+ return {
1302
+ id: this.id,
1303
+ };
1304
+ };
1305
+ Lock.prototype.toJSON = function () {
1306
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1307
+ };
1308
+ Lock.fromJSONField = function (field) {
1309
+ return Lock.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.id) });
1310
+ };
1311
+ Lock.fromJSON = function (json) {
1312
+ if (json.$typeName !== Lock.$typeName) {
1313
+ throw new Error("not a WithTwoGenerics json object");
1314
+ }
1315
+ return Lock.fromJSONField(json);
1316
+ };
1317
+ Lock.fromSuiParsedData = function (content) {
1318
+ if (content.dataType !== "moveObject") {
1319
+ throw new Error("not an object");
1320
+ }
1321
+ if (!isLock(content.type)) {
1322
+ throw new Error("object at ".concat(content.fields.id, " is not a Lock object"));
1323
+ }
1324
+ return Lock.fromFieldsWithTypes(content);
1325
+ };
1326
+ Lock.fetch = function (client, id) {
1327
+ return __awaiter(this, void 0, void 0, function () {
1328
+ var res;
1329
+ var _a, _b;
1330
+ return __generator(this, function (_c) {
1331
+ switch (_c.label) {
1332
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1333
+ case 1:
1334
+ res = _c.sent();
1335
+ if (res.error) {
1336
+ throw new Error("error fetching Lock object at id ".concat(id, ": ").concat(res.error.code));
1337
+ }
1338
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLock(res.data.bcs.type)) {
1339
+ throw new Error("object at id ".concat(id, " is not a Lock object"));
1340
+ }
1341
+ return [2 /*return*/, Lock.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1342
+ }
1343
+ });
1344
+ });
1345
+ };
1346
+ Lock.$typeName = "0x2::kiosk::Lock";
1347
+ Lock.$numTypeParams = 0;
1348
+ return Lock;
1349
+ }());
1350
+ exports.Lock = Lock;
1351
+ /* ============================== PurchaseCap =============================== */
1352
+ function isPurchaseCap(type) {
1353
+ type = (0, util_1.compressSuiType)(type);
1354
+ return type.startsWith("0x2::kiosk::PurchaseCap<");
1355
+ }
1356
+ exports.isPurchaseCap = isPurchaseCap;
1357
+ var PurchaseCap = /** @class */ (function () {
1358
+ function PurchaseCap(typeArgs, fields) {
1359
+ this.$typeName = PurchaseCap.$typeName;
1360
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([PurchaseCap.$typeName], __read(typeArgs), false));
1361
+ this.$typeArgs = typeArgs;
1362
+ this.id = fields.id;
1363
+ this.kioskId = fields.kioskId;
1364
+ this.itemId = fields.itemId;
1365
+ this.minPrice = fields.minPrice;
1366
+ }
1367
+ PurchaseCap.reified = function (T) {
1368
+ var _this = this;
1369
+ return {
1370
+ typeName: PurchaseCap.$typeName,
1371
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([PurchaseCap.$typeName], [(0, reified_1.extractType)(T)], false)),
1372
+ typeArgs: [(0, reified_1.extractType)(T)],
1373
+ reifiedTypeArgs: [T],
1374
+ fromFields: function (fields) { return PurchaseCap.fromFields(T, fields); },
1375
+ fromFieldsWithTypes: function (item) { return PurchaseCap.fromFieldsWithTypes(T, item); },
1376
+ fromBcs: function (data) { return PurchaseCap.fromBcs(T, data); },
1377
+ bcs: PurchaseCap.bcs,
1378
+ fromJSONField: function (field) { return PurchaseCap.fromJSONField(T, field); },
1379
+ fromJSON: function (json) { return PurchaseCap.fromJSON(T, json); },
1380
+ fromSuiParsedData: function (content) { return PurchaseCap.fromSuiParsedData(T, content); },
1381
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1382
+ return [2 /*return*/, PurchaseCap.fetch(client, T, id)];
1383
+ }); }); },
1384
+ new: function (fields) {
1385
+ return new PurchaseCap([(0, reified_1.extractType)(T)], fields);
1386
+ },
1387
+ kind: "StructClassReified",
1388
+ };
1389
+ };
1390
+ Object.defineProperty(PurchaseCap, "r", {
1391
+ get: function () {
1392
+ return PurchaseCap.reified;
1393
+ },
1394
+ enumerable: false,
1395
+ configurable: true
1396
+ });
1397
+ PurchaseCap.phantom = function (T) {
1398
+ return (0, reified_1.phantom)(PurchaseCap.reified(T));
1399
+ };
1400
+ Object.defineProperty(PurchaseCap, "p", {
1401
+ get: function () {
1402
+ return PurchaseCap.phantom;
1403
+ },
1404
+ enumerable: false,
1405
+ configurable: true
1406
+ });
1407
+ Object.defineProperty(PurchaseCap, "bcs", {
1408
+ get: function () {
1409
+ return bcs_1.bcs.struct("PurchaseCap", {
1410
+ id: structs_2.UID.bcs,
1411
+ kiosk_id: structs_2.ID.bcs,
1412
+ item_id: structs_2.ID.bcs,
1413
+ min_price: bcs_1.bcs.u64(),
1414
+ });
1415
+ },
1416
+ enumerable: false,
1417
+ configurable: true
1418
+ });
1419
+ PurchaseCap.fromFields = function (typeArg, fields) {
1420
+ return PurchaseCap.reified(typeArg).new({
1421
+ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
1422
+ kioskId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.kiosk_id),
1423
+ itemId: (0, reified_1.decodeFromFields)(structs_2.ID.reified(), fields.item_id),
1424
+ minPrice: (0, reified_1.decodeFromFields)("u64", fields.min_price),
1425
+ });
1426
+ };
1427
+ PurchaseCap.fromFieldsWithTypes = function (typeArg, item) {
1428
+ if (!isPurchaseCap(item.type)) {
1429
+ throw new Error("not a PurchaseCap type");
1430
+ }
1431
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
1432
+ return PurchaseCap.reified(typeArg).new({
1433
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
1434
+ kioskId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.kiosk_id),
1435
+ itemId: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.ID.reified(), item.fields.item_id),
1436
+ minPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.min_price),
1437
+ });
1438
+ };
1439
+ PurchaseCap.fromBcs = function (typeArg, data) {
1440
+ return PurchaseCap.fromFields(typeArg, PurchaseCap.bcs.parse(data));
1441
+ };
1442
+ PurchaseCap.prototype.toJSONField = function () {
1443
+ return {
1444
+ id: this.id,
1445
+ kioskId: this.kioskId,
1446
+ itemId: this.itemId,
1447
+ minPrice: this.minPrice.toString(),
1448
+ };
1449
+ };
1450
+ PurchaseCap.prototype.toJSON = function () {
1451
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1452
+ };
1453
+ PurchaseCap.fromJSONField = function (typeArg, field) {
1454
+ return PurchaseCap.reified(typeArg).new({
1455
+ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
1456
+ kioskId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.kioskId),
1457
+ itemId: (0, reified_1.decodeFromJSONField)(structs_2.ID.reified(), field.itemId),
1458
+ minPrice: (0, reified_1.decodeFromJSONField)("u64", field.minPrice),
1459
+ });
1460
+ };
1461
+ PurchaseCap.fromJSON = function (typeArg, json) {
1462
+ if (json.$typeName !== PurchaseCap.$typeName) {
1463
+ throw new Error("not a WithTwoGenerics json object");
1464
+ }
1465
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(PurchaseCap.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
1466
+ return PurchaseCap.fromJSONField(typeArg, json);
1467
+ };
1468
+ PurchaseCap.fromSuiParsedData = function (typeArg, content) {
1469
+ if (content.dataType !== "moveObject") {
1470
+ throw new Error("not an object");
1471
+ }
1472
+ if (!isPurchaseCap(content.type)) {
1473
+ throw new Error("object at ".concat(content.fields.id, " is not a PurchaseCap object"));
1474
+ }
1475
+ return PurchaseCap.fromFieldsWithTypes(typeArg, content);
1476
+ };
1477
+ PurchaseCap.fetch = function (client, typeArg, id) {
1478
+ return __awaiter(this, void 0, void 0, function () {
1479
+ var res;
1480
+ var _a, _b;
1481
+ return __generator(this, function (_c) {
1482
+ switch (_c.label) {
1483
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1484
+ case 1:
1485
+ res = _c.sent();
1486
+ if (res.error) {
1487
+ throw new Error("error fetching PurchaseCap object at id ".concat(id, ": ").concat(res.error.code));
1488
+ }
1489
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPurchaseCap(res.data.bcs.type)) {
1490
+ throw new Error("object at id ".concat(id, " is not a PurchaseCap object"));
1491
+ }
1492
+ return [2 /*return*/, PurchaseCap.fromBcs(typeArg, (0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1493
+ }
1494
+ });
1495
+ });
1496
+ };
1497
+ PurchaseCap.$typeName = "0x2::kiosk::PurchaseCap";
1498
+ PurchaseCap.$numTypeParams = 1;
1499
+ return PurchaseCap;
1500
+ }());
1501
+ exports.PurchaseCap = PurchaseCap;