@typus/typus-perp-sdk 1.1.32-codegen-exp3 → 1.1.32-testnet-exp1

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 (249) hide show
  1. package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +88 -0
  2. package/dist/src/_dependencies/source/0x1/ascii/structs.js +398 -0
  3. package/dist/src/_dependencies/source/0x1/index.d.ts +3 -0
  4. package/dist/src/_dependencies/source/0x1/index.js +6 -0
  5. package/dist/src/_dependencies/source/0x1/option/structs.d.ts +50 -0
  6. package/dist/src/_dependencies/source/0x1/option/structs.js +271 -0
  7. package/dist/src/_dependencies/source/0x1/string/structs.d.ts +48 -0
  8. package/dist/src/_dependencies/source/0x1/string/structs.js +256 -0
  9. package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +49 -0
  10. package/dist/src/_dependencies/source/0x1/type-name/structs.js +223 -0
  11. package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +54 -0
  12. package/dist/src/_dependencies/source/0x2/bag/structs.js +229 -0
  13. package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +84 -0
  14. package/dist/src/_dependencies/source/0x2/balance/structs.js +386 -0
  15. package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +406 -0
  16. package/dist/src/_dependencies/source/0x2/coin/structs.js +1247 -0
  17. package/dist/src/_dependencies/source/0x2/index.d.ts +3 -0
  18. package/dist/src/_dependencies/source/0x2/index.js +6 -0
  19. package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +132 -0
  20. package/dist/src/_dependencies/source/0x2/linked-table/structs.js +438 -0
  21. package/dist/src/_dependencies/source/0x2/object/structs.d.ts +86 -0
  22. package/dist/src/_dependencies/source/0x2/object/structs.js +364 -0
  23. package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +54 -0
  24. package/dist/src/_dependencies/source/0x2/object-table/structs.js +248 -0
  25. package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +44 -0
  26. package/dist/src/_dependencies/source/0x2/sui/structs.js +222 -0
  27. package/dist/src/_dependencies/source/0x2/table/structs.d.ts +54 -0
  28. package/dist/src/_dependencies/source/0x2/table/structs.js +248 -0
  29. package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +59 -0
  30. package/dist/src/_dependencies/source/0x2/table-vec/structs.js +274 -0
  31. package/dist/src/_dependencies/source/0x2/token/structs.d.ts +421 -0
  32. package/dist/src/_dependencies/source/0x2/token/structs.js +1095 -0
  33. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +348 -0
  34. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +1091 -0
  35. package/dist/src/_dependencies/source/0x2/url/structs.d.ts +49 -0
  36. package/dist/src/_dependencies/source/0x2/url/structs.js +223 -0
  37. package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +106 -0
  38. package/dist/src/_dependencies/source/0x2/vec-map/structs.js +446 -0
  39. package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +49 -0
  40. package/dist/src/_dependencies/source/0x2/vec-set/structs.js +270 -0
  41. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +422 -0
  42. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +1084 -0
  43. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +130 -0
  44. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +456 -0
  45. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +208 -0
  46. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +653 -0
  47. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +362 -0
  48. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +899 -0
  49. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +8 -0
  50. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +11 -0
  51. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +2 -0
  52. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +102 -0
  53. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +202 -0
  54. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +632 -0
  55. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +600 -0
  56. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +1459 -0
  57. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +136 -0
  58. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.js +438 -0
  59. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +127 -0
  60. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +430 -0
  61. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +957 -0
  62. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +2261 -0
  63. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +244 -0
  64. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +733 -0
  65. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +294 -0
  66. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +892 -0
  67. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +73 -0
  68. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +263 -0
  69. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +294 -0
  70. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +591 -0
  71. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +64 -0
  72. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +258 -0
  73. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +756 -0
  74. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +1721 -0
  75. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +44 -0
  76. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +222 -0
  77. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +3 -0
  78. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +6 -0
  79. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +2 -0
  80. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +89 -0
  81. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +135 -0
  82. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +444 -0
  83. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +2106 -0
  84. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +4952 -0
  85. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +390 -0
  86. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +844 -0
  87. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +6 -0
  88. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +9 -0
  89. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +2 -0
  90. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +69 -0
  91. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +89 -0
  92. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +376 -0
  93. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +386 -0
  94. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +881 -0
  95. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +59 -0
  96. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +274 -0
  97. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +974 -0
  98. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +2387 -0
  99. package/dist/src/_framework/init-loader.d.ts +2 -0
  100. package/dist/src/{generated/typus_perp/treasury_caps.js → _framework/init-loader.js} +10 -17
  101. package/dist/src/_framework/loader.d.ts +17 -0
  102. package/dist/src/_framework/loader.js +108 -0
  103. package/dist/src/_framework/reified.d.ts +108 -0
  104. package/dist/src/_framework/reified.js +237 -0
  105. package/dist/src/_framework/util.d.ts +35 -0
  106. package/dist/src/_framework/util.js +396 -0
  107. package/dist/src/_framework/vector.d.ts +42 -0
  108. package/dist/src/_framework/vector.js +112 -0
  109. package/dist/src/api/sentio.js +538 -604
  110. package/dist/src/fetch.d.ts +36 -577
  111. package/dist/src/fetch.js +665 -367
  112. package/dist/src/index.d.ts +4 -0
  113. package/dist/src/index.js +39 -20
  114. package/dist/src/pyth.js +1 -0
  115. package/dist/src/typus_perp/admin/functions.d.ts +59 -0
  116. package/dist/src/typus_perp/admin/functions.js +122 -0
  117. package/dist/src/typus_perp/admin/structs.d.ts +467 -0
  118. package/dist/src/typus_perp/admin/structs.js +1065 -0
  119. package/dist/src/typus_perp/competition/functions.d.ts +24 -0
  120. package/dist/src/typus_perp/competition/functions.js +38 -0
  121. package/dist/src/typus_perp/competition/structs.d.ts +80 -0
  122. package/dist/src/typus_perp/competition/structs.js +288 -0
  123. package/dist/src/typus_perp/error/functions.d.ts +73 -0
  124. package/dist/src/typus_perp/error/functions.js +363 -0
  125. package/dist/src/typus_perp/escrow/functions.d.ts +17 -0
  126. package/dist/src/typus_perp/escrow/functions.js +36 -0
  127. package/dist/src/typus_perp/escrow/structs.d.ts +160 -0
  128. package/dist/src/typus_perp/escrow/structs.js +324 -0
  129. package/dist/src/typus_perp/index.d.ts +1 -0
  130. package/dist/src/typus_perp/index.js +7 -0
  131. package/dist/src/typus_perp/init.d.ts +2 -0
  132. package/dist/src/typus_perp/init.js +118 -0
  133. package/dist/src/typus_perp/lending/functions.d.ts +15 -0
  134. package/dist/src/typus_perp/lending/functions.js +22 -0
  135. package/dist/src/typus_perp/lp-pool/functions.d.ts +460 -0
  136. package/dist/src/typus_perp/lp-pool/functions.js +732 -0
  137. package/dist/src/typus_perp/lp-pool/structs.d.ts +3705 -0
  138. package/dist/src/typus_perp/lp-pool/structs.js +6789 -0
  139. package/dist/src/typus_perp/math/functions.d.ts +29 -0
  140. package/dist/src/typus_perp/math/functions.js +61 -0
  141. package/dist/src/typus_perp/position/functions.d.ts +379 -0
  142. package/dist/src/typus_perp/position/functions.js +713 -0
  143. package/dist/src/typus_perp/position/structs.d.ts +905 -0
  144. package/dist/src/typus_perp/position/structs.js +1450 -0
  145. package/dist/src/typus_perp/symbol/functions.d.ts +9 -0
  146. package/dist/src/typus_perp/symbol/functions.js +24 -0
  147. package/dist/src/typus_perp/symbol/structs.d.ts +70 -0
  148. package/dist/src/typus_perp/symbol/structs.js +235 -0
  149. package/dist/src/typus_perp/tlp/functions.d.ts +19 -0
  150. package/dist/src/typus_perp/tlp/functions.js +40 -0
  151. package/dist/src/typus_perp/tlp/structs.d.ts +89 -0
  152. package/dist/src/typus_perp/tlp/structs.js +365 -0
  153. package/dist/src/typus_perp/token-interface/functions.d.ts +11 -0
  154. package/dist/src/typus_perp/token-interface/functions.js +22 -0
  155. package/dist/src/typus_perp/trading/functions.d.ts +812 -0
  156. package/dist/src/typus_perp/trading/functions.js +1218 -0
  157. package/dist/src/typus_perp/trading/structs.d.ts +3060 -0
  158. package/dist/src/typus_perp/trading/structs.js +5813 -0
  159. package/dist/src/typus_perp/treasury-caps/functions.d.ts +9 -0
  160. package/dist/src/typus_perp/treasury-caps/functions.js +36 -0
  161. package/dist/src/typus_perp/treasury-caps/structs.d.ts +49 -0
  162. package/dist/src/typus_perp/treasury-caps/structs.js +223 -0
  163. package/dist/src/typus_perp/user-account/functions.d.ts +36 -0
  164. package/dist/src/typus_perp/user-account/functions.js +70 -0
  165. package/dist/src/typus_perp/user-account/structs.d.ts +148 -0
  166. package/dist/src/typus_perp/user-account/structs.js +448 -0
  167. package/dist/src/typus_stake_pool/admin/functions.d.ts +49 -0
  168. package/dist/src/typus_stake_pool/admin/functions.js +105 -0
  169. package/dist/src/typus_stake_pool/admin/structs.d.ts +365 -0
  170. package/dist/src/typus_stake_pool/admin/structs.js +789 -0
  171. package/dist/src/typus_stake_pool/index.d.ts +1 -0
  172. package/dist/src/typus_stake_pool/index.js +7 -0
  173. package/dist/src/typus_stake_pool/init.d.ts +2 -0
  174. package/dist/src/typus_stake_pool/init.js +69 -0
  175. package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +229 -0
  176. package/dist/src/typus_stake_pool/stake-pool/functions.js +380 -0
  177. package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +2199 -0
  178. package/dist/src/typus_stake_pool/stake-pool/structs.js +4653 -0
  179. package/dist/src/user/history.js +685 -614
  180. package/dist/src/user/order.d.ts +11 -16
  181. package/dist/src/user/order.js +302 -171
  182. package/dist/src/user/orderWithBidReceipt.d.ts +6 -8
  183. package/dist/src/user/orderWithBidReceipt.js +225 -127
  184. package/dist/src/user/tlp.d.ts +24 -25
  185. package/dist/src/user/tlp.js +468 -317
  186. package/package.json +3 -11
  187. package/dist/src/client.d.ts +0 -27
  188. package/dist/src/client.js +0 -108
  189. package/dist/src/generated/typus_perp/admin.d.ts +0 -117
  190. package/dist/src/generated/typus_perp/admin.js +0 -110
  191. package/dist/src/generated/typus_perp/competition.d.ts +0 -22
  192. package/dist/src/generated/typus_perp/competition.js +0 -58
  193. package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +0 -17
  194. package/dist/src/generated/typus_perp/deps/std/type_name.js +0 -25
  195. package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +0 -12
  196. package/dist/src/generated/typus_perp/deps/sui/balance.js +0 -20
  197. package/dist/src/generated/typus_perp/deps/sui/object.d.ts +0 -8
  198. package/dist/src/generated/typus_perp/deps/sui/object.js +0 -16
  199. package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +0 -19
  200. package/dist/src/generated/typus_perp/deps/sui/object_table.js +0 -59
  201. package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +0 -18
  202. package/dist/src/generated/typus_perp/deps/sui/vec_set.js +0 -25
  203. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +0 -30
  204. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +0 -67
  205. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +0 -32
  206. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +0 -71
  207. package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +0 -23
  208. package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +0 -61
  209. package/dist/src/generated/typus_perp/escrow.d.ts +0 -59
  210. package/dist/src/generated/typus_perp/escrow.js +0 -76
  211. package/dist/src/generated/typus_perp/lending.d.ts +0 -47
  212. package/dist/src/generated/typus_perp/lending.js +0 -50
  213. package/dist/src/generated/typus_perp/lp_pool.d.ts +0 -2327
  214. package/dist/src/generated/typus_perp/lp_pool.js +0 -1956
  215. package/dist/src/generated/typus_perp/math.d.ts +0 -95
  216. package/dist/src/generated/typus_perp/math.js +0 -97
  217. package/dist/src/generated/typus_perp/position.d.ts +0 -234
  218. package/dist/src/generated/typus_perp/position.js +0 -204
  219. package/dist/src/generated/typus_perp/symbol.d.ts +0 -18
  220. package/dist/src/generated/typus_perp/symbol.js +0 -55
  221. package/dist/src/generated/typus_perp/tlp.d.ts +0 -13
  222. package/dist/src/generated/typus_perp/tlp.js +0 -56
  223. package/dist/src/generated/typus_perp/trading.d.ts +0 -2486
  224. package/dist/src/generated/typus_perp/trading.js +0 -2476
  225. package/dist/src/generated/typus_perp/treasury_caps.d.ts +0 -13
  226. package/dist/src/generated/typus_perp/user_account.d.ts +0 -40
  227. package/dist/src/generated/typus_perp/user_account.js +0 -72
  228. package/dist/src/generated/typus_stake_pool/admin.d.ts +0 -234
  229. package/dist/src/generated/typus_stake_pool/admin.js +0 -272
  230. package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +0 -17
  231. package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +0 -25
  232. package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +0 -8
  233. package/dist/src/generated/typus_stake_pool/deps/sui/object.js +0 -16
  234. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +0 -30
  235. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +0 -37
  236. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +0 -18
  237. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +0 -25
  238. package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +0 -986
  239. package/dist/src/generated/typus_stake_pool/stake_pool.js +0 -874
  240. package/dist/src/generated/utils/index.d.ts +0 -11
  241. package/dist/src/generated/utils/index.js +0 -135
  242. package/dist/src/grpc/graphql.d.ts +0 -26
  243. package/dist/src/grpc/graphql.js +0 -126
  244. package/dist/src/grpc/grpc.d.ts +0 -1
  245. package/dist/src/grpc/grpc.js +0 -38
  246. package/dist/src/grpc/ledgerService.js +0 -64
  247. package/dist/src/grpc/liveDataService.d.ts +0 -0
  248. package/dist/src/grpc/liveDataService.js +0 -49
  249. /package/dist/src/{grpc/ledgerService.d.ts → pyth.d.ts} +0 -0
