@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
@@ -0,0 +1,1853 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * The `lp_pool` module is the heart of the TLP (Typus Liquidity Pool) logic. It
6
+ * defines the structures for liquidity pools, token pools, and their
7
+ * configurations. It also contains the entry functions for creating pools, adding
8
+ * liquidity, swapping, and redeeming.
9
+ */
10
+ import { MoveStruct, type RawTransactionArgument } from "../utils/index";
11
+ import { type Transaction } from "@mysten/sui/transactions";
12
+ export declare const Registry: MoveStruct<{
13
+ id: MoveStruct<{
14
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
15
+ }, "0x2::object::UID">;
16
+ /** The number of pools in the registry. */
17
+ num_pool: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
18
+ /** The UID of the liquidity pool registry. */
19
+ liquidity_pool_registry: MoveStruct<{
20
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
21
+ }, "0x2::object::UID">;
22
+ }, "@typus/perp::lp_pool::Registry">;
23
+ export declare const SpotConfig: MoveStruct<{
24
+ /** The minimum deposit amount. */
25
+ min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
26
+ /** The maximum capacity of the pool. */
27
+ max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
28
+ /** The target weight of the token in the pool in basis points. */
29
+ target_weight_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
30
+ /** The basic mint fee in basis points. */
31
+ basic_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
32
+ /** The additional mint fee in basis points. */
33
+ additional_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
34
+ /** The basic burn fee in basis points. */
35
+ basic_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
36
+ /** The additional burn fee in basis points. */
37
+ additional_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
38
+ /** The swap fee in basis points. */
39
+ swap_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
40
+ /** The protocol's share of the swap fee in basis points. */
41
+ swap_fee_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
42
+ /** The protocol's share of the lending interest in basis points. */
43
+ lending_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
44
+ /** Padding for future use. */
45
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
46
+ length: number;
47
+ }, string>;
48
+ }, "@typus/perp::lp_pool::SpotConfig">;
49
+ export declare const MarginConfig: MoveStruct<{
50
+ /** The basic borrow rate at utilization 0. */
51
+ basic_borrow_rate_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
52
+ /** The basic borrow rate at utilization 1. */
53
+ basic_borrow_rate_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
54
+ /** The basic borrow rate at utilization 2. */
55
+ basic_borrow_rate_2: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
56
+ /** The utilization threshold 0 in basis points. */
57
+ utilization_threshold_bp_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
58
+ /** The utilization threshold 1 in basis points. */
59
+ utilization_threshold_bp_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
60
+ /** The borrow interval in milliseconds. */
61
+ borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
62
+ /** The maximum order reserve ratio in basis points. */
63
+ max_order_reserve_ratio_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
64
+ /** Padding for future use. */
65
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
66
+ length: number;
67
+ }, string>;
68
+ }, "@typus/perp::lp_pool::MarginConfig">;
69
+ export declare const Config: MoveStruct<{
70
+ /** The address of the oracle. */
71
+ oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
72
+ /** The number of decimals for the liquidity token. */
73
+ liquidity_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
74
+ /** The spot-related configuration for the token pool. */
75
+ spot_config: MoveStruct<{
76
+ /** The minimum deposit amount. */
77
+ min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
78
+ /** The maximum capacity of the pool. */
79
+ max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
80
+ /** The target weight of the token in the pool in basis points. */
81
+ target_weight_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
82
+ /** The basic mint fee in basis points. */
83
+ basic_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
84
+ /** The additional mint fee in basis points. */
85
+ additional_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
86
+ /** The basic burn fee in basis points. */
87
+ basic_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
88
+ /** The additional burn fee in basis points. */
89
+ additional_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
90
+ /** The swap fee in basis points. */
91
+ swap_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
92
+ /** The protocol's share of the swap fee in basis points. */
93
+ swap_fee_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
94
+ /** The protocol's share of the lending interest in basis points. */
95
+ lending_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
96
+ /** Padding for future use. */
97
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
98
+ length: number;
99
+ }, string>;
100
+ }, "@typus/perp::lp_pool::SpotConfig">;
101
+ /** The margin-related configuration for the token pool. */
102
+ margin_config: MoveStruct<{
103
+ /** The basic borrow rate at utilization 0. */
104
+ basic_borrow_rate_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
105
+ /** The basic borrow rate at utilization 1. */
106
+ basic_borrow_rate_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
107
+ /** The basic borrow rate at utilization 2. */
108
+ basic_borrow_rate_2: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
109
+ /** The utilization threshold 0 in basis points. */
110
+ utilization_threshold_bp_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
111
+ /** The utilization threshold 1 in basis points. */
112
+ utilization_threshold_bp_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
113
+ /** The borrow interval in milliseconds. */
114
+ borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
115
+ /** The maximum order reserve ratio in basis points. */
116
+ max_order_reserve_ratio_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
117
+ /** Padding for future use. */
118
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
119
+ length: number;
120
+ }, string>;
121
+ }, "@typus/perp::lp_pool::MarginConfig">;
122
+ /** Padding for future use. */
123
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
124
+ length: number;
125
+ }, string>;
126
+ }, "@typus/perp::lp_pool::Config">;
127
+ export declare const State: MoveStruct<{
128
+ /** The amount of liquidity in the pool. */
129
+ liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
130
+ /** The value of the liquidity in USD. */
131
+ value_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
132
+ /** The amount of liquidity reserved for open positions. */
133
+ reserved_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
134
+ /** The timestamp of the last update to the value_in_usd. */
135
+ update_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
136
+ /** Whether the token pool is active. */
137
+ is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
138
+ /** The timestamp of the last borrow rate calculation. */
139
+ last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
140
+ /** The cumulative borrow rate. */
141
+ cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
142
+ /** The previous timestamp of the last borrow rate calculation. */
143
+ previous_last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
144
+ /** The previous cumulative borrow rate. */
145
+ previous_cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
146
+ /** The current lending amount. */
147
+ current_lending_amount: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
148
+ length: number;
149
+ }, string>;
150
+ /** Padding for future use. */
151
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
152
+ length: number;
153
+ }, string>;
154
+ }, "@typus/perp::lp_pool::State">;
155
+ export declare const TokenPool: MoveStruct<{
156
+ /** The type name of the token. */
157
+ token_type: MoveStruct<{
158
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
159
+ }, "std::type_name::TypeName">;
160
+ /** The configuration for the token pool. */
161
+ config: MoveStruct<{
162
+ /** The address of the oracle. */
163
+ oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
164
+ /** The number of decimals for the liquidity token. */
165
+ liquidity_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
166
+ /** The spot-related configuration for the token pool. */
167
+ spot_config: MoveStruct<{
168
+ /** The minimum deposit amount. */
169
+ min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
170
+ /** The maximum capacity of the pool. */
171
+ max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
172
+ /** The target weight of the token in the pool in basis points. */
173
+ target_weight_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
174
+ /** The basic mint fee in basis points. */
175
+ basic_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
176
+ /** The additional mint fee in basis points. */
177
+ additional_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
178
+ /** The basic burn fee in basis points. */
179
+ basic_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
180
+ /** The additional burn fee in basis points. */
181
+ additional_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
182
+ /** The swap fee in basis points. */
183
+ swap_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
184
+ /** The protocol's share of the swap fee in basis points. */
185
+ swap_fee_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
186
+ /** The protocol's share of the lending interest in basis points. */
187
+ lending_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
188
+ /** Padding for future use. */
189
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
190
+ length: number;
191
+ }, string>;
192
+ }, "@typus/perp::lp_pool::SpotConfig">;
193
+ /** The margin-related configuration for the token pool. */
194
+ margin_config: MoveStruct<{
195
+ /** The basic borrow rate at utilization 0. */
196
+ basic_borrow_rate_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
197
+ /** The basic borrow rate at utilization 1. */
198
+ basic_borrow_rate_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
199
+ /** The basic borrow rate at utilization 2. */
200
+ basic_borrow_rate_2: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
201
+ /** The utilization threshold 0 in basis points. */
202
+ utilization_threshold_bp_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
203
+ /** The utilization threshold 1 in basis points. */
204
+ utilization_threshold_bp_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
205
+ /** The borrow interval in milliseconds. */
206
+ borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
207
+ /** The maximum order reserve ratio in basis points. */
208
+ max_order_reserve_ratio_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
209
+ /** Padding for future use. */
210
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
211
+ length: number;
212
+ }, string>;
213
+ }, "@typus/perp::lp_pool::MarginConfig">;
214
+ /** Padding for future use. */
215
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
216
+ length: number;
217
+ }, string>;
218
+ }, "@typus/perp::lp_pool::Config">;
219
+ /** The state of the token pool. */
220
+ state: MoveStruct<{
221
+ /** The amount of liquidity in the pool. */
222
+ liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
223
+ /** The value of the liquidity in USD. */
224
+ value_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
225
+ /** The amount of liquidity reserved for open positions. */
226
+ reserved_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
227
+ /** The timestamp of the last update to the value_in_usd. */
228
+ update_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
229
+ /** Whether the token pool is active. */
230
+ is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
231
+ /** The timestamp of the last borrow rate calculation. */
232
+ last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
233
+ /** The cumulative borrow rate. */
234
+ cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
235
+ /** The previous timestamp of the last borrow rate calculation. */
236
+ previous_last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
237
+ /** The previous cumulative borrow rate. */
238
+ previous_cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
239
+ /** The current lending amount. */
240
+ current_lending_amount: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
241
+ length: number;
242
+ }, string>;
243
+ /** Padding for future use. */
244
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
245
+ length: number;
246
+ }, string>;
247
+ }, "@typus/perp::lp_pool::State">;
248
+ }, "@typus/perp::lp_pool::TokenPool">;
249
+ export declare const LiquidityPoolInfo: MoveStruct<{
250
+ /** The number of decimals for the LP token. */
251
+ lp_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
252
+ /** The total supply of LP tokens. */
253
+ total_share_supply: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
254
+ /** The total value locked in the pool in USD. */
255
+ tvl_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
256
+ /** Whether the pool is active. */
257
+ is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
258
+ }, "@typus/perp::lp_pool::LiquidityPoolInfo">;
259
+ export declare const LiquidityPool: MoveStruct<{
260
+ /**
261
+ * The UID of the object. Token balances are dynamic fields under this id with
262
+ * TypeName key.
263
+ */
264
+ id: MoveStruct<{
265
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
266
+ }, "0x2::object::UID">;
267
+ /** The index of the pool. */
268
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
269
+ /** The type name of the LP token. */
270
+ lp_token_type: MoveStruct<{
271
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
272
+ }, "std::type_name::TypeName">;
273
+ /** A vector of the type names of the liquidity tokens. */
274
+ liquidity_tokens: import("@mysten/sui/bcs").BcsType<{
275
+ name: string;
276
+ }[], Iterable<{
277
+ name: string;
278
+ }> & {
279
+ length: number;
280
+ }, string>;
281
+ /** A vector of the token pools. */
282
+ token_pools: import("@mysten/sui/bcs").BcsType<{
283
+ token_type: {
284
+ name: string;
285
+ };
286
+ config: {
287
+ oracle_id: string;
288
+ liquidity_token_decimal: string;
289
+ spot_config: {
290
+ min_deposit: string;
291
+ max_capacity: string;
292
+ target_weight_bp: string;
293
+ basic_mint_fee_bp: string;
294
+ additional_mint_fee_bp: string;
295
+ basic_burn_fee_bp: string;
296
+ additional_burn_fee_bp: string;
297
+ swap_fee_bp: string;
298
+ swap_fee_protocol_share_bp: string;
299
+ lending_protocol_share_bp: string;
300
+ u64_padding: string[];
301
+ };
302
+ margin_config: {
303
+ basic_borrow_rate_0: string;
304
+ basic_borrow_rate_1: string;
305
+ basic_borrow_rate_2: string;
306
+ utilization_threshold_bp_0: string;
307
+ utilization_threshold_bp_1: string;
308
+ borrow_interval_ts_ms: string;
309
+ max_order_reserve_ratio_bp: string;
310
+ u64_padding: string[];
311
+ };
312
+ u64_padding: string[];
313
+ };
314
+ state: {
315
+ liquidity_amount: string;
316
+ value_in_usd: string;
317
+ reserved_amount: string;
318
+ update_ts_ms: string;
319
+ is_active: boolean;
320
+ last_borrow_rate_ts_ms: string;
321
+ cumulative_borrow_rate: string;
322
+ previous_last_borrow_rate_ts_ms: string;
323
+ previous_cumulative_borrow_rate: string;
324
+ current_lending_amount: string[];
325
+ u64_padding: string[];
326
+ };
327
+ }[], Iterable<{
328
+ token_type: {
329
+ name: string;
330
+ };
331
+ config: {
332
+ oracle_id: string | Uint8Array<ArrayBufferLike>;
333
+ liquidity_token_decimal: string | number | bigint;
334
+ spot_config: {
335
+ min_deposit: string | number | bigint;
336
+ max_capacity: string | number | bigint;
337
+ target_weight_bp: string | number | bigint;
338
+ basic_mint_fee_bp: string | number | bigint;
339
+ additional_mint_fee_bp: string | number | bigint;
340
+ basic_burn_fee_bp: string | number | bigint;
341
+ additional_burn_fee_bp: string | number | bigint;
342
+ swap_fee_bp: string | number | bigint;
343
+ swap_fee_protocol_share_bp: string | number | bigint;
344
+ lending_protocol_share_bp: string | number | bigint;
345
+ u64_padding: Iterable<string | number | bigint> & {
346
+ length: number;
347
+ };
348
+ };
349
+ margin_config: {
350
+ basic_borrow_rate_0: string | number | bigint;
351
+ basic_borrow_rate_1: string | number | bigint;
352
+ basic_borrow_rate_2: string | number | bigint;
353
+ utilization_threshold_bp_0: string | number | bigint;
354
+ utilization_threshold_bp_1: string | number | bigint;
355
+ borrow_interval_ts_ms: string | number | bigint;
356
+ max_order_reserve_ratio_bp: string | number | bigint;
357
+ u64_padding: Iterable<string | number | bigint> & {
358
+ length: number;
359
+ };
360
+ };
361
+ u64_padding: Iterable<string | number | bigint> & {
362
+ length: number;
363
+ };
364
+ };
365
+ state: {
366
+ liquidity_amount: string | number | bigint;
367
+ value_in_usd: string | number | bigint;
368
+ reserved_amount: string | number | bigint;
369
+ update_ts_ms: string | number | bigint;
370
+ is_active: boolean;
371
+ last_borrow_rate_ts_ms: string | number | bigint;
372
+ cumulative_borrow_rate: string | number | bigint;
373
+ previous_last_borrow_rate_ts_ms: string | number | bigint;
374
+ previous_cumulative_borrow_rate: string | number | bigint;
375
+ current_lending_amount: Iterable<string | number | bigint> & {
376
+ length: number;
377
+ };
378
+ u64_padding: Iterable<string | number | bigint> & {
379
+ length: number;
380
+ };
381
+ };
382
+ }> & {
383
+ length: number;
384
+ }, string>;
385
+ /** Information about the liquidity pool. */
386
+ pool_info: MoveStruct<{
387
+ /** The number of decimals for the LP token. */
388
+ lp_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
389
+ /** The total supply of LP tokens. */
390
+ total_share_supply: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
391
+ /** The total value locked in the pool in USD. */
392
+ tvl_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
393
+ /** Whether the pool is active. */
394
+ is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
395
+ }, "@typus/perp::lp_pool::LiquidityPoolInfo">;
396
+ /** A vector of unsettled bid receipts from liquidations. */
397
+ liquidated_unsettled_receipts: import("@mysten/sui/bcs").BcsType<{
398
+ receipt: {
399
+ id: {
400
+ id: string;
401
+ };
402
+ vid: string;
403
+ index: string;
404
+ metadata: string;
405
+ u64_padding: string[];
406
+ }[];
407
+ position_id: string;
408
+ user: string;
409
+ token_types: {
410
+ name: string;
411
+ }[];
412
+ unrealized_pnl_sign: boolean;
413
+ unrealized_pnl: string;
414
+ unrealized_trading_fee: string;
415
+ unrealized_borrow_fee: string;
416
+ unrealized_funding_fee_sign: boolean;
417
+ unrealized_funding_fee: string;
418
+ unrealized_liquidator_fee: string;
419
+ }[], Iterable<{
420
+ receipt: Iterable<{
421
+ id: {
422
+ id: string | Uint8Array<ArrayBufferLike>;
423
+ };
424
+ vid: string | Uint8Array<ArrayBufferLike>;
425
+ index: string | number | bigint;
426
+ metadata: string;
427
+ u64_padding: Iterable<string | number | bigint> & {
428
+ length: number;
429
+ };
430
+ }> & {
431
+ length: number;
432
+ };
433
+ position_id: string | number | bigint;
434
+ user: string | Uint8Array<ArrayBufferLike>;
435
+ token_types: Iterable<{
436
+ name: string;
437
+ }> & {
438
+ length: number;
439
+ };
440
+ unrealized_pnl_sign: boolean;
441
+ unrealized_pnl: string | number | bigint;
442
+ unrealized_trading_fee: string | number | bigint;
443
+ unrealized_borrow_fee: string | number | bigint;
444
+ unrealized_funding_fee_sign: boolean;
445
+ unrealized_funding_fee: string | number | bigint;
446
+ unrealized_liquidator_fee: string | number | bigint;
447
+ }> & {
448
+ length: number;
449
+ }, string>;
450
+ /** Padding for future use. */
451
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
452
+ length: number;
453
+ }, string>;
454
+ /** Padding for future use. */
455
+ bcs_padding: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
456
+ length: number;
457
+ }, string>;
458
+ }, "@typus/perp::lp_pool::LiquidityPool">;
459
+ export declare const DeactivatingShares: MoveStruct<{
460
+ /** The balance of the deactivating shares. */
461
+ balance: MoveStruct<{
462
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
463
+ }, "0x2::balance::Balance">;
464
+ /** The timestamp of the redemption. */
465
+ redeem_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
466
+ /** The timestamp when the shares can be unlocked. */
467
+ unlock_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
468
+ /** Padding for future use. */
469
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
470
+ length: number;
471
+ }, string>;
472
+ }, "@typus/perp::lp_pool::DeactivatingShares">;
473
+ export declare const ManagerDepositReceipt: MoveStruct<{
474
+ id: MoveStruct<{
475
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
476
+ }, "0x2::object::UID">;
477
+ /** The index of the pool. */
478
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
479
+ /** The type name of the token. */
480
+ token_type: MoveStruct<{
481
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
482
+ }, "std::type_name::TypeName">;
483
+ /** The amount of the deposit. */
484
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
485
+ /** Padding for future use. */
486
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
487
+ length: number;
488
+ }, string>;
489
+ }, "@typus/perp::lp_pool::ManagerDepositReceipt">;
490
+ export declare const NewLiquidityPoolEvent: MoveStruct<{
491
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
492
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
493
+ lp_token_type: MoveStruct<{
494
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
495
+ }, "std::type_name::TypeName">;
496
+ lp_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
497
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
498
+ length: number;
499
+ }, string>;
500
+ }, "@typus/perp::lp_pool::NewLiquidityPoolEvent">;
501
+ export declare const UpdateUnlockCountdownTsMsEvent: MoveStruct<{
502
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
503
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
504
+ previous_unlock_countdown_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
505
+ new_unlock_countdown_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
506
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
507
+ length: number;
508
+ }, string>;
509
+ }, "@typus/perp::lp_pool::UpdateUnlockCountdownTsMsEvent">;
510
+ export declare const UpdateRebalanceCostThresholdBpEvent: MoveStruct<{
511
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
512
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
513
+ previous_rebalance_cost_threshold_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
514
+ new_rebalance_cost_threshold_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
515
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
516
+ length: number;
517
+ }, string>;
518
+ }, "@typus/perp::lp_pool::UpdateRebalanceCostThresholdBpEvent">;
519
+ export declare const AddLiquidityTokenEvent: MoveStruct<{
520
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
521
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
522
+ token_type: MoveStruct<{
523
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
524
+ }, "std::type_name::TypeName">;
525
+ config: MoveStruct<{
526
+ /** The address of the oracle. */
527
+ oracle_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
528
+ /** The number of decimals for the liquidity token. */
529
+ liquidity_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
530
+ /** The spot-related configuration for the token pool. */
531
+ spot_config: MoveStruct<{
532
+ /** The minimum deposit amount. */
533
+ min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
534
+ /** The maximum capacity of the pool. */
535
+ max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
536
+ /** The target weight of the token in the pool in basis points. */
537
+ target_weight_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
538
+ /** The basic mint fee in basis points. */
539
+ basic_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
540
+ /** The additional mint fee in basis points. */
541
+ additional_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
542
+ /** The basic burn fee in basis points. */
543
+ basic_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
544
+ /** The additional burn fee in basis points. */
545
+ additional_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
546
+ /** The swap fee in basis points. */
547
+ swap_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
548
+ /** The protocol's share of the swap fee in basis points. */
549
+ swap_fee_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
550
+ /** The protocol's share of the lending interest in basis points. */
551
+ lending_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
552
+ /** Padding for future use. */
553
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
554
+ length: number;
555
+ }, string>;
556
+ }, "@typus/perp::lp_pool::SpotConfig">;
557
+ /** The margin-related configuration for the token pool. */
558
+ margin_config: MoveStruct<{
559
+ /** The basic borrow rate at utilization 0. */
560
+ basic_borrow_rate_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
561
+ /** The basic borrow rate at utilization 1. */
562
+ basic_borrow_rate_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
563
+ /** The basic borrow rate at utilization 2. */
564
+ basic_borrow_rate_2: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
565
+ /** The utilization threshold 0 in basis points. */
566
+ utilization_threshold_bp_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
567
+ /** The utilization threshold 1 in basis points. */
568
+ utilization_threshold_bp_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
569
+ /** The borrow interval in milliseconds. */
570
+ borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
571
+ /** The maximum order reserve ratio in basis points. */
572
+ max_order_reserve_ratio_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
573
+ /** Padding for future use. */
574
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
575
+ length: number;
576
+ }, string>;
577
+ }, "@typus/perp::lp_pool::MarginConfig">;
578
+ /** Padding for future use. */
579
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
580
+ length: number;
581
+ }, string>;
582
+ }, "@typus/perp::lp_pool::Config">;
583
+ state: MoveStruct<{
584
+ /** The amount of liquidity in the pool. */
585
+ liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
586
+ /** The value of the liquidity in USD. */
587
+ value_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
588
+ /** The amount of liquidity reserved for open positions. */
589
+ reserved_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
590
+ /** The timestamp of the last update to the value_in_usd. */
591
+ update_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
592
+ /** Whether the token pool is active. */
593
+ is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
594
+ /** The timestamp of the last borrow rate calculation. */
595
+ last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
596
+ /** The cumulative borrow rate. */
597
+ cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
598
+ /** The previous timestamp of the last borrow rate calculation. */
599
+ previous_last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
600
+ /** The previous cumulative borrow rate. */
601
+ previous_cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
602
+ /** The current lending amount. */
603
+ current_lending_amount: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
604
+ length: number;
605
+ }, string>;
606
+ /** Padding for future use. */
607
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
608
+ length: number;
609
+ }, string>;
610
+ }, "@typus/perp::lp_pool::State">;
611
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
612
+ length: number;
613
+ }, string>;
614
+ }, "@typus/perp::lp_pool::AddLiquidityTokenEvent">;
615
+ export declare const UpdateSpotConfigEvent: MoveStruct<{
616
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
617
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
618
+ liquidity_token_type: MoveStruct<{
619
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
620
+ }, "std::type_name::TypeName">;
621
+ previous_spot_config: MoveStruct<{
622
+ /** The minimum deposit amount. */
623
+ min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
624
+ /** The maximum capacity of the pool. */
625
+ max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
626
+ /** The target weight of the token in the pool in basis points. */
627
+ target_weight_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
628
+ /** The basic mint fee in basis points. */
629
+ basic_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
630
+ /** The additional mint fee in basis points. */
631
+ additional_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
632
+ /** The basic burn fee in basis points. */
633
+ basic_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
634
+ /** The additional burn fee in basis points. */
635
+ additional_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
636
+ /** The swap fee in basis points. */
637
+ swap_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
638
+ /** The protocol's share of the swap fee in basis points. */
639
+ swap_fee_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
640
+ /** The protocol's share of the lending interest in basis points. */
641
+ lending_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
642
+ /** Padding for future use. */
643
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
644
+ length: number;
645
+ }, string>;
646
+ }, "@typus/perp::lp_pool::SpotConfig">;
647
+ new_spot_config: MoveStruct<{
648
+ /** The minimum deposit amount. */
649
+ min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
650
+ /** The maximum capacity of the pool. */
651
+ max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
652
+ /** The target weight of the token in the pool in basis points. */
653
+ target_weight_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
654
+ /** The basic mint fee in basis points. */
655
+ basic_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
656
+ /** The additional mint fee in basis points. */
657
+ additional_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
658
+ /** The basic burn fee in basis points. */
659
+ basic_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
660
+ /** The additional burn fee in basis points. */
661
+ additional_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
662
+ /** The swap fee in basis points. */
663
+ swap_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
664
+ /** The protocol's share of the swap fee in basis points. */
665
+ swap_fee_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
666
+ /** The protocol's share of the lending interest in basis points. */
667
+ lending_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
668
+ /** Padding for future use. */
669
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
670
+ length: number;
671
+ }, string>;
672
+ }, "@typus/perp::lp_pool::SpotConfig">;
673
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
674
+ length: number;
675
+ }, string>;
676
+ }, "@typus/perp::lp_pool::UpdateSpotConfigEvent">;
677
+ export declare const ManagerEmergencyDepositEvent: MoveStruct<{
678
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
679
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
680
+ liquidity_token_type: MoveStruct<{
681
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
682
+ }, "std::type_name::TypeName">;
683
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
684
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
685
+ length: number;
686
+ }, string>;
687
+ }, "@typus/perp::lp_pool::ManagerEmergencyDepositEvent">;
688
+ export declare const ManagerEmergencyWithdrawEvent: MoveStruct<{
689
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
690
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
691
+ liquidity_token_type: MoveStruct<{
692
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
693
+ }, "std::type_name::TypeName">;
694
+ amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
695
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
696
+ length: number;
697
+ }, string>;
698
+ }, "@typus/perp::lp_pool::ManagerEmergencyWithdrawEvent">;
699
+ export declare const UpdateMarginConfigEvent: MoveStruct<{
700
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
701
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
702
+ liquidity_token_type: MoveStruct<{
703
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
704
+ }, "std::type_name::TypeName">;
705
+ previous_margin_config: MoveStruct<{
706
+ /** The basic borrow rate at utilization 0. */
707
+ basic_borrow_rate_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
708
+ /** The basic borrow rate at utilization 1. */
709
+ basic_borrow_rate_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
710
+ /** The basic borrow rate at utilization 2. */
711
+ basic_borrow_rate_2: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
712
+ /** The utilization threshold 0 in basis points. */
713
+ utilization_threshold_bp_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
714
+ /** The utilization threshold 1 in basis points. */
715
+ utilization_threshold_bp_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
716
+ /** The borrow interval in milliseconds. */
717
+ borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
718
+ /** The maximum order reserve ratio in basis points. */
719
+ max_order_reserve_ratio_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
720
+ /** Padding for future use. */
721
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
722
+ length: number;
723
+ }, string>;
724
+ }, "@typus/perp::lp_pool::MarginConfig">;
725
+ new_margin_config: MoveStruct<{
726
+ /** The basic borrow rate at utilization 0. */
727
+ basic_borrow_rate_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
728
+ /** The basic borrow rate at utilization 1. */
729
+ basic_borrow_rate_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
730
+ /** The basic borrow rate at utilization 2. */
731
+ basic_borrow_rate_2: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
732
+ /** The utilization threshold 0 in basis points. */
733
+ utilization_threshold_bp_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
734
+ /** The utilization threshold 1 in basis points. */
735
+ utilization_threshold_bp_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
736
+ /** The borrow interval in milliseconds. */
737
+ borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
738
+ /** The maximum order reserve ratio in basis points. */
739
+ max_order_reserve_ratio_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
740
+ /** Padding for future use. */
741
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
742
+ length: number;
743
+ }, string>;
744
+ }, "@typus/perp::lp_pool::MarginConfig">;
745
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
746
+ length: number;
747
+ }, string>;
748
+ }, "@typus/perp::lp_pool::UpdateMarginConfigEvent">;
749
+ export declare const MintLpEvent: MoveStruct<{
750
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
751
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
752
+ liquidity_token_type: MoveStruct<{
753
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
754
+ }, "std::type_name::TypeName">;
755
+ deposit_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
756
+ deposit_amount_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
757
+ mint_fee_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
758
+ lp_token_type: MoveStruct<{
759
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
760
+ }, "std::type_name::TypeName">;
761
+ minted_lp_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
762
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
763
+ length: number;
764
+ }, string>;
765
+ }, "@typus/perp::lp_pool::MintLpEvent">;
766
+ export declare const UpdateBorrowInfoEvent: MoveStruct<{
767
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
768
+ liquidity_token_type: MoveStruct<{
769
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
770
+ }, "std::type_name::TypeName">;
771
+ previous_borrow_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
772
+ previous_cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
773
+ borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
774
+ last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
775
+ last_cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
776
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
777
+ length: number;
778
+ }, string>;
779
+ }, "@typus/perp::lp_pool::UpdateBorrowInfoEvent">;
780
+ export declare const SwapEvent: MoveStruct<{
781
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
782
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
783
+ from_token_type: MoveStruct<{
784
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
785
+ }, "std::type_name::TypeName">;
786
+ from_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
787
+ to_token_type: MoveStruct<{
788
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
789
+ }, "std::type_name::TypeName">;
790
+ min_to_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
791
+ actual_to_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
792
+ fee_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
793
+ fee_amount_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
794
+ oracle_price_from_token: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
795
+ oracle_price_to_token: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
796
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
797
+ length: number;
798
+ }, string>;
799
+ }, "@typus/perp::lp_pool::SwapEvent">;
800
+ export declare const RedeemEvent: MoveStruct<{
801
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
802
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
803
+ share: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
804
+ share_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
805
+ timestamp_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
806
+ unlock_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
807
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
808
+ length: number;
809
+ }, string>;
810
+ }, "@typus/perp::lp_pool::RedeemEvent">;
811
+ export declare const SuspendPoolEvent: MoveStruct<{
812
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
813
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
814
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
815
+ length: number;
816
+ }, string>;
817
+ }, "@typus/perp::lp_pool::SuspendPoolEvent">;
818
+ export declare const ResumePoolEvent: MoveStruct<{
819
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
820
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
821
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
822
+ length: number;
823
+ }, string>;
824
+ }, "@typus/perp::lp_pool::ResumePoolEvent">;
825
+ export declare const SuspendTokenPoolEvent: MoveStruct<{
826
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
827
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
828
+ liquidity_token: MoveStruct<{
829
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
830
+ }, "std::type_name::TypeName">;
831
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
832
+ length: number;
833
+ }, string>;
834
+ }, "@typus/perp::lp_pool::SuspendTokenPoolEvent">;
835
+ export declare const ResumeTokenPoolEvent: MoveStruct<{
836
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
837
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
838
+ liquidity_token: MoveStruct<{
839
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
840
+ }, "std::type_name::TypeName">;
841
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
842
+ length: number;
843
+ }, string>;
844
+ }, "@typus/perp::lp_pool::ResumeTokenPoolEvent">;
845
+ export declare const ManagerRemoveLiquidityTokenEvent: MoveStruct<{
846
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
847
+ liquidity_token: MoveStruct<{
848
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
849
+ }, "std::type_name::TypeName">;
850
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
851
+ length: number;
852
+ }, string>;
853
+ }, "@typus/perp::lp_pool::ManagerRemoveLiquidityTokenEvent">;
854
+ export declare const RebalanceProcess: MoveStruct<{
855
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
856
+ token_type_a: MoveStruct<{
857
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
858
+ }, "std::type_name::TypeName">;
859
+ token_decimal_a: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
860
+ token_amount_a: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
861
+ oracle_price_a: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
862
+ reduced_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
863
+ token_type_b: MoveStruct<{
864
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
865
+ }, "std::type_name::TypeName">;
866
+ token_decimal_b: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
867
+ oracle_price_b: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
868
+ }, "@typus/perp::lp_pool::RebalanceProcess">;
869
+ export declare const RebalanceEvent: MoveStruct<{
870
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
871
+ from_token: MoveStruct<{
872
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
873
+ }, "std::type_name::TypeName">;
874
+ to_token: MoveStruct<{
875
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
876
+ }, "std::type_name::TypeName">;
877
+ rebalance_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
878
+ from_token_oracle_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
879
+ to_token_oracle_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
880
+ reduced_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
881
+ tvl_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
882
+ from_token_liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
883
+ to_token_liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
884
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
885
+ length: number;
886
+ }, string>;
887
+ }, "@typus/perp::lp_pool::RebalanceEvent">;
888
+ export declare const CompleteRebalancingEvent: MoveStruct<{
889
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
890
+ from_token: MoveStruct<{
891
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
892
+ }, "std::type_name::TypeName">;
893
+ to_token: MoveStruct<{
894
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
895
+ }, "std::type_name::TypeName">;
896
+ from_token_oracle_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
897
+ to_token_oracle_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
898
+ swapped_back_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
899
+ tvl_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
900
+ from_token_liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
901
+ to_token_liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
902
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
903
+ length: number;
904
+ }, string>;
905
+ }, "@typus/perp::lp_pool::CompleteRebalancingEvent">;
906
+ export declare const UpdateLiquidityValueEvent: MoveStruct<{
907
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
908
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
909
+ liquidity_token: MoveStruct<{
910
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
911
+ }, "std::type_name::TypeName">;
912
+ price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
913
+ value_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
914
+ lp_pool_tvl_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
915
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
916
+ length: number;
917
+ }, string>;
918
+ }, "@typus/perp::lp_pool::UpdateLiquidityValueEvent">;
919
+ export declare const BurnLpEvent: MoveStruct<{
920
+ sender: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
921
+ index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
922
+ lp_token_type: MoveStruct<{
923
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
924
+ }, "std::type_name::TypeName">;
925
+ burn_lp_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
926
+ burn_amount_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
927
+ burn_fee_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
928
+ liquidity_token_type: MoveStruct<{
929
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
930
+ }, "std::type_name::TypeName">;
931
+ withdraw_token_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
932
+ u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
933
+ length: number;
934
+ }, string>;
935
+ }, "@typus/perp::lp_pool::BurnLpEvent">;
936
+ export interface InitOptions {
937
+ package?: string;
938
+ arguments?: [];
939
+ }
940
+ export declare function init(options?: InitOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
941
+ export interface NewLiquidityPoolArguments {
942
+ version: RawTransactionArgument<string>;
943
+ registry: RawTransactionArgument<string>;
944
+ lpTokenDecimal: RawTransactionArgument<number | bigint>;
945
+ unlockCountdownTsMs: RawTransactionArgument<number | bigint>;
946
+ }
947
+ export interface NewLiquidityPoolOptions {
948
+ package?: string;
949
+ arguments: NewLiquidityPoolArguments | [
950
+ version: RawTransactionArgument<string>,
951
+ registry: RawTransactionArgument<string>,
952
+ lpTokenDecimal: RawTransactionArgument<number | bigint>,
953
+ unlockCountdownTsMs: RawTransactionArgument<number | bigint>
954
+ ];
955
+ typeArguments: [string];
956
+ }
957
+ /** [Authorized Function] Creates a new liquidity pool. */
958
+ export declare function newLiquidityPool(options: NewLiquidityPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
959
+ export interface UpdateUnlockCountdownTsMsArguments {
960
+ version: RawTransactionArgument<string>;
961
+ registry: RawTransactionArgument<string>;
962
+ index: RawTransactionArgument<number | bigint>;
963
+ unlockCountdownTsMs: RawTransactionArgument<number | bigint>;
964
+ }
965
+ export interface UpdateUnlockCountdownTsMsOptions {
966
+ package?: string;
967
+ arguments: UpdateUnlockCountdownTsMsArguments | [
968
+ version: RawTransactionArgument<string>,
969
+ registry: RawTransactionArgument<string>,
970
+ index: RawTransactionArgument<number | bigint>,
971
+ unlockCountdownTsMs: RawTransactionArgument<number | bigint>
972
+ ];
973
+ }
974
+ /** [Authorized Function] Updates the unlock countdown. */
975
+ export declare function updateUnlockCountdownTsMs(options: UpdateUnlockCountdownTsMsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
976
+ export interface UpdateRebalanceCostThresholdBpArguments {
977
+ version: RawTransactionArgument<string>;
978
+ registry: RawTransactionArgument<string>;
979
+ index: RawTransactionArgument<number | bigint>;
980
+ rebalanceCostThresholdBp: RawTransactionArgument<number | bigint>;
981
+ }
982
+ export interface UpdateRebalanceCostThresholdBpOptions {
983
+ package?: string;
984
+ arguments: UpdateRebalanceCostThresholdBpArguments | [
985
+ version: RawTransactionArgument<string>,
986
+ registry: RawTransactionArgument<string>,
987
+ index: RawTransactionArgument<number | bigint>,
988
+ rebalanceCostThresholdBp: RawTransactionArgument<number | bigint>
989
+ ];
990
+ }
991
+ /** [Authorized Function] Updates the rebalance cost threshold. */
992
+ export declare function updateRebalanceCostThresholdBp(options: UpdateRebalanceCostThresholdBpOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
993
+ export interface AddLiquidityTokenArguments {
994
+ version: RawTransactionArgument<string>;
995
+ registry: RawTransactionArgument<string>;
996
+ index: RawTransactionArgument<number | bigint>;
997
+ oracle: RawTransactionArgument<string>;
998
+ tokenDecimal: RawTransactionArgument<number | bigint>;
999
+ targetWeightBp: RawTransactionArgument<number | bigint>;
1000
+ minDeposit: RawTransactionArgument<number | bigint>;
1001
+ maxCapacity: RawTransactionArgument<number | bigint>;
1002
+ basicMintFeeBp: RawTransactionArgument<number | bigint>;
1003
+ additionalMintFeeBp: RawTransactionArgument<number | bigint>;
1004
+ basicBurnFeeBp: RawTransactionArgument<number | bigint>;
1005
+ additionalBurnFeeBp: RawTransactionArgument<number | bigint>;
1006
+ swapFeeBp: RawTransactionArgument<number | bigint>;
1007
+ swapFeeProtocolShareBp: RawTransactionArgument<number | bigint>;
1008
+ lendingProtocolShareBp: RawTransactionArgument<number | bigint>;
1009
+ basicBorrowRate_0: RawTransactionArgument<number | bigint>;
1010
+ basicBorrowRate_1: RawTransactionArgument<number | bigint>;
1011
+ basicBorrowRate_2: RawTransactionArgument<number | bigint>;
1012
+ utilizationThresholdBp_0: RawTransactionArgument<number | bigint>;
1013
+ utilizationThresholdBp_1: RawTransactionArgument<number | bigint>;
1014
+ borrowIntervalTsMs: RawTransactionArgument<number | bigint>;
1015
+ maxOrderReserveRatioBp: RawTransactionArgument<number | bigint>;
1016
+ }
1017
+ export interface AddLiquidityTokenOptions {
1018
+ package?: string;
1019
+ arguments: AddLiquidityTokenArguments | [
1020
+ version: RawTransactionArgument<string>,
1021
+ registry: RawTransactionArgument<string>,
1022
+ index: RawTransactionArgument<number | bigint>,
1023
+ oracle: RawTransactionArgument<string>,
1024
+ tokenDecimal: RawTransactionArgument<number | bigint>,
1025
+ targetWeightBp: RawTransactionArgument<number | bigint>,
1026
+ minDeposit: RawTransactionArgument<number | bigint>,
1027
+ maxCapacity: RawTransactionArgument<number | bigint>,
1028
+ basicMintFeeBp: RawTransactionArgument<number | bigint>,
1029
+ additionalMintFeeBp: RawTransactionArgument<number | bigint>,
1030
+ basicBurnFeeBp: RawTransactionArgument<number | bigint>,
1031
+ additionalBurnFeeBp: RawTransactionArgument<number | bigint>,
1032
+ swapFeeBp: RawTransactionArgument<number | bigint>,
1033
+ swapFeeProtocolShareBp: RawTransactionArgument<number | bigint>,
1034
+ lendingProtocolShareBp: RawTransactionArgument<number | bigint>,
1035
+ basicBorrowRate_0: RawTransactionArgument<number | bigint>,
1036
+ basicBorrowRate_1: RawTransactionArgument<number | bigint>,
1037
+ basicBorrowRate_2: RawTransactionArgument<number | bigint>,
1038
+ utilizationThresholdBp_0: RawTransactionArgument<number | bigint>,
1039
+ utilizationThresholdBp_1: RawTransactionArgument<number | bigint>,
1040
+ borrowIntervalTsMs: RawTransactionArgument<number | bigint>,
1041
+ maxOrderReserveRatioBp: RawTransactionArgument<number | bigint>
1042
+ ];
1043
+ typeArguments: [string];
1044
+ }
1045
+ /** [Authorized Function] Adds a new liquidity token to a pool. */
1046
+ export declare function addLiquidityToken(options: AddLiquidityTokenOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1047
+ export interface UpdateSpotConfigArguments {
1048
+ version: RawTransactionArgument<string>;
1049
+ registry: RawTransactionArgument<string>;
1050
+ index: RawTransactionArgument<number | bigint>;
1051
+ targetWeightBp: RawTransactionArgument<number | bigint | null>;
1052
+ minDeposit: RawTransactionArgument<number | bigint | null>;
1053
+ maxCapacity: RawTransactionArgument<number | bigint | null>;
1054
+ basicMintFeeBp: RawTransactionArgument<number | bigint | null>;
1055
+ additionalMintFeeBp: RawTransactionArgument<number | bigint | null>;
1056
+ basicBurnFeeBp: RawTransactionArgument<number | bigint | null>;
1057
+ additionalBurnFeeBp: RawTransactionArgument<number | bigint | null>;
1058
+ swapFeeBp: RawTransactionArgument<number | bigint | null>;
1059
+ swapFeeProtocolShareBp: RawTransactionArgument<number | bigint | null>;
1060
+ lendingProtocolShareBp: RawTransactionArgument<number | bigint | null>;
1061
+ }
1062
+ export interface UpdateSpotConfigOptions {
1063
+ package?: string;
1064
+ arguments: UpdateSpotConfigArguments | [
1065
+ version: RawTransactionArgument<string>,
1066
+ registry: RawTransactionArgument<string>,
1067
+ index: RawTransactionArgument<number | bigint>,
1068
+ targetWeightBp: RawTransactionArgument<number | bigint | null>,
1069
+ minDeposit: RawTransactionArgument<number | bigint | null>,
1070
+ maxCapacity: RawTransactionArgument<number | bigint | null>,
1071
+ basicMintFeeBp: RawTransactionArgument<number | bigint | null>,
1072
+ additionalMintFeeBp: RawTransactionArgument<number | bigint | null>,
1073
+ basicBurnFeeBp: RawTransactionArgument<number | bigint | null>,
1074
+ additionalBurnFeeBp: RawTransactionArgument<number | bigint | null>,
1075
+ swapFeeBp: RawTransactionArgument<number | bigint | null>,
1076
+ swapFeeProtocolShareBp: RawTransactionArgument<number | bigint | null>,
1077
+ lendingProtocolShareBp: RawTransactionArgument<number | bigint | null>
1078
+ ];
1079
+ typeArguments: [string];
1080
+ }
1081
+ /** [Authorized Function] Updates the spot configuration for a token. */
1082
+ export declare function updateSpotConfig(options: UpdateSpotConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1083
+ export interface ManagerEmergencyDepositArguments {
1084
+ version: RawTransactionArgument<string>;
1085
+ registry: RawTransactionArgument<string>;
1086
+ index: RawTransactionArgument<number | bigint>;
1087
+ coin: RawTransactionArgument<string>;
1088
+ }
1089
+ export interface ManagerEmergencyDepositOptions {
1090
+ package?: string;
1091
+ arguments: ManagerEmergencyDepositArguments | [
1092
+ version: RawTransactionArgument<string>,
1093
+ registry: RawTransactionArgument<string>,
1094
+ index: RawTransactionArgument<number | bigint>,
1095
+ coin: RawTransactionArgument<string>
1096
+ ];
1097
+ typeArguments: [string, string];
1098
+ }
1099
+ /** [Authorized Function] Allows a manager to deposit tokens in an emergency. */
1100
+ export declare function managerEmergencyDeposit(options: ManagerEmergencyDepositOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1101
+ export interface ManagerEmergencyWithdrawArguments {
1102
+ version: RawTransactionArgument<string>;
1103
+ registry: RawTransactionArgument<string>;
1104
+ index: RawTransactionArgument<number | bigint>;
1105
+ receipt: RawTransactionArgument<string>;
1106
+ }
1107
+ export interface ManagerEmergencyWithdrawOptions {
1108
+ package?: string;
1109
+ arguments: ManagerEmergencyWithdrawArguments | [
1110
+ version: RawTransactionArgument<string>,
1111
+ registry: RawTransactionArgument<string>,
1112
+ index: RawTransactionArgument<number | bigint>,
1113
+ receipt: RawTransactionArgument<string>
1114
+ ];
1115
+ typeArguments: [string, string];
1116
+ }
1117
+ /** [Authorized Function] Allows a manager to withdraw tokens in an emergency. */
1118
+ export declare function managerEmergencyWithdraw(options: ManagerEmergencyWithdrawOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1119
+ export interface UpdateMarginConfigArguments {
1120
+ version: RawTransactionArgument<string>;
1121
+ registry: RawTransactionArgument<string>;
1122
+ index: RawTransactionArgument<number | bigint>;
1123
+ basicBorrowRate_0: RawTransactionArgument<number | bigint | null>;
1124
+ basicBorrowRate_1: RawTransactionArgument<number | bigint | null>;
1125
+ basicBorrowRate_2: RawTransactionArgument<number | bigint | null>;
1126
+ utilizationThresholdBp_0: RawTransactionArgument<number | bigint | null>;
1127
+ utilizationThresholdBp_1: RawTransactionArgument<number | bigint | null>;
1128
+ borrowIntervalTsMs: RawTransactionArgument<number | bigint | null>;
1129
+ maxOrderReserveRatioBp: RawTransactionArgument<number | bigint | null>;
1130
+ }
1131
+ export interface UpdateMarginConfigOptions {
1132
+ package?: string;
1133
+ arguments: UpdateMarginConfigArguments | [
1134
+ version: RawTransactionArgument<string>,
1135
+ registry: RawTransactionArgument<string>,
1136
+ index: RawTransactionArgument<number | bigint>,
1137
+ basicBorrowRate_0: RawTransactionArgument<number | bigint | null>,
1138
+ basicBorrowRate_1: RawTransactionArgument<number | bigint | null>,
1139
+ basicBorrowRate_2: RawTransactionArgument<number | bigint | null>,
1140
+ utilizationThresholdBp_0: RawTransactionArgument<number | bigint | null>,
1141
+ utilizationThresholdBp_1: RawTransactionArgument<number | bigint | null>,
1142
+ borrowIntervalTsMs: RawTransactionArgument<number | bigint | null>,
1143
+ maxOrderReserveRatioBp: RawTransactionArgument<number | bigint | null>
1144
+ ];
1145
+ typeArguments: [string];
1146
+ }
1147
+ /** [Authorized Function] Updates the margin configuration for a token. */
1148
+ export declare function updateMarginConfig(options: UpdateMarginConfigOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1149
+ export interface MintLpArguments {
1150
+ version: RawTransactionArgument<string>;
1151
+ registry: RawTransactionArgument<string>;
1152
+ treasuryCaps: RawTransactionArgument<string>;
1153
+ oracle: RawTransactionArgument<string>;
1154
+ index: RawTransactionArgument<number | bigint>;
1155
+ coin: RawTransactionArgument<string>;
1156
+ }
1157
+ export interface MintLpOptions {
1158
+ package?: string;
1159
+ arguments: MintLpArguments | [
1160
+ version: RawTransactionArgument<string>,
1161
+ registry: RawTransactionArgument<string>,
1162
+ treasuryCaps: RawTransactionArgument<string>,
1163
+ oracle: RawTransactionArgument<string>,
1164
+ index: RawTransactionArgument<number | bigint>,
1165
+ coin: RawTransactionArgument<string>
1166
+ ];
1167
+ typeArguments: [string, string];
1168
+ }
1169
+ /** [User Function] Mints LP tokens. */
1170
+ export declare function mintLp(options: MintLpOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1171
+ export interface UpdateBorrowInfoArguments {
1172
+ version: RawTransactionArgument<string>;
1173
+ registry: RawTransactionArgument<string>;
1174
+ index: RawTransactionArgument<number | bigint>;
1175
+ }
1176
+ export interface UpdateBorrowInfoOptions {
1177
+ package?: string;
1178
+ arguments: UpdateBorrowInfoArguments | [
1179
+ version: RawTransactionArgument<string>,
1180
+ registry: RawTransactionArgument<string>,
1181
+ index: RawTransactionArgument<number | bigint>
1182
+ ];
1183
+ }
1184
+ /** [User Function] Updates the borrow information for all tokens in a pool. */
1185
+ export declare function updateBorrowInfo(options: UpdateBorrowInfoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1186
+ export interface SwapArguments {
1187
+ version: RawTransactionArgument<string>;
1188
+ registry: RawTransactionArgument<string>;
1189
+ index: RawTransactionArgument<number | bigint>;
1190
+ oracleFromToken: RawTransactionArgument<string>;
1191
+ oracleToToken: RawTransactionArgument<string>;
1192
+ fromCoin: RawTransactionArgument<string>;
1193
+ minToAmount: RawTransactionArgument<number | bigint>;
1194
+ }
1195
+ export interface SwapOptions {
1196
+ package?: string;
1197
+ arguments: SwapArguments | [
1198
+ version: RawTransactionArgument<string>,
1199
+ registry: RawTransactionArgument<string>,
1200
+ index: RawTransactionArgument<number | bigint>,
1201
+ oracleFromToken: RawTransactionArgument<string>,
1202
+ oracleToToken: RawTransactionArgument<string>,
1203
+ fromCoin: RawTransactionArgument<string>,
1204
+ minToAmount: RawTransactionArgument<number | bigint>
1205
+ ];
1206
+ typeArguments: [string, string];
1207
+ }
1208
+ /** [User Function] Swaps one token for another. */
1209
+ export declare function swap(options: SwapOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1210
+ export interface RedeemArguments {
1211
+ version: RawTransactionArgument<string>;
1212
+ registry: RawTransactionArgument<string>;
1213
+ index: RawTransactionArgument<number | bigint>;
1214
+ balance: RawTransactionArgument<string>;
1215
+ }
1216
+ export interface RedeemOptions {
1217
+ package?: string;
1218
+ arguments: RedeemArguments | [
1219
+ version: RawTransactionArgument<string>,
1220
+ registry: RawTransactionArgument<string>,
1221
+ index: RawTransactionArgument<number | bigint>,
1222
+ balance: RawTransactionArgument<string>
1223
+ ];
1224
+ typeArguments: [string];
1225
+ }
1226
+ /** [User Function] Redeems LP tokens for underlying assets. */
1227
+ export declare function redeem(options: RedeemOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1228
+ export interface ClaimArguments {
1229
+ version: RawTransactionArgument<string>;
1230
+ registry: RawTransactionArgument<string>;
1231
+ index: RawTransactionArgument<number | bigint>;
1232
+ treasuryCaps: RawTransactionArgument<string>;
1233
+ oracle: RawTransactionArgument<string>;
1234
+ }
1235
+ export interface ClaimOptions {
1236
+ package?: string;
1237
+ arguments: ClaimArguments | [
1238
+ version: RawTransactionArgument<string>,
1239
+ registry: RawTransactionArgument<string>,
1240
+ index: RawTransactionArgument<number | bigint>,
1241
+ treasuryCaps: RawTransactionArgument<string>,
1242
+ oracle: RawTransactionArgument<string>
1243
+ ];
1244
+ typeArguments: [string, string];
1245
+ }
1246
+ /** [User Function] Claims underlying assets from redeemed LP tokens. */
1247
+ export declare function claim(options: ClaimOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1248
+ export interface SuspendPoolArguments {
1249
+ version: RawTransactionArgument<string>;
1250
+ registry: RawTransactionArgument<string>;
1251
+ index: RawTransactionArgument<number | bigint>;
1252
+ }
1253
+ export interface SuspendPoolOptions {
1254
+ package?: string;
1255
+ arguments: SuspendPoolArguments | [
1256
+ version: RawTransactionArgument<string>,
1257
+ registry: RawTransactionArgument<string>,
1258
+ index: RawTransactionArgument<number | bigint>
1259
+ ];
1260
+ }
1261
+ /** [Authorized Function] Suspends a liquidity pool. */
1262
+ export declare function suspendPool(options: SuspendPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1263
+ export interface ResumePoolArguments {
1264
+ version: RawTransactionArgument<string>;
1265
+ registry: RawTransactionArgument<string>;
1266
+ index: RawTransactionArgument<number | bigint>;
1267
+ }
1268
+ export interface ResumePoolOptions {
1269
+ package?: string;
1270
+ arguments: ResumePoolArguments | [
1271
+ version: RawTransactionArgument<string>,
1272
+ registry: RawTransactionArgument<string>,
1273
+ index: RawTransactionArgument<number | bigint>
1274
+ ];
1275
+ }
1276
+ /** [Authorized Function] Resumes a liquidity pool. */
1277
+ export declare function resumePool(options: ResumePoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1278
+ export interface SuspendTokenPoolArguments {
1279
+ version: RawTransactionArgument<string>;
1280
+ registry: RawTransactionArgument<string>;
1281
+ index: RawTransactionArgument<number | bigint>;
1282
+ }
1283
+ export interface SuspendTokenPoolOptions {
1284
+ package?: string;
1285
+ arguments: SuspendTokenPoolArguments | [
1286
+ version: RawTransactionArgument<string>,
1287
+ registry: RawTransactionArgument<string>,
1288
+ index: RawTransactionArgument<number | bigint>
1289
+ ];
1290
+ typeArguments: [string];
1291
+ }
1292
+ /** [Authorized Function] Suspends a token pool. */
1293
+ export declare function suspendTokenPool(options: SuspendTokenPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1294
+ export interface ResumeTokenPoolArguments {
1295
+ version: RawTransactionArgument<string>;
1296
+ registry: RawTransactionArgument<string>;
1297
+ index: RawTransactionArgument<number | bigint>;
1298
+ }
1299
+ export interface ResumeTokenPoolOptions {
1300
+ package?: string;
1301
+ arguments: ResumeTokenPoolArguments | [
1302
+ version: RawTransactionArgument<string>,
1303
+ registry: RawTransactionArgument<string>,
1304
+ index: RawTransactionArgument<number | bigint>
1305
+ ];
1306
+ typeArguments: [string];
1307
+ }
1308
+ /** [Authorized Function] Resumes a token pool. */
1309
+ export declare function resumeTokenPool(options: ResumeTokenPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1310
+ export interface ManagerRemoveLiquidityTokenArguments {
1311
+ version: RawTransactionArgument<string>;
1312
+ registry: RawTransactionArgument<string>;
1313
+ index: RawTransactionArgument<number | bigint>;
1314
+ }
1315
+ export interface ManagerRemoveLiquidityTokenOptions {
1316
+ package?: string;
1317
+ arguments: ManagerRemoveLiquidityTokenArguments | [
1318
+ version: RawTransactionArgument<string>,
1319
+ registry: RawTransactionArgument<string>,
1320
+ index: RawTransactionArgument<number | bigint>
1321
+ ];
1322
+ typeArguments: [string];
1323
+ }
1324
+ /** [Authorized Function] Manager removes a liquidity token. */
1325
+ export declare function managerRemoveLiquidityToken(options: ManagerRemoveLiquidityTokenOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1326
+ export interface CheckTokenPoolStatusArguments {
1327
+ registry: RawTransactionArgument<string>;
1328
+ index: RawTransactionArgument<number | bigint>;
1329
+ assertActive: RawTransactionArgument<boolean>;
1330
+ }
1331
+ export interface CheckTokenPoolStatusOptions {
1332
+ package?: string;
1333
+ arguments: CheckTokenPoolStatusArguments | [
1334
+ registry: RawTransactionArgument<string>,
1335
+ index: RawTransactionArgument<number | bigint>,
1336
+ assertActive: RawTransactionArgument<boolean>
1337
+ ];
1338
+ typeArguments: [string];
1339
+ }
1340
+ export declare function checkTokenPoolStatus(options: CheckTokenPoolStatusOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1341
+ export interface TokenPoolIsActiveArguments {
1342
+ tokenPool: RawTransactionArgument<string>;
1343
+ }
1344
+ export interface TokenPoolIsActiveOptions {
1345
+ package?: string;
1346
+ arguments: TokenPoolIsActiveArguments | [tokenPool: RawTransactionArgument<string>];
1347
+ }
1348
+ export declare function tokenPoolIsActive(options: TokenPoolIsActiveOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1349
+ export interface RebalanceArguments {
1350
+ version: RawTransactionArgument<string>;
1351
+ registry: RawTransactionArgument<string>;
1352
+ index: RawTransactionArgument<number | bigint>;
1353
+ oracleTokenA: RawTransactionArgument<string>;
1354
+ oracleTokenB: RawTransactionArgument<string>;
1355
+ rebalanceAmount: RawTransactionArgument<number | bigint>;
1356
+ }
1357
+ export interface RebalanceOptions {
1358
+ package?: string;
1359
+ arguments: RebalanceArguments | [
1360
+ version: RawTransactionArgument<string>,
1361
+ registry: RawTransactionArgument<string>,
1362
+ index: RawTransactionArgument<number | bigint>,
1363
+ oracleTokenA: RawTransactionArgument<string>,
1364
+ oracleTokenB: RawTransactionArgument<string>,
1365
+ rebalanceAmount: RawTransactionArgument<number | bigint>
1366
+ ];
1367
+ typeArguments: [string, string];
1368
+ }
1369
+ /** [Authorized Function] Manager take the liquidity token A to swap. */
1370
+ export declare function rebalance(options: RebalanceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1371
+ export interface CompleteRebalancingArguments {
1372
+ version: RawTransactionArgument<string>;
1373
+ registry: RawTransactionArgument<string>;
1374
+ index: RawTransactionArgument<number | bigint>;
1375
+ oracleTokenA: RawTransactionArgument<string>;
1376
+ oracleTokenB: RawTransactionArgument<string>;
1377
+ swappedBackBalance: RawTransactionArgument<string>;
1378
+ rebalanceProcess: RawTransactionArgument<string>;
1379
+ }
1380
+ export interface CompleteRebalancingOptions {
1381
+ package?: string;
1382
+ arguments: CompleteRebalancingArguments | [
1383
+ version: RawTransactionArgument<string>,
1384
+ registry: RawTransactionArgument<string>,
1385
+ index: RawTransactionArgument<number | bigint>,
1386
+ oracleTokenA: RawTransactionArgument<string>,
1387
+ oracleTokenB: RawTransactionArgument<string>,
1388
+ swappedBackBalance: RawTransactionArgument<string>,
1389
+ rebalanceProcess: RawTransactionArgument<string>
1390
+ ];
1391
+ typeArguments: [string, string];
1392
+ }
1393
+ /** [Authorized Function] Manager swap back the liquidity token from A to B. */
1394
+ export declare function completeRebalancing(options: CompleteRebalancingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1395
+ export interface ManagerRemoveAllLiquidityArguments {
1396
+ version: RawTransactionArgument<string>;
1397
+ registry: RawTransactionArgument<string>;
1398
+ index: RawTransactionArgument<number | bigint>;
1399
+ }
1400
+ export interface ManagerRemoveAllLiquidityOptions {
1401
+ package?: string;
1402
+ arguments: ManagerRemoveAllLiquidityArguments | [
1403
+ version: RawTransactionArgument<string>,
1404
+ registry: RawTransactionArgument<string>,
1405
+ index: RawTransactionArgument<number | bigint>
1406
+ ];
1407
+ typeArguments: [string];
1408
+ }
1409
+ /**
1410
+ * Only for current contract sunset purpose. Will be removed in new contract
1411
+ * [Authorized Function] Manager remove all liquidity of a token.
1412
+ */
1413
+ export declare function managerRemoveAllLiquidity(options: ManagerRemoveAllLiquidityOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1414
+ export interface UpdateLiquidityValueArguments {
1415
+ version: RawTransactionArgument<string>;
1416
+ registry: RawTransactionArgument<string>;
1417
+ index: RawTransactionArgument<number | bigint>;
1418
+ oracle: RawTransactionArgument<string>;
1419
+ }
1420
+ export interface UpdateLiquidityValueOptions {
1421
+ package?: string;
1422
+ arguments: UpdateLiquidityValueArguments | [
1423
+ version: RawTransactionArgument<string>,
1424
+ registry: RawTransactionArgument<string>,
1425
+ index: RawTransactionArgument<number | bigint>,
1426
+ oracle: RawTransactionArgument<string>
1427
+ ];
1428
+ typeArguments: [string];
1429
+ }
1430
+ /** [User Function] Update the liquidity value with oracle. */
1431
+ export declare function updateLiquidityValue(options: UpdateLiquidityValueOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1432
+ export interface GetPoolLiquidityArguments {
1433
+ version: RawTransactionArgument<string>;
1434
+ registry: RawTransactionArgument<string>;
1435
+ index: RawTransactionArgument<number | bigint>;
1436
+ }
1437
+ export interface GetPoolLiquidityOptions {
1438
+ package?: string;
1439
+ arguments: GetPoolLiquidityArguments | [
1440
+ version: RawTransactionArgument<string>,
1441
+ registry: RawTransactionArgument<string>,
1442
+ index: RawTransactionArgument<number | bigint>
1443
+ ];
1444
+ }
1445
+ /**
1446
+ * [View Function] Get the liquidity pool token amounts. Return
1447
+ * [total_share_supply, tvl_usd, token_types, amounts, usds]
1448
+ */
1449
+ export declare function getPoolLiquidity(options: GetPoolLiquidityOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1450
+ export interface UpdateTvlArguments {
1451
+ version: RawTransactionArgument<string>;
1452
+ liquidityPool: RawTransactionArgument<string>;
1453
+ tokenType: RawTransactionArgument<string>;
1454
+ oracle: RawTransactionArgument<string>;
1455
+ }
1456
+ export interface UpdateTvlOptions {
1457
+ package?: string;
1458
+ arguments: UpdateTvlArguments | [
1459
+ version: RawTransactionArgument<string>,
1460
+ liquidityPool: RawTransactionArgument<string>,
1461
+ tokenType: RawTransactionArgument<string>,
1462
+ oracle: RawTransactionArgument<string>
1463
+ ];
1464
+ }
1465
+ export declare function updateTvl(options: UpdateTvlOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1466
+ export interface OrderFilledArguments {
1467
+ liquidityPool: RawTransactionArgument<string>;
1468
+ addReserve: RawTransactionArgument<boolean>;
1469
+ dReserve: RawTransactionArgument<number | bigint>;
1470
+ feeBalance: RawTransactionArgument<string>;
1471
+ }
1472
+ export interface OrderFilledOptions {
1473
+ package?: string;
1474
+ arguments: OrderFilledArguments | [
1475
+ liquidityPool: RawTransactionArgument<string>,
1476
+ addReserve: RawTransactionArgument<boolean>,
1477
+ dReserve: RawTransactionArgument<number | bigint>,
1478
+ feeBalance: RawTransactionArgument<string>
1479
+ ];
1480
+ typeArguments: [string];
1481
+ }
1482
+ export declare function orderFilled(options: OrderFilledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1483
+ export interface UpdateReserveAmountArguments {
1484
+ liquidityPool: RawTransactionArgument<string>;
1485
+ addReserve: RawTransactionArgument<boolean>;
1486
+ dReserve: RawTransactionArgument<number | bigint>;
1487
+ }
1488
+ export interface UpdateReserveAmountOptions {
1489
+ package?: string;
1490
+ arguments: UpdateReserveAmountArguments | [
1491
+ liquidityPool: RawTransactionArgument<string>,
1492
+ addReserve: RawTransactionArgument<boolean>,
1493
+ dReserve: RawTransactionArgument<number | bigint>
1494
+ ];
1495
+ typeArguments: [string];
1496
+ }
1497
+ export declare function updateReserveAmount(options: UpdateReserveAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1498
+ export interface PutCollateralArguments {
1499
+ liquidityPool: RawTransactionArgument<string>;
1500
+ collateral: RawTransactionArgument<string>;
1501
+ collateralOraclePrice: RawTransactionArgument<number | bigint>;
1502
+ collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
1503
+ }
1504
+ export interface PutCollateralOptions {
1505
+ package?: string;
1506
+ arguments: PutCollateralArguments | [
1507
+ liquidityPool: RawTransactionArgument<string>,
1508
+ collateral: RawTransactionArgument<string>,
1509
+ collateralOraclePrice: RawTransactionArgument<number | bigint>,
1510
+ collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>
1511
+ ];
1512
+ typeArguments: [string];
1513
+ }
1514
+ export declare function putCollateral(options: PutCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1515
+ export interface RequestCollateralArguments {
1516
+ liquidityPool: RawTransactionArgument<string>;
1517
+ collateralAmount: RawTransactionArgument<number | bigint>;
1518
+ collateralOraclePrice: RawTransactionArgument<number | bigint>;
1519
+ collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>;
1520
+ }
1521
+ export interface RequestCollateralOptions {
1522
+ package?: string;
1523
+ arguments: RequestCollateralArguments | [
1524
+ liquidityPool: RawTransactionArgument<string>,
1525
+ collateralAmount: RawTransactionArgument<number | bigint>,
1526
+ collateralOraclePrice: RawTransactionArgument<number | bigint>,
1527
+ collateralOraclePriceDecimal: RawTransactionArgument<number | bigint>
1528
+ ];
1529
+ typeArguments: [string];
1530
+ }
1531
+ export declare function requestCollateral(options: RequestCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1532
+ export interface PutReceiptCollateralsArguments {
1533
+ liquidityPool: RawTransactionArgument<string>;
1534
+ unsettledBidReceipts: RawTransactionArgument<string[]>;
1535
+ }
1536
+ export interface PutReceiptCollateralsOptions {
1537
+ package?: string;
1538
+ arguments: PutReceiptCollateralsArguments | [liquidityPool: RawTransactionArgument<string>, unsettledBidReceipts: RawTransactionArgument<string[]>];
1539
+ }
1540
+ export declare function putReceiptCollaterals(options: PutReceiptCollateralsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1541
+ export interface GetReceiptCollateralArguments {
1542
+ liquidityPool: RawTransactionArgument<string>;
1543
+ }
1544
+ export interface GetReceiptCollateralOptions {
1545
+ package?: string;
1546
+ arguments: GetReceiptCollateralArguments | [liquidityPool: RawTransactionArgument<string>];
1547
+ }
1548
+ export declare function getReceiptCollateral(options: GetReceiptCollateralOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1549
+ export interface CalculateMintLpArguments {
1550
+ registry: RawTransactionArgument<string>;
1551
+ index: RawTransactionArgument<number | bigint>;
1552
+ tokenType: RawTransactionArgument<string>;
1553
+ price: RawTransactionArgument<number | bigint>;
1554
+ priceDecimal: RawTransactionArgument<number | bigint>;
1555
+ depositAmount: RawTransactionArgument<number | bigint>;
1556
+ }
1557
+ export interface CalculateMintLpOptions {
1558
+ package?: string;
1559
+ arguments: CalculateMintLpArguments | [
1560
+ registry: RawTransactionArgument<string>,
1561
+ index: RawTransactionArgument<number | bigint>,
1562
+ tokenType: RawTransactionArgument<string>,
1563
+ price: RawTransactionArgument<number | bigint>,
1564
+ priceDecimal: RawTransactionArgument<number | bigint>,
1565
+ depositAmount: RawTransactionArgument<number | bigint>
1566
+ ];
1567
+ }
1568
+ export declare function calculateMintLp(options: CalculateMintLpOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1569
+ export interface CalculateBurnLpArguments {
1570
+ registry: RawTransactionArgument<string>;
1571
+ index: RawTransactionArgument<number | bigint>;
1572
+ tokenType: RawTransactionArgument<string>;
1573
+ price: RawTransactionArgument<number | bigint>;
1574
+ priceDecimal: RawTransactionArgument<number | bigint>;
1575
+ burnAmount: RawTransactionArgument<number | bigint>;
1576
+ }
1577
+ export interface CalculateBurnLpOptions {
1578
+ package?: string;
1579
+ arguments: CalculateBurnLpArguments | [
1580
+ registry: RawTransactionArgument<string>,
1581
+ index: RawTransactionArgument<number | bigint>,
1582
+ tokenType: RawTransactionArgument<string>,
1583
+ price: RawTransactionArgument<number | bigint>,
1584
+ priceDecimal: RawTransactionArgument<number | bigint>,
1585
+ burnAmount: RawTransactionArgument<number | bigint>
1586
+ ];
1587
+ }
1588
+ export declare function calculateBurnLp(options: CalculateBurnLpOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1589
+ export interface CalculateLpFeeArguments {
1590
+ liquidityPool: RawTransactionArgument<string>;
1591
+ tokenType: RawTransactionArgument<string>;
1592
+ depositAmount: RawTransactionArgument<number | bigint>;
1593
+ depositAmountUsd: RawTransactionArgument<number | bigint>;
1594
+ isMint: RawTransactionArgument<boolean>;
1595
+ }
1596
+ export interface CalculateLpFeeOptions {
1597
+ package?: string;
1598
+ arguments: CalculateLpFeeArguments | [
1599
+ liquidityPool: RawTransactionArgument<string>,
1600
+ tokenType: RawTransactionArgument<string>,
1601
+ depositAmount: RawTransactionArgument<number | bigint>,
1602
+ depositAmountUsd: RawTransactionArgument<number | bigint>,
1603
+ isMint: RawTransactionArgument<boolean>
1604
+ ];
1605
+ }
1606
+ export declare function calculateLpFee(options: CalculateLpFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1607
+ export interface CalculateSwapFeeArguments {
1608
+ liquidityPool: RawTransactionArgument<string>;
1609
+ tokenType: RawTransactionArgument<string>;
1610
+ amount: RawTransactionArgument<number | bigint>;
1611
+ amountUsd: RawTransactionArgument<number | bigint>;
1612
+ swapIn: RawTransactionArgument<boolean>;
1613
+ }
1614
+ export interface CalculateSwapFeeOptions {
1615
+ package?: string;
1616
+ arguments: CalculateSwapFeeArguments | [
1617
+ liquidityPool: RawTransactionArgument<string>,
1618
+ tokenType: RawTransactionArgument<string>,
1619
+ amount: RawTransactionArgument<number | bigint>,
1620
+ amountUsd: RawTransactionArgument<number | bigint>,
1621
+ swapIn: RawTransactionArgument<boolean>
1622
+ ];
1623
+ }
1624
+ export declare function calculateSwapFee(options: CalculateSwapFeeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1625
+ export interface CheckTvlUpdatedArguments {
1626
+ liquidityPool: RawTransactionArgument<string>;
1627
+ }
1628
+ export interface CheckTvlUpdatedOptions {
1629
+ package?: string;
1630
+ arguments: CheckTvlUpdatedArguments | [liquidityPool: RawTransactionArgument<string>];
1631
+ }
1632
+ export declare function checkTvlUpdated(options: CheckTvlUpdatedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1633
+ export interface BurnLp_Arguments {
1634
+ version: RawTransactionArgument<string>;
1635
+ registry: RawTransactionArgument<string>;
1636
+ index: RawTransactionArgument<number | bigint>;
1637
+ treasuryCaps: RawTransactionArgument<string>;
1638
+ oracle: RawTransactionArgument<string>;
1639
+ burnLpBalance: RawTransactionArgument<string>;
1640
+ }
1641
+ export interface BurnLp_Options {
1642
+ package?: string;
1643
+ arguments: BurnLp_Arguments | [
1644
+ version: RawTransactionArgument<string>,
1645
+ registry: RawTransactionArgument<string>,
1646
+ index: RawTransactionArgument<number | bigint>,
1647
+ treasuryCaps: RawTransactionArgument<string>,
1648
+ oracle: RawTransactionArgument<string>,
1649
+ burnLpBalance: RawTransactionArgument<string>
1650
+ ];
1651
+ typeArguments: [string, string];
1652
+ }
1653
+ export declare function burnLp_(options: BurnLp_Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1654
+ export interface ViewSwapResultArguments {
1655
+ version: RawTransactionArgument<string>;
1656
+ registry: RawTransactionArgument<string>;
1657
+ index: RawTransactionArgument<number | bigint>;
1658
+ oracleFromToken: RawTransactionArgument<string>;
1659
+ oracleToToken: RawTransactionArgument<string>;
1660
+ fromAmount: RawTransactionArgument<number | bigint>;
1661
+ }
1662
+ export interface ViewSwapResultOptions {
1663
+ package?: string;
1664
+ arguments: ViewSwapResultArguments | [
1665
+ version: RawTransactionArgument<string>,
1666
+ registry: RawTransactionArgument<string>,
1667
+ index: RawTransactionArgument<number | bigint>,
1668
+ oracleFromToken: RawTransactionArgument<string>,
1669
+ oracleToToken: RawTransactionArgument<string>,
1670
+ fromAmount: RawTransactionArgument<number | bigint>
1671
+ ];
1672
+ typeArguments: [string, string];
1673
+ }
1674
+ export declare function viewSwapResult(options: ViewSwapResultOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1675
+ export interface GetReceiptCollateralBcsArguments {
1676
+ registry: RawTransactionArgument<string>;
1677
+ index: RawTransactionArgument<number | bigint>;
1678
+ }
1679
+ export interface GetReceiptCollateralBcsOptions {
1680
+ package?: string;
1681
+ arguments: GetReceiptCollateralBcsArguments | [registry: RawTransactionArgument<string>, index: RawTransactionArgument<number | bigint>];
1682
+ }
1683
+ export declare function getReceiptCollateralBcs(options: GetReceiptCollateralBcsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1684
+ export interface GetExpiredReceiptCollateralBcsArguments {
1685
+ registry: RawTransactionArgument<string>;
1686
+ dovRegistry: RawTransactionArgument<string>;
1687
+ index: RawTransactionArgument<number | bigint>;
1688
+ }
1689
+ export interface GetExpiredReceiptCollateralBcsOptions {
1690
+ package?: string;
1691
+ arguments: GetExpiredReceiptCollateralBcsArguments | [
1692
+ registry: RawTransactionArgument<string>,
1693
+ dovRegistry: RawTransactionArgument<string>,
1694
+ index: RawTransactionArgument<number | bigint>
1695
+ ];
1696
+ }
1697
+ export declare function getExpiredReceiptCollateralBcs(options: GetExpiredReceiptCollateralBcsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1698
+ export interface GetLiquidityPoolArguments {
1699
+ registry: RawTransactionArgument<string>;
1700
+ index: RawTransactionArgument<number | bigint>;
1701
+ }
1702
+ export interface GetLiquidityPoolOptions {
1703
+ package?: string;
1704
+ arguments: GetLiquidityPoolArguments | [registry: RawTransactionArgument<string>, index: RawTransactionArgument<number | bigint>];
1705
+ }
1706
+ export declare function getLiquidityPool(options: GetLiquidityPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1707
+ export interface GetMutLiquidityPoolArguments {
1708
+ registry: RawTransactionArgument<string>;
1709
+ index: RawTransactionArgument<number | bigint>;
1710
+ }
1711
+ export interface GetMutLiquidityPoolOptions {
1712
+ package?: string;
1713
+ arguments: GetMutLiquidityPoolArguments | [registry: RawTransactionArgument<string>, index: RawTransactionArgument<number | bigint>];
1714
+ }
1715
+ export declare function getMutLiquidityPool(options: GetMutLiquidityPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1716
+ export interface SafetyCheckArguments {
1717
+ liquidityPool: RawTransactionArgument<string>;
1718
+ tokenType: RawTransactionArgument<string>;
1719
+ oracleId: RawTransactionArgument<string>;
1720
+ }
1721
+ export interface SafetyCheckOptions {
1722
+ package?: string;
1723
+ arguments: SafetyCheckArguments | [
1724
+ liquidityPool: RawTransactionArgument<string>,
1725
+ tokenType: RawTransactionArgument<string>,
1726
+ oracleId: RawTransactionArgument<string>
1727
+ ];
1728
+ }
1729
+ export declare function safetyCheck(options: SafetyCheckOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1730
+ export interface CheckActiveArguments {
1731
+ liquidityPool: RawTransactionArgument<string>;
1732
+ }
1733
+ export interface CheckActiveOptions {
1734
+ package?: string;
1735
+ arguments: CheckActiveArguments | [liquidityPool: RawTransactionArgument<string>];
1736
+ }
1737
+ export declare function checkActive(options: CheckActiveOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1738
+ export interface OracleMatchedArguments {
1739
+ liquidityPool: RawTransactionArgument<string>;
1740
+ tokenType: RawTransactionArgument<string>;
1741
+ oracleId: RawTransactionArgument<string>;
1742
+ }
1743
+ export interface OracleMatchedOptions {
1744
+ package?: string;
1745
+ arguments: OracleMatchedArguments | [
1746
+ liquidityPool: RawTransactionArgument<string>,
1747
+ tokenType: RawTransactionArgument<string>,
1748
+ oracleId: RawTransactionArgument<string>
1749
+ ];
1750
+ }
1751
+ export declare function oracleMatched(options: OracleMatchedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1752
+ export interface GetTokenPoolArguments {
1753
+ liquidityPool: RawTransactionArgument<string>;
1754
+ tokenType: RawTransactionArgument<string>;
1755
+ }
1756
+ export interface GetTokenPoolOptions {
1757
+ package?: string;
1758
+ arguments: GetTokenPoolArguments | [liquidityPool: RawTransactionArgument<string>, tokenType: RawTransactionArgument<string>];
1759
+ }
1760
+ export declare function getTokenPool(options: GetTokenPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1761
+ export interface GetMutTokenPoolArguments {
1762
+ liquidityPool: RawTransactionArgument<string>;
1763
+ tokenType: RawTransactionArgument<string>;
1764
+ }
1765
+ export interface GetMutTokenPoolOptions {
1766
+ package?: string;
1767
+ arguments: GetMutTokenPoolArguments | [liquidityPool: RawTransactionArgument<string>, tokenType: RawTransactionArgument<string>];
1768
+ }
1769
+ export declare function getMutTokenPool(options: GetMutTokenPoolOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1770
+ export interface GetLpTokenTypeArguments {
1771
+ registry: RawTransactionArgument<string>;
1772
+ index: RawTransactionArgument<number | bigint>;
1773
+ }
1774
+ export interface GetLpTokenTypeOptions {
1775
+ package?: string;
1776
+ arguments: GetLpTokenTypeArguments | [registry: RawTransactionArgument<string>, index: RawTransactionArgument<number | bigint>];
1777
+ }
1778
+ export declare function getLpTokenType(options: GetLpTokenTypeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1779
+ export interface GetLiquidityTokenDecimalArguments {
1780
+ registry: RawTransactionArgument<string>;
1781
+ index: RawTransactionArgument<number | bigint>;
1782
+ liquidityToken: RawTransactionArgument<string>;
1783
+ }
1784
+ export interface GetLiquidityTokenDecimalOptions {
1785
+ package?: string;
1786
+ arguments: GetLiquidityTokenDecimalArguments | [
1787
+ registry: RawTransactionArgument<string>,
1788
+ index: RawTransactionArgument<number | bigint>,
1789
+ liquidityToken: RawTransactionArgument<string>
1790
+ ];
1791
+ }
1792
+ export declare function getLiquidityTokenDecimal(options: GetLiquidityTokenDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1793
+ export interface GetTokenPoolStateArguments {
1794
+ liquidityPool: RawTransactionArgument<string>;
1795
+ liquidityToken: RawTransactionArgument<string>;
1796
+ }
1797
+ export interface GetTokenPoolStateOptions {
1798
+ package?: string;
1799
+ arguments: GetTokenPoolStateArguments | [liquidityPool: RawTransactionArgument<string>, liquidityToken: RawTransactionArgument<string>];
1800
+ }
1801
+ export declare function getTokenPoolState(options: GetTokenPoolStateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1802
+ export interface CheckTradingOrderSizeValidArguments {
1803
+ liquidityPool: RawTransactionArgument<string>;
1804
+ liquidityToken: RawTransactionArgument<string>;
1805
+ reserveAmount: RawTransactionArgument<number | bigint>;
1806
+ }
1807
+ export interface CheckTradingOrderSizeValidOptions {
1808
+ package?: string;
1809
+ arguments: CheckTradingOrderSizeValidArguments | [
1810
+ liquidityPool: RawTransactionArgument<string>,
1811
+ liquidityToken: RawTransactionArgument<string>,
1812
+ reserveAmount: RawTransactionArgument<number | bigint>
1813
+ ];
1814
+ }
1815
+ export declare function checkTradingOrderSizeValid(options: CheckTradingOrderSizeValidOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1816
+ export interface GetCumulativeBorrowRateArguments {
1817
+ liquidityPool: RawTransactionArgument<string>;
1818
+ liquidityToken: RawTransactionArgument<string>;
1819
+ }
1820
+ export interface GetCumulativeBorrowRateOptions {
1821
+ package?: string;
1822
+ arguments: GetCumulativeBorrowRateArguments | [liquidityPool: RawTransactionArgument<string>, liquidityToken: RawTransactionArgument<string>];
1823
+ }
1824
+ export declare function getCumulativeBorrowRate(options: GetCumulativeBorrowRateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1825
+ export interface GetTvlUsdArguments {
1826
+ liquidityPool: RawTransactionArgument<string>;
1827
+ }
1828
+ export interface GetTvlUsdOptions {
1829
+ package?: string;
1830
+ arguments: GetTvlUsdArguments | [liquidityPool: RawTransactionArgument<string>];
1831
+ }
1832
+ export declare function getTvlUsd(options: GetTvlUsdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1833
+ export interface GetBorrowRateDecimalOptions {
1834
+ package?: string;
1835
+ arguments?: [];
1836
+ }
1837
+ export declare function getBorrowRateDecimal(options?: GetBorrowRateDecimalOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1838
+ export interface DeprecatedOptions {
1839
+ package?: string;
1840
+ arguments?: [];
1841
+ }
1842
+ export declare function deprecated(options?: DeprecatedOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
1843
+ export interface GetUserDeactivatingSharesArguments {
1844
+ registry: RawTransactionArgument<string>;
1845
+ index: RawTransactionArgument<number | bigint>;
1846
+ user: RawTransactionArgument<string>;
1847
+ }
1848
+ export interface GetUserDeactivatingSharesOptions {
1849
+ package?: string;
1850
+ arguments: GetUserDeactivatingSharesArguments | [registry: RawTransactionArgument<string>, index: RawTransactionArgument<number | bigint>, user: RawTransactionArgument<string>];
1851
+ typeArguments: [string];
1852
+ }
1853
+ export declare function getUserDeactivatingShares(options: GetUserDeactivatingSharesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;