@typus/typus-perp-sdk 1.1.32-type-test → 1.1.33

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 (253) hide show
  1. package/dist/src/api/sentio.d.ts +5 -5
  2. package/dist/src/api/sentio.js +690 -541
  3. package/dist/src/client.d.ts +28 -0
  4. package/dist/src/client.js +171 -0
  5. package/dist/src/fetch.d.ts +554 -36
  6. package/dist/src/fetch.js +545 -661
  7. package/dist/src/generated/typus_perp/admin.d.ts +274 -0
  8. package/dist/src/generated/typus_perp/admin.js +321 -0
  9. package/dist/src/generated/typus_perp/competition.d.ts +60 -0
  10. package/dist/src/generated/typus_perp/competition.js +104 -0
  11. package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +17 -0
  12. package/dist/src/generated/typus_perp/deps/std/type_name.js +25 -0
  13. package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +12 -0
  14. package/dist/src/generated/typus_perp/deps/sui/balance.js +20 -0
  15. package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
  16. package/dist/src/generated/typus_perp/deps/sui/object.js +16 -0
  17. package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +19 -0
  18. package/dist/src/generated/typus_perp/deps/sui/object_table.js +59 -0
  19. package/dist/src/generated/typus_perp/deps/sui/table.d.ts +31 -0
  20. package/dist/src/generated/typus_perp/deps/sui/table.js +71 -0
  21. package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +18 -0
  22. package/dist/src/generated/typus_perp/deps/sui/vec_set.js +25 -0
  23. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +30 -0
  24. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +67 -0
  25. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +32 -0
  26. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +71 -0
  27. package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +15 -0
  28. package/dist/src/{_framework/init-loader.js → generated/typus_perp/deps/typus_framework/vault.js} +18 -10
  29. package/dist/src/generated/typus_perp/error.d.ts +443 -0
  30. package/dist/src/generated/typus_perp/error.js +788 -0
  31. package/dist/src/generated/typus_perp/escrow.d.ts +109 -0
  32. package/dist/src/generated/typus_perp/escrow.js +139 -0
  33. package/dist/src/generated/typus_perp/lp_pool.d.ts +1853 -0
  34. package/dist/src/generated/typus_perp/lp_pool.js +1483 -0
  35. package/dist/src/generated/typus_perp/math.d.ts +95 -0
  36. package/dist/src/generated/typus_perp/math.js +97 -0
  37. package/dist/src/generated/typus_perp/position.d.ts +1251 -0
  38. package/dist/src/generated/typus_perp/position.js +1393 -0
  39. package/dist/src/generated/typus_perp/profit_vault.d.ts +272 -0
  40. package/dist/src/generated/typus_perp/profit_vault.js +321 -0
  41. package/dist/src/generated/typus_perp/symbol.d.ts +47 -0
  42. package/dist/src/generated/typus_perp/symbol.js +97 -0
  43. package/dist/src/generated/typus_perp/trading.d.ts +2134 -0
  44. package/dist/src/generated/typus_perp/trading.js +2050 -0
  45. package/dist/src/generated/typus_perp/treasury_caps.d.ts +44 -0
  46. package/dist/src/generated/typus_perp/treasury_caps.js +92 -0
  47. package/dist/src/generated/typus_perp/user_account.d.ts +146 -0
  48. package/dist/src/generated/typus_perp/user_account.js +221 -0
  49. package/dist/src/generated/typus_stake_pool/admin.d.ts +218 -0
  50. package/dist/src/generated/typus_stake_pool/admin.js +247 -0
  51. package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +17 -0
  52. package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +25 -0
  53. package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
  54. package/dist/src/generated/typus_stake_pool/deps/sui/object.js +16 -0
  55. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +30 -0
  56. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +37 -0
  57. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +18 -0
  58. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +25 -0
  59. package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +1038 -0
  60. package/dist/src/generated/typus_stake_pool/stake_pool.js +938 -0
  61. package/dist/src/generated/utils/index.d.ts +11 -0
  62. package/dist/src/generated/utils/index.js +138 -0
  63. package/dist/src/grpc/graphql.d.ts +26 -0
  64. package/dist/src/grpc/graphql.js +126 -0
  65. package/dist/src/grpc/grpc.d.ts +1 -0
  66. package/dist/src/grpc/grpc.js +38 -0
  67. package/dist/src/grpc/ledgerService.js +64 -0
  68. package/dist/src/grpc/liveDataService.d.ts +0 -0
  69. package/dist/src/grpc/liveDataService.js +49 -0
  70. package/dist/src/index.d.ts +2 -8
  71. package/dist/src/index.js +30 -56
  72. package/dist/src/user/history.d.ts +1 -1
  73. package/dist/src/user/history.js +649 -679
  74. package/dist/src/user/order.d.ts +21 -11
  75. package/dist/src/user/order.js +204 -301
  76. package/dist/src/user/orderWithBidReceipt.d.ts +17 -6
  77. package/dist/src/user/orderWithBidReceipt.js +164 -224
  78. package/dist/src/user/tlp.d.ts +25 -25
  79. package/dist/src/user/tlp.js +317 -468
  80. package/package.json +12 -3
  81. package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +0 -88
  82. package/dist/src/_dependencies/source/0x1/ascii/structs.js +0 -398
  83. package/dist/src/_dependencies/source/0x1/index.d.ts +0 -3
  84. package/dist/src/_dependencies/source/0x1/index.js +0 -6
  85. package/dist/src/_dependencies/source/0x1/option/structs.d.ts +0 -50
  86. package/dist/src/_dependencies/source/0x1/option/structs.js +0 -271
  87. package/dist/src/_dependencies/source/0x1/string/structs.d.ts +0 -48
  88. package/dist/src/_dependencies/source/0x1/string/structs.js +0 -256
  89. package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +0 -49
  90. package/dist/src/_dependencies/source/0x1/type-name/structs.js +0 -223
  91. package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +0 -54
  92. package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
  93. package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -84
  94. package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
  95. package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -406
  96. package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -1247
  97. package/dist/src/_dependencies/source/0x2/index.d.ts +0 -3
  98. package/dist/src/_dependencies/source/0x2/index.js +0 -6
  99. package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +0 -132
  100. package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -438
  101. package/dist/src/_dependencies/source/0x2/object/structs.d.ts +0 -86
  102. package/dist/src/_dependencies/source/0x2/object/structs.js +0 -364
  103. package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +0 -54
  104. package/dist/src/_dependencies/source/0x2/object-table/structs.js +0 -248
  105. package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +0 -44
  106. package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
  107. package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -54
  108. package/dist/src/_dependencies/source/0x2/table/structs.js +0 -248
  109. package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -59
  110. package/dist/src/_dependencies/source/0x2/table-vec/structs.js +0 -274
  111. package/dist/src/_dependencies/source/0x2/token/structs.d.ts +0 -421
  112. package/dist/src/_dependencies/source/0x2/token/structs.js +0 -1095
  113. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -348
  114. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -1091
  115. package/dist/src/_dependencies/source/0x2/url/structs.d.ts +0 -49
  116. package/dist/src/_dependencies/source/0x2/url/structs.js +0 -223
  117. package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +0 -106
  118. package/dist/src/_dependencies/source/0x2/vec-map/structs.js +0 -446
  119. package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +0 -49
  120. package/dist/src/_dependencies/source/0x2/vec-set/structs.js +0 -270
  121. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +0 -422
  122. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +0 -1084
  123. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +0 -130
  124. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +0 -456
  125. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +0 -208
  126. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +0 -653
  127. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +0 -362
  128. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +0 -899
  129. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +0 -8
  130. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +0 -11
  131. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +0 -2
  132. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +0 -102
  133. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +0 -202
  134. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +0 -632
  135. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +0 -600
  136. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +0 -1459
  137. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +0 -136
  138. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.js +0 -438
  139. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +0 -127
  140. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +0 -430
  141. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +0 -957
  142. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +0 -2261
  143. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +0 -244
  144. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +0 -733
  145. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +0 -294
  146. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +0 -892
  147. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +0 -73
  148. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +0 -263
  149. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +0 -294
  150. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +0 -591
  151. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +0 -64
  152. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +0 -258
  153. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +0 -756
  154. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +0 -1721
  155. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +0 -44
  156. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +0 -222
  157. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +0 -3
  158. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +0 -6
  159. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +0 -2
  160. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +0 -89
  161. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +0 -135
  162. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +0 -444
  163. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +0 -2106
  164. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +0 -4952
  165. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +0 -390
  166. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +0 -844
  167. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +0 -6
  168. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +0 -9
  169. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +0 -2
  170. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +0 -69
  171. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +0 -89
  172. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +0 -376
  173. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +0 -386
  174. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +0 -881
  175. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +0 -59
  176. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +0 -274
  177. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +0 -974
  178. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +0 -2387
  179. package/dist/src/_framework/init-loader.d.ts +0 -2
  180. package/dist/src/_framework/loader.d.ts +0 -17
  181. package/dist/src/_framework/loader.js +0 -108
  182. package/dist/src/_framework/reified.d.ts +0 -108
  183. package/dist/src/_framework/reified.js +0 -237
  184. package/dist/src/_framework/util.d.ts +0 -35
  185. package/dist/src/_framework/util.js +0 -396
  186. package/dist/src/_framework/vector.d.ts +0 -42
  187. package/dist/src/_framework/vector.js +0 -112
  188. package/dist/src/pyth.js +0 -1
  189. package/dist/src/typus_perp/admin/functions.d.ts +0 -59
  190. package/dist/src/typus_perp/admin/functions.js +0 -122
  191. package/dist/src/typus_perp/admin/structs.d.ts +0 -467
  192. package/dist/src/typus_perp/admin/structs.js +0 -1065
  193. package/dist/src/typus_perp/competition/functions.d.ts +0 -24
  194. package/dist/src/typus_perp/competition/functions.js +0 -38
  195. package/dist/src/typus_perp/competition/structs.d.ts +0 -80
  196. package/dist/src/typus_perp/competition/structs.js +0 -288
  197. package/dist/src/typus_perp/error/functions.d.ts +0 -73
  198. package/dist/src/typus_perp/error/functions.js +0 -363
  199. package/dist/src/typus_perp/escrow/functions.d.ts +0 -17
  200. package/dist/src/typus_perp/escrow/functions.js +0 -36
  201. package/dist/src/typus_perp/escrow/structs.d.ts +0 -160
  202. package/dist/src/typus_perp/escrow/structs.js +0 -324
  203. package/dist/src/typus_perp/index.d.ts +0 -1
  204. package/dist/src/typus_perp/index.js +0 -7
  205. package/dist/src/typus_perp/init.d.ts +0 -2
  206. package/dist/src/typus_perp/init.js +0 -118
  207. package/dist/src/typus_perp/lending/functions.d.ts +0 -15
  208. package/dist/src/typus_perp/lending/functions.js +0 -22
  209. package/dist/src/typus_perp/lp-pool/functions.d.ts +0 -460
  210. package/dist/src/typus_perp/lp-pool/functions.js +0 -732
  211. package/dist/src/typus_perp/lp-pool/structs.d.ts +0 -3705
  212. package/dist/src/typus_perp/lp-pool/structs.js +0 -6789
  213. package/dist/src/typus_perp/math/functions.d.ts +0 -29
  214. package/dist/src/typus_perp/math/functions.js +0 -61
  215. package/dist/src/typus_perp/position/functions.d.ts +0 -379
  216. package/dist/src/typus_perp/position/functions.js +0 -713
  217. package/dist/src/typus_perp/position/structs.d.ts +0 -905
  218. package/dist/src/typus_perp/position/structs.js +0 -1450
  219. package/dist/src/typus_perp/symbol/functions.d.ts +0 -9
  220. package/dist/src/typus_perp/symbol/functions.js +0 -24
  221. package/dist/src/typus_perp/symbol/structs.d.ts +0 -70
  222. package/dist/src/typus_perp/symbol/structs.js +0 -235
  223. package/dist/src/typus_perp/tlp/functions.d.ts +0 -19
  224. package/dist/src/typus_perp/tlp/functions.js +0 -40
  225. package/dist/src/typus_perp/tlp/structs.d.ts +0 -121
  226. package/dist/src/typus_perp/tlp/structs.js +0 -416
  227. package/dist/src/typus_perp/token-interface/functions.d.ts +0 -11
  228. package/dist/src/typus_perp/token-interface/functions.js +0 -22
  229. package/dist/src/typus_perp/trading/functions.d.ts +0 -812
  230. package/dist/src/typus_perp/trading/functions.js +0 -1218
  231. package/dist/src/typus_perp/trading/structs.d.ts +0 -3060
  232. package/dist/src/typus_perp/trading/structs.js +0 -5813
  233. package/dist/src/typus_perp/treasury-caps/functions.d.ts +0 -9
  234. package/dist/src/typus_perp/treasury-caps/functions.js +0 -36
  235. package/dist/src/typus_perp/treasury-caps/structs.d.ts +0 -49
  236. package/dist/src/typus_perp/treasury-caps/structs.js +0 -223
  237. package/dist/src/typus_perp/user-account/functions.d.ts +0 -36
  238. package/dist/src/typus_perp/user-account/functions.js +0 -70
  239. package/dist/src/typus_perp/user-account/structs.d.ts +0 -148
  240. package/dist/src/typus_perp/user-account/structs.js +0 -448
  241. package/dist/src/typus_stake_pool/admin/functions.d.ts +0 -49
  242. package/dist/src/typus_stake_pool/admin/functions.js +0 -105
  243. package/dist/src/typus_stake_pool/admin/structs.d.ts +0 -365
  244. package/dist/src/typus_stake_pool/admin/structs.js +0 -789
  245. package/dist/src/typus_stake_pool/index.d.ts +0 -1
  246. package/dist/src/typus_stake_pool/index.js +0 -7
  247. package/dist/src/typus_stake_pool/init.d.ts +0 -2
  248. package/dist/src/typus_stake_pool/init.js +0 -69
  249. package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +0 -229
  250. package/dist/src/typus_stake_pool/stake-pool/functions.js +0 -380
  251. package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +0 -2199
  252. package/dist/src/typus_stake_pool/stake-pool/structs.js +0 -4653
  253. /package/dist/src/{pyth.d.ts → grpc/ledgerService.d.ts} +0 -0