@@ -0,0 +1,390 @@
1
+ import * as reified from "../../../../_framework/reified";
2
+ import { PhantomReified, Reified, StructClass, ToField, ToTypeStr, ToTypeStr as ToPhantom } from "../../../../_framework/reified";
3
+ import { FieldsWithTypes } from "../../../../_framework/util";
4
+ import { Vector } from "../../../../_framework/vector";
5
+ import { Balance } from "../../0x2/balance/structs";
6
+ import { Coin } from "../../0x2/coin/structs";
7
+ import { ID, UID } from "../../0x2/object/structs";
8
+ import { SUI } from "../../0x2/sui/structs";
9
+ import { TableVec } from "../../0x2/table-vec/structs";
10
+ import { PKG_V8 } from "../index";
11
+ import { Tails } from "../typus-nft/structs";
12
+ import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
13
+ export declare function isDiscountEventV3(type: string): boolean;
14
+ export interface DiscountEventV3Fields {
15
+ pool: ToField<ID>;
16
+ price: ToField<"u64">;
17
+ discountPct: ToField<"u64">;
18
+ discountPrice: ToField<"u64">;
19
+ user: ToField<"address">;
20
+ vrfInput: ToField<Vector<"u8">>;
21
+ level: ToField<"u64">;
22
+ }
23
+ export type DiscountEventV3Reified = Reified<DiscountEventV3, DiscountEventV3Fields>;
24
+ export declare class DiscountEventV3 implements StructClass {
25
+ __StructClass: true;
26
+ static readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::DiscountEventV3";
27
+ static readonly $numTypeParams = 0;
28
+ static readonly $isPhantom: readonly [];
29
+ readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::DiscountEventV3";
30
+ readonly $fullTypeName: `${typeof PKG_V8}::discount_mint::DiscountEventV3`;
31
+ readonly $typeArgs: [];
32
+ readonly $isPhantom: readonly [];
33
+ readonly pool: ToField<ID>;
34
+ readonly price: ToField<"u64">;
35
+ readonly discountPct: ToField<"u64">;
36
+ readonly discountPrice: ToField<"u64">;
37
+ readonly user: ToField<"address">;
38
+ readonly vrfInput: ToField<Vector<"u8">>;
39
+ readonly level: ToField<"u64">;
40
+ private constructor();
41
+ static reified(): DiscountEventV3Reified;
42
+ static get r(): reified.StructClassReified<DiscountEventV3, DiscountEventV3Fields>;
43
+ static phantom(): PhantomReified<ToTypeStr<DiscountEventV3>>;
44
+ static get p(): reified.PhantomReified<"0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::DiscountEventV3">;
45
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
46
+ pool: import("@mysten/sui/bcs").BcsStruct<{
47
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
48
+ }, string>;
49
+ price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
50
+ discount_pct: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
51
+ discount_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
52
+ user: import("@mysten/sui/bcs").BcsType<string, string, string>;
53
+ vrf_input: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
54
+ length: number;
55
+ }, string>;
56
+ level: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
57
+ }, string>;
58
+ static fromFields(fields: Record<string, any>): DiscountEventV3;
59
+ static fromFieldsWithTypes(item: FieldsWithTypes): DiscountEventV3;
60
+ static fromBcs(data: Uint8Array): DiscountEventV3;
61
+ toJSONField(): {
62
+ pool: string;
63
+ price: string;
64
+ discountPct: string;
65
+ discountPrice: string;
66
+ user: string;
67
+ vrfInput: number[];
68
+ level: string;
69
+ };
70
+ toJSON(): {
71
+ pool: string;
72
+ price: string;
73
+ discountPct: string;
74
+ discountPrice: string;
75
+ user: string;
76
+ vrfInput: number[];
77
+ level: string;
78
+ $typeName: string;
79
+ $typeArgs: [];
80
+ };
81
+ static fromJSONField(field: any): DiscountEventV3;
82
+ static fromJSON(json: Record<string, any>): DiscountEventV3;
83
+ static fromSuiParsedData(content: SuiParsedData): DiscountEventV3;
84
+ static fromSuiObjectData(data: SuiObjectData): DiscountEventV3;
85
+ static fetch(client: SuiClient, id: string): Promise<DiscountEventV3>;
86
+ }
87
+ export declare function isMintRequest(type: string): boolean;
88
+ export interface MintRequestFields {
89
+ user: ToField<"address">;
90
+ coin: ToField<Coin<ToPhantom<SUI>>>;
91
+ vrfInput: ToField<Vector<"u8">>;
92
+ }
93
+ export type MintRequestReified = Reified<MintRequest, MintRequestFields>;
94
+ export declare class MintRequest implements StructClass {
95
+ __StructClass: true;
96
+ static readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::MintRequest";
97
+ static readonly $numTypeParams = 0;
98
+ static readonly $isPhantom: readonly [];
99
+ readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::MintRequest";
100
+ readonly $fullTypeName: `${typeof PKG_V8}::discount_mint::MintRequest`;
101
+ readonly $typeArgs: [];
102
+ readonly $isPhantom: readonly [];
103
+ readonly user: ToField<"address">;
104
+ readonly coin: ToField<Coin<ToPhantom<SUI>>>;
105
+ readonly vrfInput: ToField<Vector<"u8">>;
106
+ private constructor();
107
+ static reified(): MintRequestReified;
108
+ static get r(): reified.StructClassReified<MintRequest, MintRequestFields>;
109
+ static phantom(): PhantomReified<ToTypeStr<MintRequest>>;
110
+ static get p(): reified.PhantomReified<"0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::MintRequest">;
111
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
112
+ user: import("@mysten/sui/bcs").BcsType<string, string, string>;
113
+ coin: import("@mysten/sui/bcs").BcsStruct<{
114
+ id: import("@mysten/sui/bcs").BcsStruct<{
115
+ id: import("@mysten/sui/bcs").BcsStruct<{
116
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
117
+ }, string>;
118
+ }, string>;
119
+ balance: import("@mysten/sui/bcs").BcsStruct<{
120
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
121
+ }, string>;
122
+ }, string>;
123
+ vrf_input: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
124
+ length: number;
125
+ }, string>;
126
+ }, string>;
127
+ static fromFields(fields: Record<string, any>): MintRequest;
128
+ static fromFieldsWithTypes(item: FieldsWithTypes): MintRequest;
129
+ static fromBcs(data: Uint8Array): MintRequest;
130
+ toJSONField(): {
131
+ user: string;
132
+ coin: {
133
+ id: string;
134
+ balance: {
135
+ value: string;
136
+ };
137
+ };
138
+ vrfInput: number[];
139
+ };
140
+ toJSON(): {
141
+ user: string;
142
+ coin: {
143
+ id: string;
144
+ balance: {
145
+ value: string;
146
+ };
147
+ };
148
+ vrfInput: number[];
149
+ $typeName: string;
150
+ $typeArgs: [];
151
+ };
152
+ static fromJSONField(field: any): MintRequest;
153
+ static fromJSON(json: Record<string, any>): MintRequest;
154
+ static fromSuiParsedData(content: SuiParsedData): MintRequest;
155
+ static fromSuiObjectData(data: SuiObjectData): MintRequest;
156
+ static fetch(client: SuiClient, id: string): Promise<MintRequest>;
157
+ }
158
+ export declare function isMintRequestEvent(type: string): boolean;
159
+ export interface MintRequestEventFields {
160
+ user: ToField<"address">;
161
+ vrfInput: ToField<Vector<"u8">>;
162
+ remaining: ToField<"u64">;
163
+ seed: ToField<"u64">;
164
+ }
165
+ export type MintRequestEventReified = Reified<MintRequestEvent, MintRequestEventFields>;
166
+ export declare class MintRequestEvent implements StructClass {
167
+ __StructClass: true;
168
+ static readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::MintRequestEvent";
169
+ static readonly $numTypeParams = 0;
170
+ static readonly $isPhantom: readonly [];
171
+ readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::MintRequestEvent";
172
+ readonly $fullTypeName: `${typeof PKG_V8}::discount_mint::MintRequestEvent`;
173
+ readonly $typeArgs: [];
174
+ readonly $isPhantom: readonly [];
175
+ readonly user: ToField<"address">;
176
+ readonly vrfInput: ToField<Vector<"u8">>;
177
+ readonly remaining: ToField<"u64">;
178
+ readonly seed: ToField<"u64">;
179
+ private constructor();
180
+ static reified(): MintRequestEventReified;
181
+ static get r(): reified.StructClassReified<MintRequestEvent, MintRequestEventFields>;
182
+ static phantom(): PhantomReified<ToTypeStr<MintRequestEvent>>;
183
+ static get p(): reified.PhantomReified<"0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::MintRequestEvent">;
184
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
185
+ user: import("@mysten/sui/bcs").BcsType<string, string, string>;
186
+ vrf_input: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
187
+ length: number;
188
+ }, string>;
189
+ remaining: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
190
+ seed: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
191
+ }, string>;
192
+ static fromFields(fields: Record<string, any>): MintRequestEvent;
193
+ static fromFieldsWithTypes(item: FieldsWithTypes): MintRequestEvent;
194
+ static fromBcs(data: Uint8Array): MintRequestEvent;
195
+ toJSONField(): {
196
+ user: string;
197
+ vrfInput: number[];
198
+ remaining: string;
199
+ seed: string;
200
+ };
201
+ toJSON(): {
202
+ user: string;
203
+ vrfInput: number[];
204
+ remaining: string;
205
+ seed: string;
206
+ $typeName: string;
207
+ $typeArgs: [];
208
+ };
209
+ static fromJSONField(field: any): MintRequestEvent;
210
+ static fromJSON(json: Record<string, any>): MintRequestEvent;
211
+ static fromSuiParsedData(content: SuiParsedData): MintRequestEvent;
212
+ static fromSuiObjectData(data: SuiObjectData): MintRequestEvent;
213
+ static fetch(client: SuiClient, id: string): Promise<MintRequestEvent>;
214
+ }
215
+ export declare function isPool(type: string): boolean;
216
+ export interface PoolFields {
217
+ id: ToField<UID>;
218
+ num: ToField<"u64">;
219
+ price: ToField<"u64">;
220
+ startMs: ToField<"u64">;
221
+ endMs: ToField<"u64">;
222
+ authority: ToField<"address">;
223
+ publicKey: ToField<Vector<"u8">>;
224
+ discountPcts: ToField<Vector<"u64">>;
225
+ isLive: ToField<"bool">;
226
+ balance: ToField<Balance<ToPhantom<SUI>>>;
227
+ tails: ToField<TableVec<ToPhantom<Tails>>>;
228
+ requests: ToField<Vector<MintRequest>>;
229
+ }
230
+ export type PoolReified = Reified<Pool, PoolFields>;
231
+ export declare class Pool implements StructClass {
232
+ __StructClass: true;
233
+ static readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::Pool";
234
+ static readonly $numTypeParams = 0;
235
+ static readonly $isPhantom: readonly [];
236
+ readonly $typeName = "0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::Pool";
237
+ readonly $fullTypeName: `${typeof PKG_V8}::discount_mint::Pool`;
238
+ readonly $typeArgs: [];
239
+ readonly $isPhantom: readonly [];
240
+ readonly id: ToField<UID>;
241
+ readonly num: ToField<"u64">;
242
+ readonly price: ToField<"u64">;
243
+ readonly startMs: ToField<"u64">;
244
+ readonly endMs: ToField<"u64">;
245
+ readonly authority: ToField<"address">;
246
+ readonly publicKey: ToField<Vector<"u8">>;
247
+ readonly discountPcts: ToField<Vector<"u64">>;
248
+ readonly isLive: ToField<"bool">;
249
+ readonly balance: ToField<Balance<ToPhantom<SUI>>>;
250
+ readonly tails: ToField<TableVec<ToPhantom<Tails>>>;
251
+ readonly requests: ToField<Vector<MintRequest>>;
252
+ private constructor();
253
+ static reified(): PoolReified;
254
+ static get r(): reified.StructClassReified<Pool, PoolFields>;
255
+ static phantom(): PhantomReified<ToTypeStr<Pool>>;
256
+ static get p(): reified.PhantomReified<"0x1abc57354a357ac988e81d60b76ce5bf0322605d666aec701d40291952150082::discount_mint::Pool">;
257
+ static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
258
+ id: import("@mysten/sui/bcs").BcsStruct<{
259
+ id: import("@mysten/sui/bcs").BcsStruct<{
260
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
261
+ }, string>;
262
+ }, string>;
263
+ num: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
264
+ price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
265
+ start_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
266
+ end_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
267
+ authority: import("@mysten/sui/bcs").BcsType<string, string, string>;
268
+ public_key: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
269
+ length: number;
270
+ }, string>;
271
+ discount_pcts: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
272
+ length: number;
273
+ }, string>;
274
+ is_live: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
275
+ balance: import("@mysten/sui/bcs").BcsStruct<{
276
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
277
+ }, string>;
278
+ tails: import("@mysten/sui/bcs").BcsStruct<{
279
+ contents: import("@mysten/sui/bcs").BcsStruct<{
280
+ id: import("@mysten/sui/bcs").BcsStruct<{
281
+ id: import("@mysten/sui/bcs").BcsStruct<{
282
+ bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
283
+ }, string>;
284
+ }, string>;
285
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
286
+ }, string>;
287
+ }, string>;
288
+ requests: import("@mysten/sui/bcs").BcsType<{
289
+ user: string;
290
+ coin: {
291
+ id: {
292
+ id: {
293
+ bytes: string;
294
+ };
295
+ };
296
+ balance: {
297
+ value: string;
298
+ };
299
+ };
300
+ vrf_input: number[];
301
+ }[], Iterable<{
302
+ user: string;
303
+ coin: {
304
+ id: {
305
+ id: {
306
+ bytes: string;
307
+ };
308
+ };
309
+ balance: {
310
+ value: string | number | bigint;
311
+ };
312
+ };
313
+ vrf_input: Iterable<number> & {
314
+ length: number;
315
+ };
316
+ }> & {
317
+ length: number;
318
+ }, string>;
319
+ }, string>;
320
+ static fromFields(fields: Record<string, any>): Pool;
321
+ static fromFieldsWithTypes(item: FieldsWithTypes): Pool;
322
+ static fromBcs(data: Uint8Array): Pool;
323
+ toJSONField(): {
324
+ id: string;
325
+ num: string;
326
+ price: string;
327
+ startMs: string;
328
+ endMs: string;
329
+ authority: string;
330
+ publicKey: number[];
331
+ discountPcts: string[];
332
+ isLive: boolean;
333
+ balance: {
334
+ value: string;
335
+ };
336
+ tails: {
337
+ contents: {
338
+ id: string;
339
+ size: string;
340
+ };
341
+ };
342
+ requests: {
343
+ user: string;
344
+ coin: {
345
+ id: string;
346
+ balance: {
347
+ value: string;
348
+ };
349
+ };
350
+ vrfInput: number[];
351
+ }[];
352
+ };
353
+ toJSON(): {
354
+ id: string;
355
+ num: string;
356
+ price: string;
357
+ startMs: string;
358
+ endMs: string;
359
+ authority: string;
360
+ publicKey: number[];
361
+ discountPcts: string[];
362
+ isLive: boolean;
363
+ balance: {
364
+ value: string;
365
+ };
366
+ tails: {
367
+ contents: {
368
+ id: string;
369
+ size: string;
370
+ };
371
+ };
372
+ requests: {
373
+ user: string;
374
+ coin: {
375
+ id: string;
376
+ balance: {
377
+ value: string;
378
+ };
379
+ };
380
+ vrfInput: number[];
381
+ }[];
382
+ $typeName: string;
383
+ $typeArgs: [];
384
+ };
385
+ static fromJSONField(field: any): Pool;
386
+ static fromJSON(json: Record<string, any>): Pool;
387
+ static fromSuiParsedData(content: SuiParsedData): Pool;
388
+ static fromSuiObjectData(data: SuiObjectData): Pool;
389
+ static fetch(client: SuiClient, id: string): Promise<Pool>;
390
+ }