@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
@@ -1,11 +0,0 @@
1
- import { BcsType, TypeTag, BcsStruct, BcsEnum, BcsTuple } from "@mysten/sui/bcs";
2
- import { TransactionArgument } from "@mysten/sui/transactions";
3
- export type RawTransactionArgument<T> = T | TransactionArgument;
4
- export declare function getPureBcsSchema(typeTag: string | TypeTag): BcsType<any> | null;
5
- export declare function normalizeMoveArguments(args: unknown[] | object, argTypes: string[], parameterNames?: string[]): TransactionArgument[];
6
- export declare class MoveStruct<T extends Record<string, BcsType<any>>, const Name extends string = string> extends BcsStruct<T, Name> {
7
- }
8
- export declare class MoveEnum<T extends Record<string, BcsType<any> | null>, const Name extends string> extends BcsEnum<T, Name> {
9
- }
10
- export declare class MoveTuple<T extends readonly BcsType<any>[], const Name extends string> extends BcsTuple<T, Name> {
11
- }
@@ -1,135 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MoveTuple = exports.MoveEnum = exports.MoveStruct = void 0;
4
- exports.getPureBcsSchema = getPureBcsSchema;
5
- exports.normalizeMoveArguments = normalizeMoveArguments;
6
- const bcs_1 = require("@mysten/sui/bcs");
7
- const utils_1 = require("@mysten/sui/utils");
8
- const transactions_1 = require("@mysten/sui/transactions");
9
- const MOVE_STDLIB_ADDRESS = (0, utils_1.normalizeSuiAddress)("0x1");
10
- const SUI_FRAMEWORK_ADDRESS = (0, utils_1.normalizeSuiAddress)("0x2");
11
- const SUI_SYSTEM_ADDRESS = (0, utils_1.normalizeSuiAddress)("0x3");
12
- function getPureBcsSchema(typeTag) {
13
- const parsedTag = typeof typeTag === "string" ? bcs_1.TypeTagSerializer.parseFromStr(typeTag) : typeTag;
14
- if ("u8" in parsedTag) {
15
- return bcs_1.bcs.U8;
16
- }
17
- else if ("u16" in parsedTag) {
18
- return bcs_1.bcs.U16;
19
- }
20
- else if ("u32" in parsedTag) {
21
- return bcs_1.bcs.U32;
22
- }
23
- else if ("u64" in parsedTag) {
24
- return bcs_1.bcs.U64;
25
- }
26
- else if ("u128" in parsedTag) {
27
- return bcs_1.bcs.U128;
28
- }
29
- else if ("u256" in parsedTag) {
30
- return bcs_1.bcs.U256;
31
- }
32
- else if ("address" in parsedTag) {
33
- return bcs_1.bcs.Address;
34
- }
35
- else if ("bool" in parsedTag) {
36
- return bcs_1.bcs.Bool;
37
- }
38
- else if ("vector" in parsedTag) {
39
- const type = getPureBcsSchema(parsedTag.vector);
40
- return type ? bcs_1.bcs.vector(type) : null;
41
- }
42
- else if ("struct" in parsedTag) {
43
- const structTag = parsedTag.struct;
44
- const pkg = (0, utils_1.normalizeSuiAddress)(parsedTag.struct.address);
45
- if (pkg === MOVE_STDLIB_ADDRESS) {
46
- if ((structTag.module === "ascii" || structTag.module === "string") && structTag.name === "String") {
47
- return bcs_1.bcs.String;
48
- }
49
- if (structTag.module === "option" && structTag.name === "Option") {
50
- const type = getPureBcsSchema(structTag.typeParams[0]);
51
- return type ? bcs_1.bcs.option(type) : null;
52
- }
53
- }
54
- if (pkg === SUI_FRAMEWORK_ADDRESS && structTag.module === "Object" && structTag.name === "ID") {
55
- return bcs_1.bcs.Address;
56
- }
57
- }
58
- return null;
59
- }
60
- function normalizeMoveArguments(args, argTypes, parameterNames) {
61
- const argLen = Array.isArray(args) ? args.length : Object.keys(args).length;
62
- if (parameterNames && argLen !== parameterNames.length) {
63
- throw new Error(`Invalid number of arguments, expected ${parameterNames.length}, got ${argLen}`);
64
- }
65
- const normalizedArgs = [];
66
- let index = 0;
67
- for (const [i, argType] of argTypes.entries()) {
68
- if (argType === `${SUI_FRAMEWORK_ADDRESS}::deny_list::DenyList`) {
69
- normalizedArgs.push((tx) => tx.object.denyList());
70
- continue;
71
- }
72
- if (argType === `${SUI_FRAMEWORK_ADDRESS}::random::Random`) {
73
- normalizedArgs.push((tx) => tx.object.random());
74
- continue;
75
- }
76
- if (argType === `${SUI_FRAMEWORK_ADDRESS}::clock::Clock`) {
77
- normalizedArgs.push((tx) => tx.object.clock());
78
- continue;
79
- }
80
- if (argType === `${SUI_SYSTEM_ADDRESS}::sui_system::SuiSystemState`) {
81
- normalizedArgs.push((tx) => tx.object.system());
82
- continue;
83
- }
84
- let arg;
85
- if (Array.isArray(args)) {
86
- if (index >= args.length) {
87
- throw new Error(`Invalid number of arguments, expected at least ${index + 1}, got ${args.length}`);
88
- }
89
- arg = args[index];
90
- }
91
- else {
92
- if (!parameterNames) {
93
- throw new Error(`Expected arguments to be passed as an array`);
94
- }
95
- const name = parameterNames[index];
96
- arg = args[name];
97
- }
98
- index += 1;
99
- if (typeof arg === "function" || (0, transactions_1.isArgument)(arg)) {
100
- normalizedArgs.push(arg);
101
- continue;
102
- }
103
- const type = argTypes[i];
104
- const bcsType = getPureBcsSchema(type);
105
- if (bcsType) {
106
- const bytes = bcsType.serialize(arg);
107
- normalizedArgs.push((tx) => tx.pure(bytes));
108
- continue;
109
- }
110
- else if (typeof arg === "string") {
111
- normalizedArgs.push((tx) => tx.object(arg));
112
- continue;
113
- }
114
- throw new Error(`Invalid argument ${stringify(arg)} for type ${type}`);
115
- }
116
- return normalizedArgs;
117
- }
118
- class MoveStruct extends bcs_1.BcsStruct {
119
- }
120
- exports.MoveStruct = MoveStruct;
121
- class MoveEnum extends bcs_1.BcsEnum {
122
- }
123
- exports.MoveEnum = MoveEnum;
124
- class MoveTuple extends bcs_1.BcsTuple {
125
- }
126
- exports.MoveTuple = MoveTuple;
127
- function stringify(val) {
128
- if (typeof val === "object") {
129
- return JSON.stringify(val, (val) => val);
130
- }
131
- if (typeof val === "bigint") {
132
- return val.toString();
133
- }
134
- return val;
135
- }
@@ -1,26 +0,0 @@
1
- import { SuiGraphQLClient } from "@mysten/sui/graphql";
2
- export declare function getDynamicFields(gqlClient: SuiGraphQLClient, id: string): Promise<{
3
- nodes: {
4
- name: {
5
- type: {
6
- repr: string;
7
- } | null;
8
- json: unknown;
9
- } | null;
10
- value: {
11
- __typename: "MoveObject";
12
- contents: {
13
- type: {
14
- repr: string;
15
- } | null;
16
- json: unknown;
17
- } | null;
18
- } | {
19
- __typename: "MoveValue";
20
- type: {
21
- repr: string;
22
- } | null;
23
- json: unknown;
24
- } | null;
25
- }[];
26
- } | null | undefined>;
@@ -1,126 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDynamicFields = getDynamicFields;
4
- const graphql_1 = require("@mysten/sui/graphql");
5
- const latest_1 = require("@mysten/sui/graphql/schemas/latest");
6
- const gqlClient = new graphql_1.SuiGraphQLClient({
7
- url: "https://graphql.testnet.sui.io/graphql",
8
- });
9
- const chainIdentifierQuery = (0, latest_1.graphql)(`
10
- query {
11
- chainIdentifier
12
- }
13
- `);
14
- async function getChainIdentifier() {
15
- const result = await gqlClient.query({
16
- query: chainIdentifierQuery,
17
- });
18
- return result.data?.chainIdentifier;
19
- }
20
- const getSuinsName = (0, latest_1.graphql)(`
21
- query getSuiName($address: SuiAddress!) {
22
- address(address: $address) {
23
- defaultSuinsName
24
- }
25
- }
26
- `);
27
- async function getDefaultSuinsName(address) {
28
- const result = await gqlClient.query({
29
- query: getSuinsName,
30
- variables: {
31
- address,
32
- },
33
- });
34
- return result.data?.address?.defaultSuinsName;
35
- }
36
- // getDefaultSuinsName("0xd15f079d5f60b8fdfdcf3ca66c0d3473790c758b04b6418929d5d2991c5443ee").then((x) => console.log(x));
37
- const dynamicFieldQuery = (0, latest_1.graphql)(`
38
- query DynamicField($address: SuiAddress!) {
39
- object(address: $address) {
40
- dynamicField(name: { type: "0x2::kiosk::Lock", bcs: "NLArx1UJguOUYmXgNG8Pv8KbKXLjWtCi6i0Yeq1Vhfw=" }) {
41
- ...DynamicFieldSelect
42
- }
43
- }
44
- }
45
-
46
- fragment DynamicFieldSelect on DynamicField {
47
- name {
48
- ...MoveValueFields
49
- }
50
- value {
51
- ...DynamicFieldValueSelection
52
- }
53
- }
54
-
55
- fragment DynamicFieldValueSelection on DynamicFieldValue {
56
- __typename
57
- ... on MoveValue {
58
- ...MoveValueFields
59
- }
60
- ... on MoveObject {
61
- hasPublicTransfer
62
- contents {
63
- ...MoveValueFields
64
- }
65
- }
66
- }
67
-
68
- fragment MoveValueFields on MoveValue {
69
- type {
70
- repr
71
- }
72
- json
73
- bcs
74
- }
75
- `);
76
- async function getDynamicField(address) {
77
- const result = await gqlClient.query({
78
- query: dynamicFieldQuery,
79
- variables: {
80
- address,
81
- },
82
- });
83
- return result.data?.object?.dynamicField;
84
- }
85
- // getDynamicField("0xb57fba584a700a5bcb40991e1b2e6bf68b0f3896d767a0da92e69de73de226ac").then((x) => console.log(x));
86
- const dynamicFieldsQuery = (0, latest_1.graphql)(`
87
- query ($id: SuiAddress!) {
88
- address(address: $id) {
89
- dynamicFields {
90
- nodes {
91
- name {
92
- ...Value
93
- }
94
- value {
95
- __typename
96
- ... on MoveValue {
97
- ...Value
98
- }
99
- ... on MoveObject {
100
- contents {
101
- ...Value
102
- }
103
- }
104
- }
105
- }
106
- }
107
- }
108
- }
109
-
110
- fragment Value on MoveValue {
111
- type {
112
- repr
113
- }
114
- json
115
- }
116
- `);
117
- async function getDynamicFields(gqlClient, id) {
118
- const result = await gqlClient.query({
119
- query: dynamicFieldsQuery,
120
- variables: {
121
- id,
122
- },
123
- });
124
- return result.data?.address?.dynamicFields;
125
- }
126
- getDynamicFields(gqlClient, "0x54447a759a238f93ff847177bd87ace4b6ebc83553080611b93ac394122ecc4d").then((x) => console.dir(x, { depth: null }));
@@ -1 +0,0 @@
1
- export {};
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const grpc_1 = require("@mysten/sui/grpc");
4
- const src_1 = require("../../src");
5
- const gRpcClient = new grpc_1.SuiGrpcClient({ network: src_1.NETWORK.toLowerCase(), baseUrl: `https://fullnode.${src_1.NETWORK.toLowerCase()}.sui.io:443` });
6
- // gRpcClient.ledgerService
7
- // .getObject({ objectId: LIQUIDITY_POOL_0, readMask: { paths: ["contents"] } })
8
- // .then((x) => console.log(x.response.object?.contents));
9
- // gRpcClient.ledgerService
10
- // .batchGetObjects({
11
- // requests: [{ objectId: LIQUIDITY_POOL_0 }, { objectId: LIQUIDITY_POOL_0 }],
12
- // readMask: { paths: ["contents"] },
13
- // })
14
- // .then((x) =>
15
- // x.response.objects.map((x) => {
16
- // if (x.result.oneofKind === "object") {
17
- // console.log(x.result.object.contents);
18
- // } else if (x.result.oneofKind === "error") {
19
- // console.error(x.result.error);
20
- // } else {
21
- // console.warn("undefined case");
22
- // }
23
- // })
24
- // );
25
- // gRpcClient.stateService
26
- // .listDynamicFields({
27
- // parent: "0xfbd1ad8da88e7cb228f1c12a87399b19acd4f25c64a3503a7aad8747751580aa",
28
- // readMask: { paths: ["field_object"] },
29
- // })
30
- // .then((x) =>
31
- // x.response.dynamicFields.map((x) => {
32
- // console.log(x);
33
- // return x.fieldObject?.contents;
34
- // })
35
- // );
36
- // getBalance
37
- // listBalances;
38
- // listOwnedObjects
@@ -1,64 +0,0 @@
1
- "use strict";
2
- // import * as grpc from "@grpc/grpc-js";
3
- // import * as protoLoader from "@grpc/proto-loader";
4
- // // Load proto definitions
5
- // const packageDefinition = protoLoader.loadSync("sui/rpc/v2/ledger_service.proto", {
6
- // keepCase: true,
7
- // longs: String,
8
- // enums: String,
9
- // defaults: true,
10
- // oneofs: true,
11
- // includeDirs: ["src/grpc/proto"],
12
- // });
13
- // const suiProto = grpc.loadPackageDefinition(packageDefinition) as any;
14
- // const LedgerService = suiProto.sui.rpc.v2.LedgerService;
15
- // // Create gRPC client
16
- // const client = new LedgerService("fullnode.testnet.sui.io:443", grpc.credentials.createSsl());
17
- // // // Sample transaction digest in Base58 format
18
- // // const base58Digest = "3ByWphQ5sAVojiTrTrGXGM5FmCVzpzYmhsjbhYESJtxp";
19
- // // // Construct the request
20
- // // const request = {
21
- // // digest: base58Digest,
22
- // // read_mask: {
23
- // // paths: ["events", "effects"],
24
- // // },
25
- // // };
26
- // // // Make gRPC call
27
- // // client.GetTransaction(request, (err: any, response: any) => {
28
- // // if (err) {
29
- // // console.error("Error:", err);
30
- // // } else {
31
- // // console.log("Response:", JSON.stringify(response, null, 2));
32
- // // }
33
- // // });
34
- // // const request = {
35
- // // object_id: "0x0285cbf4aa8585be6c978235d11d06fa35773266ede040d38d34e1d79b049460",
36
- // // read_mask: {
37
- // // paths: ["bcs"],
38
- // // },
39
- // // };
40
- // // // Make gRPC call
41
- // // client.GetObject(request, (err: any, response: any) => {
42
- // // if (err) {
43
- // // console.error("Error:", err);
44
- // // } else {
45
- // // console.dir(response);
46
- // // }
47
- // // });
48
- // const request = {
49
- // requests: [
50
- // { object_id: "0x0285cbf4aa8585be6c978235d11d06fa35773266ede040d38d34e1d79b049460" },
51
- // { object_id: "0x50b01081469d032e04bfcbd057614b1359376920f55c7bebd076e0e2af07a57f" },
52
- // ],
53
- // read_mask: {
54
- // paths: ["bcs"],
55
- // },
56
- // };
57
- // // Make gRPC call
58
- // client.BatchGetObjects(request, (err: any, response: any) => {
59
- // if (err) {
60
- // console.error("Error:", err);
61
- // } else {
62
- // console.dir(response, { depth: null });
63
- // }
64
- // });
File without changes
@@ -1,49 +0,0 @@
1
- "use strict";
2
- // import * as grpc from "@grpc/grpc-js";
3
- // import * as protoLoader from "@grpc/proto-loader";
4
- // import * as path from "path";
5
- // // Load proto definitions
6
- // const packageDefinition = protoLoader.loadSync("sui/rpc/v2beta2/live_data_service.proto", {
7
- // keepCase: true,
8
- // longs: String,
9
- // enums: String,
10
- // defaults: true,
11
- // oneofs: true,
12
- // includeDirs: ["src/grpc/proto"],
13
- // });
14
- // const suiProto = grpc.loadPackageDefinition(packageDefinition) as any;
15
- // const LiveDataService = suiProto.sui.rpc.v2beta2.LiveDataService;
16
- // // console.log(Object.keys(LiveDataService.service));
17
- // // Create gRPC client
18
- // const client = new LiveDataService("fullnode.testnet.sui.io:443", grpc.credentials.createSsl());
19
- // // Construct the request
20
- // const request1 = {
21
- // parent: "0x0285cbf4aa8585be6c978235d11d06fa35773266ede040d38d34e1d79b049460",
22
- // page_size: 50, // maximum 1000
23
- // // page_token,
24
- // read_mask: {
25
- // paths: ["name_value", "object"],
26
- // },
27
- // };
28
- // // Make gRPC call
29
- // client.ListDynamicFields(request1, (err: any, response: any) => {
30
- // if (err) {
31
- // console.error("Error:", err);
32
- // } else {
33
- // console.log("Response:", JSON.stringify(response, null, 2));
34
- // }
35
- // });
36
- // // // Construct the request
37
- // // const request2 = {
38
- // // owner: "0x978f65df8570a075298598a9965c18de9087f9e888eb3430fe20334f5c554cfd",
39
- // // // page_size: 50, // maximum 1000
40
- // // // page_token,
41
- // // };
42
- // // // Make gRPC call
43
- // // client.ListOwnedObjects(request2, (err: any, response: any) => {
44
- // // if (err) {
45
- // // console.error("Error:", err);
46
- // // } else {
47
- // // console.log("Response:", JSON.stringify(response, null, 2));
48
- // // }
49
- // // });
File without changes