@@ -1,416 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
- return new (P || (P = Promise))(function (resolve, reject) {
31
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
- step((generator = generator.apply(thisArg, _arguments || [])).next());
35
- });
36
- };
37
- var __generator = (this && this.__generator) || function (thisArg, body) {
38
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
39
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
40
- function verb(n) { return function (v) { return step([n, v]); }; }
41
- function step(op) {
42
- if (f) throw new TypeError("Generator is already executing.");
43
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
44
- 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;
45
- if (y = 0, t) op = [op[0] & 2, t.value];
46
- switch (op[0]) {
47
- case 0: case 1: t = op; break;
48
- case 4: _.label++; return { value: op[1], done: false };
49
- case 5: _.label++; y = op[1]; op = [0]; continue;
50
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
51
- default:
52
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
53
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
54
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
55
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
56
- if (t[2]) _.ops.pop();
57
- _.trys.pop(); continue;
58
- }
59
- op = body.call(thisArg, _);
60
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
61
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
62
- }
63
- };
64
- var __read = (this && this.__read) || function (o, n) {
65
- var m = typeof Symbol === "function" && o[Symbol.iterator];
66
- if (!m) return o;
67
- var i = m.call(o), r, ar = [], e;
68
- try {
69
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
70
- }
71
- catch (error) { e = { error: error }; }
72
- finally {
73
- try {
74
- if (r && !r.done && (m = i["return"])) m.call(i);
75
- }
76
- finally { if (e) throw e.error; }
77
- }
78
- return ar;
79
- };
80
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
81
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
82
- if (ar || !(i in from)) {
83
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
84
- ar[i] = from[i];
85
- }
86
- }
87
- return to.concat(ar || Array.prototype.slice.call(from));
88
- };
89
- Object.defineProperty(exports, "__esModule", { value: true });
90
- exports.UnsettledBidReceipt = exports.MoveStruct = exports.TLP = exports.LpRegistry = void 0;
91
- exports.isLpRegistry = isLpRegistry;
92
- exports.isTLP = isTLP;
93
- var structs_1 = require("../../_dependencies/source/0x2/object/structs");
94
- var reified_1 = require("../../_framework/reified");
95
- var util_1 = require("../../_framework/util");
96
- var index_1 = require("../index");
97
- var utils_1 = require("@mysten/sui/utils");
98
- var bcs_1 = require("@mysten/sui/bcs");
99
- /* ============================== LpRegistry =============================== */
100
- function isLpRegistry(type) {
101
- type = (0, util_1.compressSuiType)(type);
102
- return type === "".concat(index_1.PKG_V1, "::tlp::LpRegistry");
103
- }
104
- var LpRegistry = /** @class */ (function () {
105
- function LpRegistry(typeArgs, fields) {
106
- this.__StructClass = true;
107
- this.$typeName = LpRegistry.$typeName;
108
- this.$isPhantom = LpRegistry.$isPhantom;
109
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([LpRegistry.$typeName], __read(typeArgs), false));
110
- this.$typeArgs = typeArgs;
111
- this.id = fields.id;
112
- }
113
- LpRegistry.reified = function () {
114
- var _this = this;
115
- return {
116
- typeName: LpRegistry.$typeName,
117
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([LpRegistry.$typeName], [], false)),
118
- typeArgs: [],
119
- isPhantom: LpRegistry.$isPhantom,
120
- reifiedTypeArgs: [],
121
- fromFields: function (fields) { return LpRegistry.fromFields(fields); },
122
- fromFieldsWithTypes: function (item) { return LpRegistry.fromFieldsWithTypes(item); },
123
- fromBcs: function (data) { return LpRegistry.fromBcs(data); },
124
- bcs: LpRegistry.bcs,
125
- fromJSONField: function (field) { return LpRegistry.fromJSONField(field); },
126
- fromJSON: function (json) { return LpRegistry.fromJSON(json); },
127
- fromSuiParsedData: function (content) { return LpRegistry.fromSuiParsedData(content); },
128
- fromSuiObjectData: function (content) { return LpRegistry.fromSuiObjectData(content); },
129
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
130
- return [2 /*return*/, LpRegistry.fetch(client, id)];
131
- }); }); },
132
- new: function (fields) {
133
- return new LpRegistry([], fields);
134
- },
135
- kind: "StructClassReified",
136
- };
137
- };
138
- Object.defineProperty(LpRegistry, "r", {
139
- get: function () {
140
- return LpRegistry.reified();
141
- },
142
- enumerable: false,
143
- configurable: true
144
- });
145
- LpRegistry.phantom = function () {
146
- return (0, reified_1.phantom)(LpRegistry.reified());
147
- };
148
- Object.defineProperty(LpRegistry, "p", {
149
- get: function () {
150
- return LpRegistry.phantom();
151
- },
152
- enumerable: false,
153
- configurable: true
154
- });
155
- Object.defineProperty(LpRegistry, "bcs", {
156
- get: function () {
157
- return bcs_1.bcs.struct("LpRegistry", {
158
- id: structs_1.UID.bcs,
159
- });
160
- },
161
- enumerable: false,
162
- configurable: true
163
- });
164
- LpRegistry.fromFields = function (fields) {
165
- return LpRegistry.reified().new({ id: (0, reified_1.decodeFromFields)(structs_1.UID.reified(), fields.id) });
166
- };
167
- LpRegistry.fromFieldsWithTypes = function (item) {
168
- if (!isLpRegistry(item.type)) {
169
- throw new Error("not a LpRegistry type");
170
- }
171
- return LpRegistry.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.UID.reified(), item.fields.id) });
172
- };
173
- LpRegistry.fromBcs = function (data) {
174
- return LpRegistry.fromFields(LpRegistry.bcs.parse(data));
175
- };
176
- LpRegistry.prototype.toJSONField = function () {
177
- return {
178
- id: this.id,
179
- };
180
- };
181
- LpRegistry.prototype.toJSON = function () {
182
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
183
- };
184
- LpRegistry.fromJSONField = function (field) {
185
- return LpRegistry.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_1.UID.reified(), field.id) });
186
- };
187
- LpRegistry.fromJSON = function (json) {
188
- if (json.$typeName !== LpRegistry.$typeName) {
189
- throw new Error("not a WithTwoGenerics json object");
190
- }
191
- return LpRegistry.fromJSONField(json);
192
- };
193
- LpRegistry.fromSuiParsedData = function (content) {
194
- if (content.dataType !== "moveObject") {
195
- throw new Error("not an object");
196
- }
197
- if (!isLpRegistry(content.type)) {
198
- throw new Error("object at ".concat(content.fields.id, " is not a LpRegistry object"));
199
- }
200
- return LpRegistry.fromFieldsWithTypes(content);
201
- };
202
- LpRegistry.fromSuiObjectData = function (data) {
203
- if (data.bcs) {
204
- if (data.bcs.dataType !== "moveObject" || !isLpRegistry(data.bcs.type)) {
205
- throw new Error("object at is not a LpRegistry object");
206
- }
207
- return LpRegistry.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
208
- }
209
- if (data.content) {
210
- return LpRegistry.fromSuiParsedData(data.content);
211
- }
212
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
213
- };
214
- LpRegistry.fetch = function (client, id) {
215
- return __awaiter(this, void 0, void 0, function () {
216
- var res;
217
- var _a, _b;
218
- return __generator(this, function (_c) {
219
- switch (_c.label) {
220
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
221
- case 1:
222
- res = _c.sent();
223
- if (res.error) {
224
- throw new Error("error fetching LpRegistry object at id ".concat(id, ": ").concat(res.error.code));
225
- }
226
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLpRegistry(res.data.bcs.type)) {
227
- throw new Error("object at id ".concat(id, " is not a LpRegistry object"));
228
- }
229
- return [2 /*return*/, LpRegistry.fromSuiObjectData(res.data)];
230
- }
231
- });
232
- });
233
- };
234
- LpRegistry.$typeName = "".concat(index_1.PKG_V1, "::tlp::LpRegistry");
235
- LpRegistry.$numTypeParams = 0;
236
- LpRegistry.$isPhantom = [];
237
- return LpRegistry;
238
- }());
239
- exports.LpRegistry = LpRegistry;
240
- /* ============================== TLP =============================== */
241
- function isTLP(type) {
242
- type = (0, util_1.compressSuiType)(type);
243
- return type === "".concat(index_1.PKG_V1, "::tlp::TLP");
244
- }
245
- var TLP = /** @class */ (function () {
246
- function TLP(typeArgs, fields) {
247
- this.__StructClass = true;
248
- this.$typeName = TLP.$typeName;
249
- this.$isPhantom = TLP.$isPhantom;
250
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TLP.$typeName], __read(typeArgs), false));
251
- this.$typeArgs = typeArgs;
252
- this.dummyField = fields.dummyField;
253
- }
254
- TLP.reified = function () {
255
- var _this = this;
256
- return {
257
- typeName: TLP.$typeName,
258
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TLP.$typeName], [], false)),
259
- typeArgs: [],
260
- isPhantom: TLP.$isPhantom,
261
- reifiedTypeArgs: [],
262
- fromFields: function (fields) { return TLP.fromFields(fields); },
263
- fromFieldsWithTypes: function (item) { return TLP.fromFieldsWithTypes(item); },
264
- fromBcs: function (data) { return TLP.fromBcs(data); },
265
- bcs: TLP.bcs,
266
- fromJSONField: function (field) { return TLP.fromJSONField(field); },
267
- fromJSON: function (json) { return TLP.fromJSON(json); },
268
- fromSuiParsedData: function (content) { return TLP.fromSuiParsedData(content); },
269
- fromSuiObjectData: function (content) { return TLP.fromSuiObjectData(content); },
270
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
271
- return [2 /*return*/, TLP.fetch(client, id)];
272
- }); }); },
273
- new: function (fields) {
274
- return new TLP([], fields);
275
- },
276
- kind: "StructClassReified",
277
- };
278
- };
279
- Object.defineProperty(TLP, "r", {
280
- get: function () {
281
- return TLP.reified();
282
- },
283
- enumerable: false,
284
- configurable: true
285
- });
286
- TLP.phantom = function () {
287
- return (0, reified_1.phantom)(TLP.reified());
288
- };
289
- Object.defineProperty(TLP, "p", {
290
- get: function () {
291
- return TLP.phantom();
292
- },
293
- enumerable: false,
294
- configurable: true
295
- });
296
- Object.defineProperty(TLP, "bcs", {
297
- get: function () {
298
- return bcs_1.bcs.struct("TLP", {
299
- dummy_field: bcs_1.bcs.bool(),
300
- });
301
- },
302
- enumerable: false,
303
- configurable: true
304
- });
305
- TLP.fromFields = function (fields) {
306
- return TLP.reified().new({ dummyField: (0, reified_1.decodeFromFields)("bool", fields.dummy_field) });
307
- };
308
- TLP.fromFieldsWithTypes = function (item) {
309
- if (!isTLP(item.type)) {
310
- throw new Error("not a TLP type");
311
- }
312
- return TLP.reified().new({ dummyField: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.dummy_field) });
313
- };
314
- TLP.fromBcs = function (data) {
315
- return TLP.fromFields(TLP.bcs.parse(data));
316
- };
317
- TLP.prototype.toJSONField = function () {
318
- return {
319
- dummyField: this.dummyField,
320
- };
321
- };
322
- TLP.prototype.toJSON = function () {
323
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
324
- };
325
- TLP.fromJSONField = function (field) {
326
- return TLP.reified().new({ dummyField: (0, reified_1.decodeFromJSONField)("bool", field.dummyField) });
327
- };
328
- TLP.fromJSON = function (json) {
329
- if (json.$typeName !== TLP.$typeName) {
330
- throw new Error("not a WithTwoGenerics json object");
331
- }
332
- return TLP.fromJSONField(json);
333
- };
334
- TLP.fromSuiParsedData = function (content) {
335
- if (content.dataType !== "moveObject") {
336
- throw new Error("not an object");
337
- }
338
- if (!isTLP(content.type)) {
339
- throw new Error("object at ".concat(content.fields.id, " is not a TLP object"));
340
- }
341
- return TLP.fromFieldsWithTypes(content);
342
- };
343
- TLP.fromSuiObjectData = function (data) {
344
- if (data.bcs) {
345
- if (data.bcs.dataType !== "moveObject" || !isTLP(data.bcs.type)) {
346
- throw new Error("object at is not a TLP object");
347
- }
348
- return TLP.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
349
- }
350
- if (data.content) {
351
- return TLP.fromSuiParsedData(data.content);
352
- }
353
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
354
- };
355
- TLP.fetch = function (client, id) {
356
- return __awaiter(this, void 0, void 0, function () {
357
- var res;
358
- var _a, _b;
359
- return __generator(this, function (_c) {
360
- switch (_c.label) {
361
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
362
- case 1:
363
- res = _c.sent();
364
- if (res.error) {
365
- throw new Error("error fetching TLP object at id ".concat(id, ": ").concat(res.error.code));
366
- }
367
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTLP(res.data.bcs.type)) {
368
- throw new Error("object at id ".concat(id, " is not a TLP object"));
369
- }
370
- return [2 /*return*/, TLP.fromSuiObjectData(res.data)];
371
- }
372
- });
373
- });
374
- };
375
- TLP.$typeName = "".concat(index_1.PKG_V1, "::tlp::TLP");
376
- TLP.$numTypeParams = 0;
377
- TLP.$isPhantom = [];
378
- return TLP;
379
- }());
380
- exports.TLP = TLP;
381
- var $moduleName = "@typus/perp::escrow";
382
- var MoveStruct = /** @class */ (function (_super) {
383
- __extends(MoveStruct, _super);
384
- function MoveStruct() {
385
- return _super !== null && _super.apply(this, arguments) || this;
386
- }
387
- return MoveStruct;
388
- }(bcs_1.BcsStruct));
389
- exports.MoveStruct = MoveStruct;
390
- exports.UnsettledBidReceipt = new MoveStruct({
391
- name: "".concat($moduleName, "::UnsettledBidReceipt"),
392
- fields: {
393
- /** A vector of `TypusBidReceipt` structs. */
394
- receipt: bcs_1.bcs.vector(bcs_1.bcs.Bool),
395
- /** The ID of the position. */
396
- position_id: bcs_1.bcs.u64(),
397
- /** The address of the user. */
398
- user: bcs_1.bcs.Address,
399
- /** A vector of the token types. */
400
- token_types: bcs_1.bcs.vector(bcs_1.bcs.Bool),
401
- /** The sign of the unrealized PNL. */
402
- unrealized_pnl_sign: bcs_1.bcs.bool(),
403
- /** The unrealized PNL. */
404
- unrealized_pnl: bcs_1.bcs.u64(),
405
- /** The unrealized trading fee. */
406
- unrealized_trading_fee: bcs_1.bcs.u64(),
407
- /** The unrealized borrow fee. */
408
- unrealized_borrow_fee: bcs_1.bcs.u64(),
409
- /** The sign of the unrealized funding fee. */
410
- unrealized_funding_fee_sign: bcs_1.bcs.bool(),
411
- /** The unrealized funding fee. */
412
- unrealized_funding_fee: bcs_1.bcs.u64(),
413
- /** The unrealized liquidator fee. */
414
- unrealized_liquidator_fee: bcs_1.bcs.u64(),
415
- },
416
- });
@@ -1,11 +0,0 @@
1
- import { Transaction, TransactionArgument, TransactionObjectInput } from "@mysten/sui/transactions";
2
- export interface BurnArgs {
3
- treasuryCap: TransactionObjectInput;
4
- coin: TransactionObjectInput;
5
- }
6
- export declare function burn(tx: Transaction, typeArg: string, args: BurnArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
7
- export interface MintArgs {
8
- treasuryCap: TransactionObjectInput;
9
- value: bigint | TransactionArgument;
10
- }
11
- export declare function mint(tx: Transaction, typeArg: string, args: MintArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.burn = burn;
4
- exports.mint = mint;
5
- var __1 = require("..");
6
- var util_1 = require("../../_framework/util");
7
- function burn(tx, typeArg, args, published_at) {
8
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
9
- return tx.moveCall({
10
- target: "".concat(published_at, "::token_interface::burn"),
11
- typeArguments: [typeArg],
12
- arguments: [(0, util_1.obj)(tx, args.treasuryCap), (0, util_1.obj)(tx, args.coin)],
13
- });
14
- }
15
- function mint(tx, typeArg, args, published_at) {
16
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
17
- return tx.moveCall({
18
- target: "".concat(published_at, "::token_interface::mint"),
19
- typeArguments: [typeArg],
20
- arguments: [(0, util_1.obj)(tx, args.treasuryCap), (0, util_1.pure)(tx, args.value, "u64")],
21
- });
22
- }