@typus/typus-perp-sdk 1.1.31-testnet → 1.1.32-codegen

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/dist/src/api/sentio.js +604 -538
  2. package/dist/src/client.d.ts +27 -0
  3. package/dist/src/client.js +108 -0
  4. package/dist/src/fetch.d.ts +161 -34
  5. package/dist/src/fetch.js +365 -665
  6. package/dist/src/generated/typus_perp/admin.d.ts +117 -0
  7. package/dist/src/generated/typus_perp/admin.js +110 -0
  8. package/dist/src/generated/typus_perp/competition.d.ts +22 -0
  9. package/dist/src/generated/typus_perp/competition.js +58 -0
  10. package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +17 -0
  11. package/dist/src/generated/typus_perp/deps/std/type_name.js +25 -0
  12. package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +12 -0
  13. package/dist/src/generated/typus_perp/deps/sui/balance.js +20 -0
  14. package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
  15. package/dist/src/generated/typus_perp/deps/sui/object.js +16 -0
  16. package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +19 -0
  17. package/dist/src/generated/typus_perp/deps/sui/object_table.js +59 -0
  18. package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +18 -0
  19. package/dist/src/generated/typus_perp/deps/sui/vec_set.js +25 -0
  20. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +30 -0
  21. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +67 -0
  22. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +32 -0
  23. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +71 -0
  24. package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +23 -0
  25. package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +61 -0
  26. package/dist/src/generated/typus_perp/escrow.d.ts +59 -0
  27. package/dist/src/generated/typus_perp/escrow.js +76 -0
  28. package/dist/src/generated/typus_perp/lending.d.ts +47 -0
  29. package/dist/src/generated/typus_perp/lending.js +50 -0
  30. package/dist/src/generated/typus_perp/lp_pool.d.ts +2327 -0
  31. package/dist/src/generated/typus_perp/lp_pool.js +1956 -0
  32. package/dist/src/generated/typus_perp/math.d.ts +95 -0
  33. package/dist/src/generated/typus_perp/math.js +97 -0
  34. package/dist/src/generated/typus_perp/position.d.ts +234 -0
  35. package/dist/src/generated/typus_perp/position.js +204 -0
  36. package/dist/src/generated/typus_perp/symbol.d.ts +18 -0
  37. package/dist/src/generated/typus_perp/symbol.js +55 -0
  38. package/dist/src/generated/typus_perp/tlp.d.ts +13 -0
  39. package/dist/src/generated/typus_perp/tlp.js +56 -0
  40. package/dist/src/generated/typus_perp/trading.d.ts +2486 -0
  41. package/dist/src/generated/typus_perp/trading.js +2476 -0
  42. package/dist/src/generated/typus_perp/treasury_caps.d.ts +13 -0
  43. package/dist/src/{_framework/init-loader.js → generated/typus_perp/treasury_caps.js} +17 -10
  44. package/dist/src/generated/typus_perp/user_account.d.ts +40 -0
  45. package/dist/src/generated/typus_perp/user_account.js +72 -0
  46. package/dist/src/generated/typus_stake_pool/admin.d.ts +100 -0
  47. package/dist/src/generated/typus_stake_pool/admin.js +91 -0
  48. package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +17 -0
  49. package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +25 -0
  50. package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
  51. package/dist/src/generated/typus_stake_pool/deps/sui/object.js +16 -0
  52. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +30 -0
  53. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +37 -0
  54. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +18 -0
  55. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +25 -0
  56. package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +1023 -0
  57. package/dist/src/generated/typus_stake_pool/stake_pool.js +918 -0
  58. package/dist/src/generated/utils/index.d.ts +12 -0
  59. package/dist/src/generated/utils/index.js +135 -0
  60. package/dist/src/grpc/graphql.d.ts +26 -0
  61. package/dist/src/grpc/graphql.js +126 -0
  62. package/dist/src/grpc/grpc.d.ts +1 -0
  63. package/dist/src/grpc/grpc.js +38 -0
  64. package/dist/src/grpc/ledgerService.js +64 -0
  65. package/dist/src/grpc/liveDataService.d.ts +0 -0
  66. package/dist/src/grpc/liveDataService.js +49 -0
  67. package/dist/src/index.d.ts +0 -4
  68. package/dist/src/index.js +20 -39
  69. package/dist/src/user/history.js +611 -680
  70. package/dist/src/user/order.d.ts +11 -11
  71. package/dist/src/user/order.js +171 -302
  72. package/dist/src/user/orderWithBidReceipt.d.ts +8 -6
  73. package/dist/src/user/orderWithBidReceipt.js +127 -226
  74. package/dist/src/user/tlp.d.ts +32 -23
  75. package/dist/src/user/tlp.js +316 -468
  76. package/package.json +44 -36
  77. package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +0 -88
  78. package/dist/src/_dependencies/source/0x1/ascii/structs.js +0 -398
  79. package/dist/src/_dependencies/source/0x1/index.d.ts +0 -3
  80. package/dist/src/_dependencies/source/0x1/index.js +0 -6
  81. package/dist/src/_dependencies/source/0x1/option/structs.d.ts +0 -50
  82. package/dist/src/_dependencies/source/0x1/option/structs.js +0 -271
  83. package/dist/src/_dependencies/source/0x1/string/structs.d.ts +0 -48
  84. package/dist/src/_dependencies/source/0x1/string/structs.js +0 -256
  85. package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +0 -49
  86. package/dist/src/_dependencies/source/0x1/type-name/structs.js +0 -223
  87. package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +0 -54
  88. package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
  89. package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -84
  90. package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
  91. package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -406
  92. package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -1247
  93. package/dist/src/_dependencies/source/0x2/index.d.ts +0 -3
  94. package/dist/src/_dependencies/source/0x2/index.js +0 -6
  95. package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +0 -132
  96. package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -438
  97. package/dist/src/_dependencies/source/0x2/object/structs.d.ts +0 -86
  98. package/dist/src/_dependencies/source/0x2/object/structs.js +0 -364
  99. package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +0 -54
  100. package/dist/src/_dependencies/source/0x2/object-table/structs.js +0 -248
  101. package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +0 -44
  102. package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
  103. package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -54
  104. package/dist/src/_dependencies/source/0x2/table/structs.js +0 -248
  105. package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -59
  106. package/dist/src/_dependencies/source/0x2/table-vec/structs.js +0 -274
  107. package/dist/src/_dependencies/source/0x2/token/structs.d.ts +0 -421
  108. package/dist/src/_dependencies/source/0x2/token/structs.js +0 -1095
  109. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -348
  110. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -1091
  111. package/dist/src/_dependencies/source/0x2/url/structs.d.ts +0 -49
  112. package/dist/src/_dependencies/source/0x2/url/structs.js +0 -223
  113. package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +0 -106
  114. package/dist/src/_dependencies/source/0x2/vec-map/structs.js +0 -446
  115. package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +0 -49
  116. package/dist/src/_dependencies/source/0x2/vec-set/structs.js +0 -270
  117. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +0 -422
  118. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +0 -1084
  119. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +0 -130
  120. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +0 -456
  121. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +0 -208
  122. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +0 -653
  123. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +0 -362
  124. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +0 -899
  125. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +0 -8
  126. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +0 -11
  127. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +0 -2
  128. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +0 -102
  129. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +0 -202
  130. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +0 -632
  131. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +0 -600
  132. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +0 -1459
  133. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +0 -136
  134. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.js +0 -438
  135. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +0 -127
  136. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +0 -430
  137. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +0 -957
  138. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +0 -2261
  139. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +0 -244
  140. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +0 -733
  141. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +0 -294
  142. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +0 -892
  143. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +0 -73
  144. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +0 -263
  145. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +0 -294
  146. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +0 -591
  147. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +0 -64
  148. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +0 -258
  149. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +0 -756
  150. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +0 -1721
  151. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +0 -44
  152. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +0 -222
  153. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +0 -3
  154. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +0 -6
  155. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +0 -2
  156. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +0 -89
  157. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +0 -135
  158. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +0 -444
  159. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +0 -2106
  160. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +0 -4952
  161. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +0 -390
  162. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +0 -844
  163. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +0 -6
  164. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +0 -9
  165. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +0 -2
  166. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +0 -69
  167. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +0 -89
  168. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +0 -376
  169. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +0 -386
  170. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +0 -881
  171. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +0 -59
  172. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +0 -274
  173. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +0 -974
  174. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +0 -2387
  175. package/dist/src/_framework/init-loader.d.ts +0 -2
  176. package/dist/src/_framework/loader.d.ts +0 -17
  177. package/dist/src/_framework/loader.js +0 -108
  178. package/dist/src/_framework/reified.d.ts +0 -108
  179. package/dist/src/_framework/reified.js +0 -237
  180. package/dist/src/_framework/util.d.ts +0 -35
  181. package/dist/src/_framework/util.js +0 -396
  182. package/dist/src/_framework/vector.d.ts +0 -42
  183. package/dist/src/_framework/vector.js +0 -112
  184. package/dist/src/pyth.js +0 -1
  185. package/dist/src/typus_perp/admin/functions.d.ts +0 -59
  186. package/dist/src/typus_perp/admin/functions.js +0 -122
  187. package/dist/src/typus_perp/admin/structs.d.ts +0 -467
  188. package/dist/src/typus_perp/admin/structs.js +0 -1065
  189. package/dist/src/typus_perp/competition/functions.d.ts +0 -24
  190. package/dist/src/typus_perp/competition/functions.js +0 -38
  191. package/dist/src/typus_perp/competition/structs.d.ts +0 -80
  192. package/dist/src/typus_perp/competition/structs.js +0 -288
  193. package/dist/src/typus_perp/error/functions.d.ts +0 -73
  194. package/dist/src/typus_perp/error/functions.js +0 -363
  195. package/dist/src/typus_perp/escrow/functions.d.ts +0 -17
  196. package/dist/src/typus_perp/escrow/functions.js +0 -36
  197. package/dist/src/typus_perp/escrow/structs.d.ts +0 -160
  198. package/dist/src/typus_perp/escrow/structs.js +0 -324
  199. package/dist/src/typus_perp/index.d.ts +0 -1
  200. package/dist/src/typus_perp/index.js +0 -7
  201. package/dist/src/typus_perp/init.d.ts +0 -2
  202. package/dist/src/typus_perp/init.js +0 -118
  203. package/dist/src/typus_perp/lending/functions.d.ts +0 -15
  204. package/dist/src/typus_perp/lending/functions.js +0 -22
  205. package/dist/src/typus_perp/lp-pool/functions.d.ts +0 -460
  206. package/dist/src/typus_perp/lp-pool/functions.js +0 -732
  207. package/dist/src/typus_perp/lp-pool/structs.d.ts +0 -3705
  208. package/dist/src/typus_perp/lp-pool/structs.js +0 -6789
  209. package/dist/src/typus_perp/math/functions.d.ts +0 -29
  210. package/dist/src/typus_perp/math/functions.js +0 -61
  211. package/dist/src/typus_perp/position/functions.d.ts +0 -379
  212. package/dist/src/typus_perp/position/functions.js +0 -713
  213. package/dist/src/typus_perp/position/structs.d.ts +0 -905
  214. package/dist/src/typus_perp/position/structs.js +0 -1450
  215. package/dist/src/typus_perp/symbol/functions.d.ts +0 -9
  216. package/dist/src/typus_perp/symbol/functions.js +0 -24
  217. package/dist/src/typus_perp/symbol/structs.d.ts +0 -70
  218. package/dist/src/typus_perp/symbol/structs.js +0 -235
  219. package/dist/src/typus_perp/tlp/functions.d.ts +0 -19
  220. package/dist/src/typus_perp/tlp/functions.js +0 -40
  221. package/dist/src/typus_perp/tlp/structs.d.ts +0 -89
  222. package/dist/src/typus_perp/tlp/structs.js +0 -365
  223. package/dist/src/typus_perp/token-interface/functions.d.ts +0 -11
  224. package/dist/src/typus_perp/token-interface/functions.js +0 -22
  225. package/dist/src/typus_perp/trading/functions.d.ts +0 -812
  226. package/dist/src/typus_perp/trading/functions.js +0 -1218
  227. package/dist/src/typus_perp/trading/structs.d.ts +0 -3060
  228. package/dist/src/typus_perp/trading/structs.js +0 -5813
  229. package/dist/src/typus_perp/treasury-caps/functions.d.ts +0 -9
  230. package/dist/src/typus_perp/treasury-caps/functions.js +0 -36
  231. package/dist/src/typus_perp/treasury-caps/structs.d.ts +0 -49
  232. package/dist/src/typus_perp/treasury-caps/structs.js +0 -223
  233. package/dist/src/typus_perp/user-account/functions.d.ts +0 -36
  234. package/dist/src/typus_perp/user-account/functions.js +0 -70
  235. package/dist/src/typus_perp/user-account/structs.d.ts +0 -148
  236. package/dist/src/typus_perp/user-account/structs.js +0 -448
  237. package/dist/src/typus_stake_pool/admin/functions.d.ts +0 -49
  238. package/dist/src/typus_stake_pool/admin/functions.js +0 -105
  239. package/dist/src/typus_stake_pool/admin/structs.d.ts +0 -365
  240. package/dist/src/typus_stake_pool/admin/structs.js +0 -789
  241. package/dist/src/typus_stake_pool/index.d.ts +0 -1
  242. package/dist/src/typus_stake_pool/index.js +0 -7
  243. package/dist/src/typus_stake_pool/init.d.ts +0 -2
  244. package/dist/src/typus_stake_pool/init.js +0 -69
  245. package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +0 -229
  246. package/dist/src/typus_stake_pool/stake-pool/functions.js +0 -380
  247. package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +0 -2199
  248. package/dist/src/typus_stake_pool/stake-pool/structs.js +0 -4653
  249. /package/dist/src/{pyth.d.ts → grpc/ledgerService.d.ts} +0 -0
@@ -1,3705 +0,0 @@
1
- import * as reified from "../../_framework/reified";
2
- import { TypeName } from "../../_dependencies/source/0x1/type-name/structs";
3
- import { Balance } from "../../_dependencies/source/0x2/balance/structs";
4
- import { UID } from "../../_dependencies/source/0x2/object/structs";
5
- import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToPhantomTypeArgument, ToTypeStr } from "../../_framework/reified";
6
- import { FieldsWithTypes } from "../../_framework/util";
7
- import { Vector } from "../../_framework/vector";
8
- import { UnsettledBidReceipt } from "../escrow/structs";
9
- import { PKG_V1 } from "../index";
10
- import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
11
- export declare function isAddLiquidityTokenEvent(type: string): boolean;
12
- export interface AddLiquidityTokenEventFields {
13
- sender: ToField<"address">;
14
- index: ToField<"u64">;
15
- tokenType: ToField<TypeName>;
16
- config: ToField<Config>;
17
- state: ToField<State>;
18
- u64Padding: ToField<Vector<"u64">>;
19
- }
20
- export type AddLiquidityTokenEventReified = Reified<AddLiquidityTokenEvent, AddLiquidityTokenEventFields>;
21
- export declare class AddLiquidityTokenEvent implements StructClass {
22
- __StructClass: true;
23
- static readonly $typeName: string;
24
- static readonly $numTypeParams = 0;
25
- static readonly $isPhantom: readonly [];
26
- readonly $typeName: string;
27
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::AddLiquidityTokenEvent`;
28
- readonly $typeArgs: [];
29
- readonly $isPhantom: readonly [];
30
- readonly sender: ToField<"address">;
31
- readonly index: ToField<"u64">;
32
- readonly tokenType: ToField<TypeName>;
33
- readonly config: ToField<Config>;
34
- readonly state: ToField<State>;
35
- readonly u64Padding: ToField<Vector<"u64">>;
36
- private constructor();
37
- static reified(): AddLiquidityTokenEventReified;
38
- static get r(): reified.StructClassReified<AddLiquidityTokenEvent, AddLiquidityTokenEventFields>;
39
- static phantom(): PhantomReified<ToTypeStr<AddLiquidityTokenEvent>>;
40
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::AddLiquidityTokenEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::AddLiquidityTokenEvent">;
41
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
42
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
43
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
44
- token_type: import("@mysten/sui/bcs").BcsStruct<{
45
- name: import("@mysten/sui/bcs").BcsStruct<{
46
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
47
- length: number;
48
- }, string>;
49
- }, string>;
50
- }, string>;
51
- config: import("@mysten/sui/bcs").BcsStruct<{
52
- oracle_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
53
- liquidity_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
54
- spot_config: import("@mysten/sui/bcs").BcsStruct<{
55
- min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
56
- max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
57
- target_weight_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
58
- basic_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
59
- additional_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
60
- basic_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
61
- additional_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
62
- swap_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
63
- swap_fee_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
64
- lending_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
65
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
66
- length: number;
67
- }, string>;
68
- }, string>;
69
- margin_config: import("@mysten/sui/bcs").BcsStruct<{
70
- basic_borrow_rate_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
71
- basic_borrow_rate_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
72
- basic_borrow_rate_2: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
73
- utilization_threshold_bp_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
74
- utilization_threshold_bp_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
75
- borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
76
- max_order_reserve_ratio_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
77
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
78
- length: number;
79
- }, string>;
80
- }, string>;
81
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
82
- length: number;
83
- }, string>;
84
- }, string>;
85
- state: import("@mysten/sui/bcs").BcsStruct<{
86
- liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
87
- value_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
88
- reserved_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
89
- update_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
90
- is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
91
- last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
92
- cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
93
- previous_last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
94
- previous_cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
95
- current_lending_amount: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
96
- length: number;
97
- }, string>;
98
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
99
- length: number;
100
- }, string>;
101
- }, string>;
102
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
103
- length: number;
104
- }, string>;
105
- }, string>;
106
- static fromFields(fields: Record<string, any>): AddLiquidityTokenEvent;
107
- static fromFieldsWithTypes(item: FieldsWithTypes): AddLiquidityTokenEvent;
108
- static fromBcs(data: Uint8Array): AddLiquidityTokenEvent;
109
- toJSONField(): {
110
- sender: string;
111
- index: string;
112
- tokenType: {
113
- name: string;
114
- };
115
- config: {
116
- oracleId: string;
117
- liquidityTokenDecimal: string;
118
- spotConfig: {
119
- minDeposit: string;
120
- maxCapacity: string;
121
- targetWeightBp: string;
122
- basicMintFeeBp: string;
123
- additionalMintFeeBp: string;
124
- basicBurnFeeBp: string;
125
- additionalBurnFeeBp: string;
126
- swapFeeBp: string;
127
- swapFeeProtocolShareBp: string;
128
- lendingProtocolShareBp: string;
129
- u64Padding: string[];
130
- };
131
- marginConfig: {
132
- basicBorrowRate0: string;
133
- basicBorrowRate1: string;
134
- basicBorrowRate2: string;
135
- utilizationThresholdBp0: string;
136
- utilizationThresholdBp1: string;
137
- borrowIntervalTsMs: string;
138
- maxOrderReserveRatioBp: string;
139
- u64Padding: string[];
140
- };
141
- u64Padding: string[];
142
- };
143
- state: {
144
- liquidityAmount: string;
145
- valueInUsd: string;
146
- reservedAmount: string;
147
- updateTsMs: string;
148
- isActive: boolean;
149
- lastBorrowRateTsMs: string;
150
- cumulativeBorrowRate: string;
151
- previousLastBorrowRateTsMs: string;
152
- previousCumulativeBorrowRate: string;
153
- currentLendingAmount: string[];
154
- u64Padding: string[];
155
- };
156
- u64Padding: string[];
157
- };
158
- toJSON(): {
159
- sender: string;
160
- index: string;
161
- tokenType: {
162
- name: string;
163
- };
164
- config: {
165
- oracleId: string;
166
- liquidityTokenDecimal: string;
167
- spotConfig: {
168
- minDeposit: string;
169
- maxCapacity: string;
170
- targetWeightBp: string;
171
- basicMintFeeBp: string;
172
- additionalMintFeeBp: string;
173
- basicBurnFeeBp: string;
174
- additionalBurnFeeBp: string;
175
- swapFeeBp: string;
176
- swapFeeProtocolShareBp: string;
177
- lendingProtocolShareBp: string;
178
- u64Padding: string[];
179
- };
180
- marginConfig: {
181
- basicBorrowRate0: string;
182
- basicBorrowRate1: string;
183
- basicBorrowRate2: string;
184
- utilizationThresholdBp0: string;
185
- utilizationThresholdBp1: string;
186
- borrowIntervalTsMs: string;
187
- maxOrderReserveRatioBp: string;
188
- u64Padding: string[];
189
- };
190
- u64Padding: string[];
191
- };
192
- state: {
193
- liquidityAmount: string;
194
- valueInUsd: string;
195
- reservedAmount: string;
196
- updateTsMs: string;
197
- isActive: boolean;
198
- lastBorrowRateTsMs: string;
199
- cumulativeBorrowRate: string;
200
- previousLastBorrowRateTsMs: string;
201
- previousCumulativeBorrowRate: string;
202
- currentLendingAmount: string[];
203
- u64Padding: string[];
204
- };
205
- u64Padding: string[];
206
- $typeName: string;
207
- $typeArgs: [];
208
- };
209
- static fromJSONField(field: any): AddLiquidityTokenEvent;
210
- static fromJSON(json: Record<string, any>): AddLiquidityTokenEvent;
211
- static fromSuiParsedData(content: SuiParsedData): AddLiquidityTokenEvent;
212
- static fromSuiObjectData(data: SuiObjectData): AddLiquidityTokenEvent;
213
- static fetch(client: SuiClient, id: string): Promise<AddLiquidityTokenEvent>;
214
- }
215
- export declare function isBurnLpEvent(type: string): boolean;
216
- export interface BurnLpEventFields {
217
- sender: ToField<"address">;
218
- index: ToField<"u64">;
219
- lpTokenType: ToField<TypeName>;
220
- burnLpAmount: ToField<"u64">;
221
- burnAmountUsd: ToField<"u64">;
222
- burnFeeUsd: ToField<"u64">;
223
- liquidityTokenType: ToField<TypeName>;
224
- withdrawTokenAmount: ToField<"u64">;
225
- u64Padding: ToField<Vector<"u64">>;
226
- }
227
- export type BurnLpEventReified = Reified<BurnLpEvent, BurnLpEventFields>;
228
- export declare class BurnLpEvent implements StructClass {
229
- __StructClass: true;
230
- static readonly $typeName: string;
231
- static readonly $numTypeParams = 0;
232
- static readonly $isPhantom: readonly [];
233
- readonly $typeName: string;
234
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::BurnLpEvent`;
235
- readonly $typeArgs: [];
236
- readonly $isPhantom: readonly [];
237
- readonly sender: ToField<"address">;
238
- readonly index: ToField<"u64">;
239
- readonly lpTokenType: ToField<TypeName>;
240
- readonly burnLpAmount: ToField<"u64">;
241
- readonly burnAmountUsd: ToField<"u64">;
242
- readonly burnFeeUsd: ToField<"u64">;
243
- readonly liquidityTokenType: ToField<TypeName>;
244
- readonly withdrawTokenAmount: ToField<"u64">;
245
- readonly u64Padding: ToField<Vector<"u64">>;
246
- private constructor();
247
- static reified(): BurnLpEventReified;
248
- static get r(): reified.StructClassReified<BurnLpEvent, BurnLpEventFields>;
249
- static phantom(): PhantomReified<ToTypeStr<BurnLpEvent>>;
250
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::BurnLpEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::BurnLpEvent">;
251
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
252
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
253
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
254
- lp_token_type: import("@mysten/sui/bcs").BcsStruct<{
255
- name: import("@mysten/sui/bcs").BcsStruct<{
256
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
257
- length: number;
258
- }, string>;
259
- }, string>;
260
- }, string>;
261
- burn_lp_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
262
- burn_amount_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
263
- burn_fee_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
264
- liquidity_token_type: import("@mysten/sui/bcs").BcsStruct<{
265
- name: import("@mysten/sui/bcs").BcsStruct<{
266
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
267
- length: number;
268
- }, string>;
269
- }, string>;
270
- }, string>;
271
- withdraw_token_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
272
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
273
- length: number;
274
- }, string>;
275
- }, string>;
276
- static fromFields(fields: Record<string, any>): BurnLpEvent;
277
- static fromFieldsWithTypes(item: FieldsWithTypes): BurnLpEvent;
278
- static fromBcs(data: Uint8Array): BurnLpEvent;
279
- toJSONField(): {
280
- sender: string;
281
- index: string;
282
- lpTokenType: {
283
- name: string;
284
- };
285
- burnLpAmount: string;
286
- burnAmountUsd: string;
287
- burnFeeUsd: string;
288
- liquidityTokenType: {
289
- name: string;
290
- };
291
- withdrawTokenAmount: string;
292
- u64Padding: string[];
293
- };
294
- toJSON(): {
295
- sender: string;
296
- index: string;
297
- lpTokenType: {
298
- name: string;
299
- };
300
- burnLpAmount: string;
301
- burnAmountUsd: string;
302
- burnFeeUsd: string;
303
- liquidityTokenType: {
304
- name: string;
305
- };
306
- withdrawTokenAmount: string;
307
- u64Padding: string[];
308
- $typeName: string;
309
- $typeArgs: [];
310
- };
311
- static fromJSONField(field: any): BurnLpEvent;
312
- static fromJSON(json: Record<string, any>): BurnLpEvent;
313
- static fromSuiParsedData(content: SuiParsedData): BurnLpEvent;
314
- static fromSuiObjectData(data: SuiObjectData): BurnLpEvent;
315
- static fetch(client: SuiClient, id: string): Promise<BurnLpEvent>;
316
- }
317
- export declare function isCompleteRebalancingEvent(type: string): boolean;
318
- export interface CompleteRebalancingEventFields {
319
- index: ToField<"u64">;
320
- fromToken: ToField<TypeName>;
321
- toToken: ToField<TypeName>;
322
- fromTokenOraclePrice: ToField<"u64">;
323
- toTokenOraclePrice: ToField<"u64">;
324
- swappedBackUsd: ToField<"u64">;
325
- tvlUsd: ToField<"u64">;
326
- fromTokenLiquidityAmount: ToField<"u64">;
327
- toTokenLiquidityAmount: ToField<"u64">;
328
- u64Padding: ToField<Vector<"u64">>;
329
- }
330
- export type CompleteRebalancingEventReified = Reified<CompleteRebalancingEvent, CompleteRebalancingEventFields>;
331
- export declare class CompleteRebalancingEvent implements StructClass {
332
- __StructClass: true;
333
- static readonly $typeName: string;
334
- static readonly $numTypeParams = 0;
335
- static readonly $isPhantom: readonly [];
336
- readonly $typeName: string;
337
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::CompleteRebalancingEvent`;
338
- readonly $typeArgs: [];
339
- readonly $isPhantom: readonly [];
340
- readonly index: ToField<"u64">;
341
- readonly fromToken: ToField<TypeName>;
342
- readonly toToken: ToField<TypeName>;
343
- readonly fromTokenOraclePrice: ToField<"u64">;
344
- readonly toTokenOraclePrice: ToField<"u64">;
345
- readonly swappedBackUsd: ToField<"u64">;
346
- readonly tvlUsd: ToField<"u64">;
347
- readonly fromTokenLiquidityAmount: ToField<"u64">;
348
- readonly toTokenLiquidityAmount: ToField<"u64">;
349
- readonly u64Padding: ToField<Vector<"u64">>;
350
- private constructor();
351
- static reified(): CompleteRebalancingEventReified;
352
- static get r(): reified.StructClassReified<CompleteRebalancingEvent, CompleteRebalancingEventFields>;
353
- static phantom(): PhantomReified<ToTypeStr<CompleteRebalancingEvent>>;
354
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::CompleteRebalancingEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::CompleteRebalancingEvent">;
355
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
356
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
357
- from_token: import("@mysten/sui/bcs").BcsStruct<{
358
- name: import("@mysten/sui/bcs").BcsStruct<{
359
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
360
- length: number;
361
- }, string>;
362
- }, string>;
363
- }, string>;
364
- to_token: import("@mysten/sui/bcs").BcsStruct<{
365
- name: import("@mysten/sui/bcs").BcsStruct<{
366
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
367
- length: number;
368
- }, string>;
369
- }, string>;
370
- }, string>;
371
- from_token_oracle_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
372
- to_token_oracle_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
373
- swapped_back_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
374
- tvl_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
375
- from_token_liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
376
- to_token_liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
377
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
378
- length: number;
379
- }, string>;
380
- }, string>;
381
- static fromFields(fields: Record<string, any>): CompleteRebalancingEvent;
382
- static fromFieldsWithTypes(item: FieldsWithTypes): CompleteRebalancingEvent;
383
- static fromBcs(data: Uint8Array): CompleteRebalancingEvent;
384
- toJSONField(): {
385
- index: string;
386
- fromToken: {
387
- name: string;
388
- };
389
- toToken: {
390
- name: string;
391
- };
392
- fromTokenOraclePrice: string;
393
- toTokenOraclePrice: string;
394
- swappedBackUsd: string;
395
- tvlUsd: string;
396
- fromTokenLiquidityAmount: string;
397
- toTokenLiquidityAmount: string;
398
- u64Padding: string[];
399
- };
400
- toJSON(): {
401
- index: string;
402
- fromToken: {
403
- name: string;
404
- };
405
- toToken: {
406
- name: string;
407
- };
408
- fromTokenOraclePrice: string;
409
- toTokenOraclePrice: string;
410
- swappedBackUsd: string;
411
- tvlUsd: string;
412
- fromTokenLiquidityAmount: string;
413
- toTokenLiquidityAmount: string;
414
- u64Padding: string[];
415
- $typeName: string;
416
- $typeArgs: [];
417
- };
418
- static fromJSONField(field: any): CompleteRebalancingEvent;
419
- static fromJSON(json: Record<string, any>): CompleteRebalancingEvent;
420
- static fromSuiParsedData(content: SuiParsedData): CompleteRebalancingEvent;
421
- static fromSuiObjectData(data: SuiObjectData): CompleteRebalancingEvent;
422
- static fetch(client: SuiClient, id: string): Promise<CompleteRebalancingEvent>;
423
- }
424
- export declare function isCompleteRemoveLiquidityTokenProcessEvent(type: string): boolean;
425
- export interface CompleteRemoveLiquidityTokenProcessEventFields {
426
- index: ToField<"u64">;
427
- liquidityToken: ToField<TypeName>;
428
- removedUsd: ToField<"u64">;
429
- repaidUsd: ToField<"u64">;
430
- u64Padding: ToField<Vector<"u64">>;
431
- }
432
- export type CompleteRemoveLiquidityTokenProcessEventReified = Reified<CompleteRemoveLiquidityTokenProcessEvent, CompleteRemoveLiquidityTokenProcessEventFields>;
433
- export declare class CompleteRemoveLiquidityTokenProcessEvent implements StructClass {
434
- __StructClass: true;
435
- static readonly $typeName: string;
436
- static readonly $numTypeParams = 0;
437
- static readonly $isPhantom: readonly [];
438
- readonly $typeName: string;
439
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::CompleteRemoveLiquidityTokenProcessEvent`;
440
- readonly $typeArgs: [];
441
- readonly $isPhantom: readonly [];
442
- readonly index: ToField<"u64">;
443
- readonly liquidityToken: ToField<TypeName>;
444
- readonly removedUsd: ToField<"u64">;
445
- readonly repaidUsd: ToField<"u64">;
446
- readonly u64Padding: ToField<Vector<"u64">>;
447
- private constructor();
448
- static reified(): CompleteRemoveLiquidityTokenProcessEventReified;
449
- static get r(): reified.StructClassReified<CompleteRemoveLiquidityTokenProcessEvent, CompleteRemoveLiquidityTokenProcessEventFields>;
450
- static phantom(): PhantomReified<ToTypeStr<CompleteRemoveLiquidityTokenProcessEvent>>;
451
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::CompleteRemoveLiquidityTokenProcessEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::CompleteRemoveLiquidityTokenProcessEvent">;
452
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
453
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
454
- liquidity_token: import("@mysten/sui/bcs").BcsStruct<{
455
- name: import("@mysten/sui/bcs").BcsStruct<{
456
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
457
- length: number;
458
- }, string>;
459
- }, string>;
460
- }, string>;
461
- removed_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
462
- repaid_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
463
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
464
- length: number;
465
- }, string>;
466
- }, string>;
467
- static fromFields(fields: Record<string, any>): CompleteRemoveLiquidityTokenProcessEvent;
468
- static fromFieldsWithTypes(item: FieldsWithTypes): CompleteRemoveLiquidityTokenProcessEvent;
469
- static fromBcs(data: Uint8Array): CompleteRemoveLiquidityTokenProcessEvent;
470
- toJSONField(): {
471
- index: string;
472
- liquidityToken: {
473
- name: string;
474
- };
475
- removedUsd: string;
476
- repaidUsd: string;
477
- u64Padding: string[];
478
- };
479
- toJSON(): {
480
- index: string;
481
- liquidityToken: {
482
- name: string;
483
- };
484
- removedUsd: string;
485
- repaidUsd: string;
486
- u64Padding: string[];
487
- $typeName: string;
488
- $typeArgs: [];
489
- };
490
- static fromJSONField(field: any): CompleteRemoveLiquidityTokenProcessEvent;
491
- static fromJSON(json: Record<string, any>): CompleteRemoveLiquidityTokenProcessEvent;
492
- static fromSuiParsedData(content: SuiParsedData): CompleteRemoveLiquidityTokenProcessEvent;
493
- static fromSuiObjectData(data: SuiObjectData): CompleteRemoveLiquidityTokenProcessEvent;
494
- static fetch(client: SuiClient, id: string): Promise<CompleteRemoveLiquidityTokenProcessEvent>;
495
- }
496
- export declare function isConfig(type: string): boolean;
497
- export interface ConfigFields {
498
- oracleId: ToField<"address">;
499
- liquidityTokenDecimal: ToField<"u64">;
500
- spotConfig: ToField<SpotConfig>;
501
- marginConfig: ToField<MarginConfig>;
502
- u64Padding: ToField<Vector<"u64">>;
503
- }
504
- export type ConfigReified = Reified<Config, ConfigFields>;
505
- export declare class Config implements StructClass {
506
- __StructClass: true;
507
- static readonly $typeName: string;
508
- static readonly $numTypeParams = 0;
509
- static readonly $isPhantom: readonly [];
510
- readonly $typeName: string;
511
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::Config`;
512
- readonly $typeArgs: [];
513
- readonly $isPhantom: readonly [];
514
- readonly oracleId: ToField<"address">;
515
- readonly liquidityTokenDecimal: ToField<"u64">;
516
- readonly spotConfig: ToField<SpotConfig>;
517
- readonly marginConfig: ToField<MarginConfig>;
518
- readonly u64Padding: ToField<Vector<"u64">>;
519
- private constructor();
520
- static reified(): ConfigReified;
521
- static get r(): reified.StructClassReified<Config, ConfigFields>;
522
- static phantom(): PhantomReified<ToTypeStr<Config>>;
523
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::Config" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::Config">;
524
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
525
- oracle_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
526
- liquidity_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
527
- spot_config: import("@mysten/sui/bcs").BcsStruct<{
528
- min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
529
- max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
530
- target_weight_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
531
- basic_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
532
- additional_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
533
- basic_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
534
- additional_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
535
- swap_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
536
- swap_fee_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
537
- lending_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
538
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
539
- length: number;
540
- }, string>;
541
- }, string>;
542
- margin_config: import("@mysten/sui/bcs").BcsStruct<{
543
- basic_borrow_rate_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
544
- basic_borrow_rate_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
545
- basic_borrow_rate_2: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
546
- utilization_threshold_bp_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
547
- utilization_threshold_bp_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
548
- borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
549
- max_order_reserve_ratio_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
550
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
551
- length: number;
552
- }, string>;
553
- }, string>;
554
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
555
- length: number;
556
- }, string>;
557
- }, string>;
558
- static fromFields(fields: Record<string, any>): Config;
559
- static fromFieldsWithTypes(item: FieldsWithTypes): Config;
560
- static fromBcs(data: Uint8Array): Config;
561
- toJSONField(): {
562
- oracleId: string;
563
- liquidityTokenDecimal: string;
564
- spotConfig: {
565
- minDeposit: string;
566
- maxCapacity: string;
567
- targetWeightBp: string;
568
- basicMintFeeBp: string;
569
- additionalMintFeeBp: string;
570
- basicBurnFeeBp: string;
571
- additionalBurnFeeBp: string;
572
- swapFeeBp: string;
573
- swapFeeProtocolShareBp: string;
574
- lendingProtocolShareBp: string;
575
- u64Padding: string[];
576
- };
577
- marginConfig: {
578
- basicBorrowRate0: string;
579
- basicBorrowRate1: string;
580
- basicBorrowRate2: string;
581
- utilizationThresholdBp0: string;
582
- utilizationThresholdBp1: string;
583
- borrowIntervalTsMs: string;
584
- maxOrderReserveRatioBp: string;
585
- u64Padding: string[];
586
- };
587
- u64Padding: string[];
588
- };
589
- toJSON(): {
590
- oracleId: string;
591
- liquidityTokenDecimal: string;
592
- spotConfig: {
593
- minDeposit: string;
594
- maxCapacity: string;
595
- targetWeightBp: string;
596
- basicMintFeeBp: string;
597
- additionalMintFeeBp: string;
598
- basicBurnFeeBp: string;
599
- additionalBurnFeeBp: string;
600
- swapFeeBp: string;
601
- swapFeeProtocolShareBp: string;
602
- lendingProtocolShareBp: string;
603
- u64Padding: string[];
604
- };
605
- marginConfig: {
606
- basicBorrowRate0: string;
607
- basicBorrowRate1: string;
608
- basicBorrowRate2: string;
609
- utilizationThresholdBp0: string;
610
- utilizationThresholdBp1: string;
611
- borrowIntervalTsMs: string;
612
- maxOrderReserveRatioBp: string;
613
- u64Padding: string[];
614
- };
615
- u64Padding: string[];
616
- $typeName: string;
617
- $typeArgs: [];
618
- };
619
- static fromJSONField(field: any): Config;
620
- static fromJSON(json: Record<string, any>): Config;
621
- static fromSuiParsedData(content: SuiParsedData): Config;
622
- static fromSuiObjectData(data: SuiObjectData): Config;
623
- static fetch(client: SuiClient, id: string): Promise<Config>;
624
- }
625
- export declare function isDeactivatingShares(type: string): boolean;
626
- export interface DeactivatingSharesFields<TOKEN extends PhantomTypeArgument> {
627
- balance: ToField<Balance<TOKEN>>;
628
- redeemTsMs: ToField<"u64">;
629
- unlockTsMs: ToField<"u64">;
630
- u64Padding: ToField<Vector<"u64">>;
631
- }
632
- export type DeactivatingSharesReified<TOKEN extends PhantomTypeArgument> = Reified<DeactivatingShares<TOKEN>, DeactivatingSharesFields<TOKEN>>;
633
- export declare class DeactivatingShares<TOKEN extends PhantomTypeArgument> implements StructClass {
634
- __StructClass: true;
635
- static readonly $typeName: string;
636
- static readonly $numTypeParams = 1;
637
- static readonly $isPhantom: readonly [true];
638
- readonly $typeName: string;
639
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::DeactivatingShares<${PhantomToTypeStr<TOKEN>}>`;
640
- readonly $typeArgs: [PhantomToTypeStr<TOKEN>];
641
- readonly $isPhantom: readonly [true];
642
- readonly balance: ToField<Balance<TOKEN>>;
643
- readonly redeemTsMs: ToField<"u64">;
644
- readonly unlockTsMs: ToField<"u64">;
645
- readonly u64Padding: ToField<Vector<"u64">>;
646
- private constructor();
647
- static reified<TOKEN extends PhantomReified<PhantomTypeArgument>>(TOKEN: TOKEN): DeactivatingSharesReified<ToPhantomTypeArgument<TOKEN>>;
648
- static get r(): typeof DeactivatingShares.reified;
649
- static phantom<TOKEN extends PhantomReified<PhantomTypeArgument>>(TOKEN: TOKEN): PhantomReified<ToTypeStr<DeactivatingShares<ToPhantomTypeArgument<TOKEN>>>>;
650
- static get p(): typeof DeactivatingShares.phantom;
651
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
652
- balance: import("@mysten/sui/bcs").BcsStruct<{
653
- value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
654
- }, string>;
655
- redeem_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
656
- unlock_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
657
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
658
- length: number;
659
- }, string>;
660
- }, string>;
661
- static fromFields<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, fields: Record<string, any>): DeactivatingShares<ToPhantomTypeArgument<TOKEN>>;
662
- static fromFieldsWithTypes<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, item: FieldsWithTypes): DeactivatingShares<ToPhantomTypeArgument<TOKEN>>;
663
- static fromBcs<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, data: Uint8Array): DeactivatingShares<ToPhantomTypeArgument<TOKEN>>;
664
- toJSONField(): {
665
- balance: {
666
- value: string;
667
- };
668
- redeemTsMs: string;
669
- unlockTsMs: string;
670
- u64Padding: string[];
671
- };
672
- toJSON(): {
673
- balance: {
674
- value: string;
675
- };
676
- redeemTsMs: string;
677
- unlockTsMs: string;
678
- u64Padding: string[];
679
- $typeName: string;
680
- $typeArgs: [reified.PhantomToTypeStr<TOKEN>];
681
- };
682
- static fromJSONField<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, field: any): DeactivatingShares<ToPhantomTypeArgument<TOKEN>>;
683
- static fromJSON<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, json: Record<string, any>): DeactivatingShares<ToPhantomTypeArgument<TOKEN>>;
684
- static fromSuiParsedData<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, content: SuiParsedData): DeactivatingShares<ToPhantomTypeArgument<TOKEN>>;
685
- static fromSuiObjectData<TOKEN extends PhantomReified<PhantomTypeArgument>>(typeArg: TOKEN, data: SuiObjectData): DeactivatingShares<ToPhantomTypeArgument<TOKEN>>;
686
- static fetch<TOKEN extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: TOKEN, id: string): Promise<DeactivatingShares<ToPhantomTypeArgument<TOKEN>>>;
687
- }
688
- export declare function isLiquidityPool(type: string): boolean;
689
- export interface LiquidityPoolFields {
690
- id: ToField<UID>;
691
- index: ToField<"u64">;
692
- lpTokenType: ToField<TypeName>;
693
- liquidityTokens: ToField<Vector<TypeName>>;
694
- tokenPools: ToField<Vector<TokenPool>>;
695
- poolInfo: ToField<LiquidityPoolInfo>;
696
- liquidatedUnsettledReceipts: ToField<Vector<UnsettledBidReceipt>>;
697
- u64Padding: ToField<Vector<"u64">>;
698
- bcsPadding: ToField<Vector<"u8">>;
699
- }
700
- export type LiquidityPoolReified = Reified<LiquidityPool, LiquidityPoolFields>;
701
- export declare class LiquidityPool implements StructClass {
702
- __StructClass: true;
703
- static readonly $typeName: string;
704
- static readonly $numTypeParams = 0;
705
- static readonly $isPhantom: readonly [];
706
- readonly $typeName: string;
707
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::LiquidityPool`;
708
- readonly $typeArgs: [];
709
- readonly $isPhantom: readonly [];
710
- readonly id: ToField<UID>;
711
- readonly index: ToField<"u64">;
712
- readonly lpTokenType: ToField<TypeName>;
713
- readonly liquidityTokens: ToField<Vector<TypeName>>;
714
- readonly tokenPools: ToField<Vector<TokenPool>>;
715
- readonly poolInfo: ToField<LiquidityPoolInfo>;
716
- readonly liquidatedUnsettledReceipts: ToField<Vector<UnsettledBidReceipt>>;
717
- readonly u64Padding: ToField<Vector<"u64">>;
718
- readonly bcsPadding: ToField<Vector<"u8">>;
719
- private constructor();
720
- static reified(): LiquidityPoolReified;
721
- static get r(): reified.StructClassReified<LiquidityPool, LiquidityPoolFields>;
722
- static phantom(): PhantomReified<ToTypeStr<LiquidityPool>>;
723
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::LiquidityPool" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::LiquidityPool">;
724
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
725
- id: import("@mysten/sui/bcs").BcsStruct<{
726
- id: import("@mysten/sui/bcs").BcsStruct<{
727
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
728
- }, string>;
729
- }, string>;
730
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
731
- lp_token_type: import("@mysten/sui/bcs").BcsStruct<{
732
- name: import("@mysten/sui/bcs").BcsStruct<{
733
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
734
- length: number;
735
- }, string>;
736
- }, string>;
737
- }, string>;
738
- liquidity_tokens: import("@mysten/sui/bcs").BcsType<{
739
- name: {
740
- bytes: number[];
741
- };
742
- }[], Iterable<{
743
- name: {
744
- bytes: Iterable<number> & {
745
- length: number;
746
- };
747
- };
748
- }> & {
749
- length: number;
750
- }, string>;
751
- token_pools: import("@mysten/sui/bcs").BcsType<{
752
- token_type: {
753
- name: {
754
- bytes: number[];
755
- };
756
- };
757
- config: {
758
- oracle_id: string;
759
- liquidity_token_decimal: string;
760
- spot_config: {
761
- min_deposit: string;
762
- max_capacity: string;
763
- target_weight_bp: string;
764
- basic_mint_fee_bp: string;
765
- additional_mint_fee_bp: string;
766
- basic_burn_fee_bp: string;
767
- additional_burn_fee_bp: string;
768
- swap_fee_bp: string;
769
- swap_fee_protocol_share_bp: string;
770
- lending_protocol_share_bp: string;
771
- u64_padding: string[];
772
- };
773
- margin_config: {
774
- basic_borrow_rate_0: string;
775
- basic_borrow_rate_1: string;
776
- basic_borrow_rate_2: string;
777
- utilization_threshold_bp_0: string;
778
- utilization_threshold_bp_1: string;
779
- borrow_interval_ts_ms: string;
780
- max_order_reserve_ratio_bp: string;
781
- u64_padding: string[];
782
- };
783
- u64_padding: string[];
784
- };
785
- state: {
786
- liquidity_amount: string;
787
- value_in_usd: string;
788
- reserved_amount: string;
789
- update_ts_ms: string;
790
- is_active: boolean;
791
- last_borrow_rate_ts_ms: string;
792
- cumulative_borrow_rate: string;
793
- previous_last_borrow_rate_ts_ms: string;
794
- previous_cumulative_borrow_rate: string;
795
- current_lending_amount: string[];
796
- u64_padding: string[];
797
- };
798
- }[], Iterable<{
799
- token_type: {
800
- name: {
801
- bytes: Iterable<number> & {
802
- length: number;
803
- };
804
- };
805
- };
806
- config: {
807
- oracle_id: string;
808
- liquidity_token_decimal: string | number | bigint;
809
- spot_config: {
810
- min_deposit: string | number | bigint;
811
- max_capacity: string | number | bigint;
812
- target_weight_bp: string | number | bigint;
813
- basic_mint_fee_bp: string | number | bigint;
814
- additional_mint_fee_bp: string | number | bigint;
815
- basic_burn_fee_bp: string | number | bigint;
816
- additional_burn_fee_bp: string | number | bigint;
817
- swap_fee_bp: string | number | bigint;
818
- swap_fee_protocol_share_bp: string | number | bigint;
819
- lending_protocol_share_bp: string | number | bigint;
820
- u64_padding: Iterable<string | number | bigint> & {
821
- length: number;
822
- };
823
- };
824
- margin_config: {
825
- basic_borrow_rate_0: string | number | bigint;
826
- basic_borrow_rate_1: string | number | bigint;
827
- basic_borrow_rate_2: string | number | bigint;
828
- utilization_threshold_bp_0: string | number | bigint;
829
- utilization_threshold_bp_1: string | number | bigint;
830
- borrow_interval_ts_ms: string | number | bigint;
831
- max_order_reserve_ratio_bp: string | number | bigint;
832
- u64_padding: Iterable<string | number | bigint> & {
833
- length: number;
834
- };
835
- };
836
- u64_padding: Iterable<string | number | bigint> & {
837
- length: number;
838
- };
839
- };
840
- state: {
841
- liquidity_amount: string | number | bigint;
842
- value_in_usd: string | number | bigint;
843
- reserved_amount: string | number | bigint;
844
- update_ts_ms: string | number | bigint;
845
- is_active: boolean;
846
- last_borrow_rate_ts_ms: string | number | bigint;
847
- cumulative_borrow_rate: string | number | bigint;
848
- previous_last_borrow_rate_ts_ms: string | number | bigint;
849
- previous_cumulative_borrow_rate: string | number | bigint;
850
- current_lending_amount: Iterable<string | number | bigint> & {
851
- length: number;
852
- };
853
- u64_padding: Iterable<string | number | bigint> & {
854
- length: number;
855
- };
856
- };
857
- }> & {
858
- length: number;
859
- }, string>;
860
- pool_info: import("@mysten/sui/bcs").BcsStruct<{
861
- lp_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
862
- total_share_supply: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
863
- tvl_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
864
- is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
865
- }, string>;
866
- liquidated_unsettled_receipts: import("@mysten/sui/bcs").BcsType<{
867
- receipt: {
868
- id: {
869
- id: {
870
- bytes: string;
871
- };
872
- };
873
- vid: {
874
- bytes: string;
875
- };
876
- index: string;
877
- metadata: {
878
- bytes: number[];
879
- };
880
- u64_padding: string[];
881
- }[];
882
- position_id: string;
883
- user: string;
884
- token_types: {
885
- name: {
886
- bytes: number[];
887
- };
888
- }[];
889
- unrealized_pnl_sign: boolean;
890
- unrealized_pnl: string;
891
- unrealized_trading_fee: string;
892
- unrealized_borrow_fee: string;
893
- unrealized_funding_fee_sign: boolean;
894
- unrealized_funding_fee: string;
895
- unrealized_liquidator_fee: string;
896
- }[], Iterable<{
897
- receipt: Iterable<{
898
- id: {
899
- id: {
900
- bytes: string;
901
- };
902
- };
903
- vid: {
904
- bytes: string;
905
- };
906
- index: string | number | bigint;
907
- metadata: {
908
- bytes: Iterable<number> & {
909
- length: number;
910
- };
911
- };
912
- u64_padding: Iterable<string | number | bigint> & {
913
- length: number;
914
- };
915
- }> & {
916
- length: number;
917
- };
918
- position_id: string | number | bigint;
919
- user: string;
920
- token_types: Iterable<{
921
- name: {
922
- bytes: Iterable<number> & {
923
- length: number;
924
- };
925
- };
926
- }> & {
927
- length: number;
928
- };
929
- unrealized_pnl_sign: boolean;
930
- unrealized_pnl: string | number | bigint;
931
- unrealized_trading_fee: string | number | bigint;
932
- unrealized_borrow_fee: string | number | bigint;
933
- unrealized_funding_fee_sign: boolean;
934
- unrealized_funding_fee: string | number | bigint;
935
- unrealized_liquidator_fee: string | number | bigint;
936
- }> & {
937
- length: number;
938
- }, string>;
939
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
940
- length: number;
941
- }, string>;
942
- bcs_padding: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
943
- length: number;
944
- }, string>;
945
- }, string>;
946
- static fromFields(fields: Record<string, any>): LiquidityPool;
947
- static fromFieldsWithTypes(item: FieldsWithTypes): LiquidityPool;
948
- static fromBcs(data: Uint8Array): LiquidityPool;
949
- toJSONField(): {
950
- id: string;
951
- index: string;
952
- lpTokenType: {
953
- name: string;
954
- };
955
- liquidityTokens: {
956
- name: string;
957
- }[];
958
- tokenPools: {
959
- tokenType: {
960
- name: string;
961
- };
962
- config: {
963
- oracleId: string;
964
- liquidityTokenDecimal: string;
965
- spotConfig: {
966
- minDeposit: string;
967
- maxCapacity: string;
968
- targetWeightBp: string;
969
- basicMintFeeBp: string;
970
- additionalMintFeeBp: string;
971
- basicBurnFeeBp: string;
972
- additionalBurnFeeBp: string;
973
- swapFeeBp: string;
974
- swapFeeProtocolShareBp: string;
975
- lendingProtocolShareBp: string;
976
- u64Padding: string[];
977
- };
978
- marginConfig: {
979
- basicBorrowRate0: string;
980
- basicBorrowRate1: string;
981
- basicBorrowRate2: string;
982
- utilizationThresholdBp0: string;
983
- utilizationThresholdBp1: string;
984
- borrowIntervalTsMs: string;
985
- maxOrderReserveRatioBp: string;
986
- u64Padding: string[];
987
- };
988
- u64Padding: string[];
989
- };
990
- state: {
991
- liquidityAmount: string;
992
- valueInUsd: string;
993
- reservedAmount: string;
994
- updateTsMs: string;
995
- isActive: boolean;
996
- lastBorrowRateTsMs: string;
997
- cumulativeBorrowRate: string;
998
- previousLastBorrowRateTsMs: string;
999
- previousCumulativeBorrowRate: string;
1000
- currentLendingAmount: string[];
1001
- u64Padding: string[];
1002
- };
1003
- }[];
1004
- poolInfo: {
1005
- lpTokenDecimal: string;
1006
- totalShareSupply: string;
1007
- tvlUsd: string;
1008
- isActive: boolean;
1009
- };
1010
- liquidatedUnsettledReceipts: {
1011
- receipt: {
1012
- id: string;
1013
- vid: string;
1014
- index: string;
1015
- metadata: string;
1016
- u64Padding: string[];
1017
- }[];
1018
- positionId: string;
1019
- user: string;
1020
- tokenTypes: {
1021
- name: string;
1022
- }[];
1023
- unrealizedPnlSign: boolean;
1024
- unrealizedPnl: string;
1025
- unrealizedTradingFee: string;
1026
- unrealizedBorrowFee: string;
1027
- unrealizedFundingFeeSign: boolean;
1028
- unrealizedFundingFee: string;
1029
- unrealizedLiquidatorFee: string;
1030
- }[];
1031
- u64Padding: string[];
1032
- bcsPadding: number[];
1033
- };
1034
- toJSON(): {
1035
- id: string;
1036
- index: string;
1037
- lpTokenType: {
1038
- name: string;
1039
- };
1040
- liquidityTokens: {
1041
- name: string;
1042
- }[];
1043
- tokenPools: {
1044
- tokenType: {
1045
- name: string;
1046
- };
1047
- config: {
1048
- oracleId: string;
1049
- liquidityTokenDecimal: string;
1050
- spotConfig: {
1051
- minDeposit: string;
1052
- maxCapacity: string;
1053
- targetWeightBp: string;
1054
- basicMintFeeBp: string;
1055
- additionalMintFeeBp: string;
1056
- basicBurnFeeBp: string;
1057
- additionalBurnFeeBp: string;
1058
- swapFeeBp: string;
1059
- swapFeeProtocolShareBp: string;
1060
- lendingProtocolShareBp: string;
1061
- u64Padding: string[];
1062
- };
1063
- marginConfig: {
1064
- basicBorrowRate0: string;
1065
- basicBorrowRate1: string;
1066
- basicBorrowRate2: string;
1067
- utilizationThresholdBp0: string;
1068
- utilizationThresholdBp1: string;
1069
- borrowIntervalTsMs: string;
1070
- maxOrderReserveRatioBp: string;
1071
- u64Padding: string[];
1072
- };
1073
- u64Padding: string[];
1074
- };
1075
- state: {
1076
- liquidityAmount: string;
1077
- valueInUsd: string;
1078
- reservedAmount: string;
1079
- updateTsMs: string;
1080
- isActive: boolean;
1081
- lastBorrowRateTsMs: string;
1082
- cumulativeBorrowRate: string;
1083
- previousLastBorrowRateTsMs: string;
1084
- previousCumulativeBorrowRate: string;
1085
- currentLendingAmount: string[];
1086
- u64Padding: string[];
1087
- };
1088
- }[];
1089
- poolInfo: {
1090
- lpTokenDecimal: string;
1091
- totalShareSupply: string;
1092
- tvlUsd: string;
1093
- isActive: boolean;
1094
- };
1095
- liquidatedUnsettledReceipts: {
1096
- receipt: {
1097
- id: string;
1098
- vid: string;
1099
- index: string;
1100
- metadata: string;
1101
- u64Padding: string[];
1102
- }[];
1103
- positionId: string;
1104
- user: string;
1105
- tokenTypes: {
1106
- name: string;
1107
- }[];
1108
- unrealizedPnlSign: boolean;
1109
- unrealizedPnl: string;
1110
- unrealizedTradingFee: string;
1111
- unrealizedBorrowFee: string;
1112
- unrealizedFundingFeeSign: boolean;
1113
- unrealizedFundingFee: string;
1114
- unrealizedLiquidatorFee: string;
1115
- }[];
1116
- u64Padding: string[];
1117
- bcsPadding: number[];
1118
- $typeName: string;
1119
- $typeArgs: [];
1120
- };
1121
- static fromJSONField(field: any): LiquidityPool;
1122
- static fromJSON(json: Record<string, any>): LiquidityPool;
1123
- static fromSuiParsedData(content: SuiParsedData): LiquidityPool;
1124
- static fromSuiObjectData(data: SuiObjectData): LiquidityPool;
1125
- static fetch(client: SuiClient, id: string): Promise<LiquidityPool>;
1126
- }
1127
- export declare function isLiquidityPoolInfo(type: string): boolean;
1128
- export interface LiquidityPoolInfoFields {
1129
- lpTokenDecimal: ToField<"u64">;
1130
- totalShareSupply: ToField<"u64">;
1131
- tvlUsd: ToField<"u64">;
1132
- isActive: ToField<"bool">;
1133
- }
1134
- export type LiquidityPoolInfoReified = Reified<LiquidityPoolInfo, LiquidityPoolInfoFields>;
1135
- export declare class LiquidityPoolInfo implements StructClass {
1136
- __StructClass: true;
1137
- static readonly $typeName: string;
1138
- static readonly $numTypeParams = 0;
1139
- static readonly $isPhantom: readonly [];
1140
- readonly $typeName: string;
1141
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::LiquidityPoolInfo`;
1142
- readonly $typeArgs: [];
1143
- readonly $isPhantom: readonly [];
1144
- readonly lpTokenDecimal: ToField<"u64">;
1145
- readonly totalShareSupply: ToField<"u64">;
1146
- readonly tvlUsd: ToField<"u64">;
1147
- readonly isActive: ToField<"bool">;
1148
- private constructor();
1149
- static reified(): LiquidityPoolInfoReified;
1150
- static get r(): reified.StructClassReified<LiquidityPoolInfo, LiquidityPoolInfoFields>;
1151
- static phantom(): PhantomReified<ToTypeStr<LiquidityPoolInfo>>;
1152
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::LiquidityPoolInfo" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::LiquidityPoolInfo">;
1153
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1154
- lp_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1155
- total_share_supply: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1156
- tvl_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1157
- is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
1158
- }, string>;
1159
- static fromFields(fields: Record<string, any>): LiquidityPoolInfo;
1160
- static fromFieldsWithTypes(item: FieldsWithTypes): LiquidityPoolInfo;
1161
- static fromBcs(data: Uint8Array): LiquidityPoolInfo;
1162
- toJSONField(): {
1163
- lpTokenDecimal: string;
1164
- totalShareSupply: string;
1165
- tvlUsd: string;
1166
- isActive: boolean;
1167
- };
1168
- toJSON(): {
1169
- lpTokenDecimal: string;
1170
- totalShareSupply: string;
1171
- tvlUsd: string;
1172
- isActive: boolean;
1173
- $typeName: string;
1174
- $typeArgs: [];
1175
- };
1176
- static fromJSONField(field: any): LiquidityPoolInfo;
1177
- static fromJSON(json: Record<string, any>): LiquidityPoolInfo;
1178
- static fromSuiParsedData(content: SuiParsedData): LiquidityPoolInfo;
1179
- static fromSuiObjectData(data: SuiObjectData): LiquidityPoolInfo;
1180
- static fetch(client: SuiClient, id: string): Promise<LiquidityPoolInfo>;
1181
- }
1182
- export declare function isManagerDepositReceipt(type: string): boolean;
1183
- export interface ManagerDepositReceiptFields {
1184
- id: ToField<UID>;
1185
- tokenType: ToField<TypeName>;
1186
- amount: ToField<"u64">;
1187
- }
1188
- export type ManagerDepositReceiptReified = Reified<ManagerDepositReceipt, ManagerDepositReceiptFields>;
1189
- export declare class ManagerDepositReceipt implements StructClass {
1190
- __StructClass: true;
1191
- static readonly $typeName: string;
1192
- static readonly $numTypeParams = 0;
1193
- static readonly $isPhantom: readonly [];
1194
- readonly $typeName: string;
1195
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::ManagerDepositReceipt`;
1196
- readonly $typeArgs: [];
1197
- readonly $isPhantom: readonly [];
1198
- readonly id: ToField<UID>;
1199
- readonly tokenType: ToField<TypeName>;
1200
- readonly amount: ToField<"u64">;
1201
- private constructor();
1202
- static reified(): ManagerDepositReceiptReified;
1203
- static get r(): reified.StructClassReified<ManagerDepositReceipt, ManagerDepositReceiptFields>;
1204
- static phantom(): PhantomReified<ToTypeStr<ManagerDepositReceipt>>;
1205
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::ManagerDepositReceipt" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::ManagerDepositReceipt">;
1206
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1207
- id: import("@mysten/sui/bcs").BcsStruct<{
1208
- id: import("@mysten/sui/bcs").BcsStruct<{
1209
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
1210
- }, string>;
1211
- }, string>;
1212
- token_type: import("@mysten/sui/bcs").BcsStruct<{
1213
- name: import("@mysten/sui/bcs").BcsStruct<{
1214
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1215
- length: number;
1216
- }, string>;
1217
- }, string>;
1218
- }, string>;
1219
- amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1220
- }, string>;
1221
- static fromFields(fields: Record<string, any>): ManagerDepositReceipt;
1222
- static fromFieldsWithTypes(item: FieldsWithTypes): ManagerDepositReceipt;
1223
- static fromBcs(data: Uint8Array): ManagerDepositReceipt;
1224
- toJSONField(): {
1225
- id: string;
1226
- tokenType: {
1227
- name: string;
1228
- };
1229
- amount: string;
1230
- };
1231
- toJSON(): {
1232
- id: string;
1233
- tokenType: {
1234
- name: string;
1235
- };
1236
- amount: string;
1237
- $typeName: string;
1238
- $typeArgs: [];
1239
- };
1240
- static fromJSONField(field: any): ManagerDepositReceipt;
1241
- static fromJSON(json: Record<string, any>): ManagerDepositReceipt;
1242
- static fromSuiParsedData(content: SuiParsedData): ManagerDepositReceipt;
1243
- static fromSuiObjectData(data: SuiObjectData): ManagerDepositReceipt;
1244
- static fetch(client: SuiClient, id: string): Promise<ManagerDepositReceipt>;
1245
- }
1246
- export declare function isManagerDepositReceiptV2(type: string): boolean;
1247
- export interface ManagerDepositReceiptV2Fields {
1248
- id: ToField<UID>;
1249
- index: ToField<"u64">;
1250
- tokenType: ToField<TypeName>;
1251
- amount: ToField<"u64">;
1252
- u64Padding: ToField<Vector<"u64">>;
1253
- }
1254
- export type ManagerDepositReceiptV2Reified = Reified<ManagerDepositReceiptV2, ManagerDepositReceiptV2Fields>;
1255
- export declare class ManagerDepositReceiptV2 implements StructClass {
1256
- __StructClass: true;
1257
- static readonly $typeName: string;
1258
- static readonly $numTypeParams = 0;
1259
- static readonly $isPhantom: readonly [];
1260
- readonly $typeName: string;
1261
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::ManagerDepositReceiptV2`;
1262
- readonly $typeArgs: [];
1263
- readonly $isPhantom: readonly [];
1264
- readonly id: ToField<UID>;
1265
- readonly index: ToField<"u64">;
1266
- readonly tokenType: ToField<TypeName>;
1267
- readonly amount: ToField<"u64">;
1268
- readonly u64Padding: ToField<Vector<"u64">>;
1269
- private constructor();
1270
- static reified(): ManagerDepositReceiptV2Reified;
1271
- static get r(): reified.StructClassReified<ManagerDepositReceiptV2, ManagerDepositReceiptV2Fields>;
1272
- static phantom(): PhantomReified<ToTypeStr<ManagerDepositReceiptV2>>;
1273
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::ManagerDepositReceiptV2" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::ManagerDepositReceiptV2">;
1274
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1275
- id: import("@mysten/sui/bcs").BcsStruct<{
1276
- id: import("@mysten/sui/bcs").BcsStruct<{
1277
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
1278
- }, string>;
1279
- }, string>;
1280
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1281
- token_type: import("@mysten/sui/bcs").BcsStruct<{
1282
- name: import("@mysten/sui/bcs").BcsStruct<{
1283
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1284
- length: number;
1285
- }, string>;
1286
- }, string>;
1287
- }, string>;
1288
- amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1289
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
1290
- length: number;
1291
- }, string>;
1292
- }, string>;
1293
- static fromFields(fields: Record<string, any>): ManagerDepositReceiptV2;
1294
- static fromFieldsWithTypes(item: FieldsWithTypes): ManagerDepositReceiptV2;
1295
- static fromBcs(data: Uint8Array): ManagerDepositReceiptV2;
1296
- toJSONField(): {
1297
- id: string;
1298
- index: string;
1299
- tokenType: {
1300
- name: string;
1301
- };
1302
- amount: string;
1303
- u64Padding: string[];
1304
- };
1305
- toJSON(): {
1306
- id: string;
1307
- index: string;
1308
- tokenType: {
1309
- name: string;
1310
- };
1311
- amount: string;
1312
- u64Padding: string[];
1313
- $typeName: string;
1314
- $typeArgs: [];
1315
- };
1316
- static fromJSONField(field: any): ManagerDepositReceiptV2;
1317
- static fromJSON(json: Record<string, any>): ManagerDepositReceiptV2;
1318
- static fromSuiParsedData(content: SuiParsedData): ManagerDepositReceiptV2;
1319
- static fromSuiObjectData(data: SuiObjectData): ManagerDepositReceiptV2;
1320
- static fetch(client: SuiClient, id: string): Promise<ManagerDepositReceiptV2>;
1321
- }
1322
- export declare function isManagerEmergencyDepositEvent(type: string): boolean;
1323
- export interface ManagerEmergencyDepositEventFields {
1324
- sender: ToField<"address">;
1325
- index: ToField<"u64">;
1326
- liquidityTokenType: ToField<TypeName>;
1327
- amount: ToField<"u64">;
1328
- u64Padding: ToField<Vector<"u64">>;
1329
- }
1330
- export type ManagerEmergencyDepositEventReified = Reified<ManagerEmergencyDepositEvent, ManagerEmergencyDepositEventFields>;
1331
- export declare class ManagerEmergencyDepositEvent implements StructClass {
1332
- __StructClass: true;
1333
- static readonly $typeName: string;
1334
- static readonly $numTypeParams = 0;
1335
- static readonly $isPhantom: readonly [];
1336
- readonly $typeName: string;
1337
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::ManagerEmergencyDepositEvent`;
1338
- readonly $typeArgs: [];
1339
- readonly $isPhantom: readonly [];
1340
- readonly sender: ToField<"address">;
1341
- readonly index: ToField<"u64">;
1342
- readonly liquidityTokenType: ToField<TypeName>;
1343
- readonly amount: ToField<"u64">;
1344
- readonly u64Padding: ToField<Vector<"u64">>;
1345
- private constructor();
1346
- static reified(): ManagerEmergencyDepositEventReified;
1347
- static get r(): reified.StructClassReified<ManagerEmergencyDepositEvent, ManagerEmergencyDepositEventFields>;
1348
- static phantom(): PhantomReified<ToTypeStr<ManagerEmergencyDepositEvent>>;
1349
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::ManagerEmergencyDepositEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::ManagerEmergencyDepositEvent">;
1350
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1351
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
1352
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1353
- liquidity_token_type: import("@mysten/sui/bcs").BcsStruct<{
1354
- name: import("@mysten/sui/bcs").BcsStruct<{
1355
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1356
- length: number;
1357
- }, string>;
1358
- }, string>;
1359
- }, string>;
1360
- amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1361
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
1362
- length: number;
1363
- }, string>;
1364
- }, string>;
1365
- static fromFields(fields: Record<string, any>): ManagerEmergencyDepositEvent;
1366
- static fromFieldsWithTypes(item: FieldsWithTypes): ManagerEmergencyDepositEvent;
1367
- static fromBcs(data: Uint8Array): ManagerEmergencyDepositEvent;
1368
- toJSONField(): {
1369
- sender: string;
1370
- index: string;
1371
- liquidityTokenType: {
1372
- name: string;
1373
- };
1374
- amount: string;
1375
- u64Padding: string[];
1376
- };
1377
- toJSON(): {
1378
- sender: string;
1379
- index: string;
1380
- liquidityTokenType: {
1381
- name: string;
1382
- };
1383
- amount: string;
1384
- u64Padding: string[];
1385
- $typeName: string;
1386
- $typeArgs: [];
1387
- };
1388
- static fromJSONField(field: any): ManagerEmergencyDepositEvent;
1389
- static fromJSON(json: Record<string, any>): ManagerEmergencyDepositEvent;
1390
- static fromSuiParsedData(content: SuiParsedData): ManagerEmergencyDepositEvent;
1391
- static fromSuiObjectData(data: SuiObjectData): ManagerEmergencyDepositEvent;
1392
- static fetch(client: SuiClient, id: string): Promise<ManagerEmergencyDepositEvent>;
1393
- }
1394
- export declare function isManagerEmergencyWithdrawEvent(type: string): boolean;
1395
- export interface ManagerEmergencyWithdrawEventFields {
1396
- sender: ToField<"address">;
1397
- index: ToField<"u64">;
1398
- liquidityTokenType: ToField<TypeName>;
1399
- amount: ToField<"u64">;
1400
- u64Padding: ToField<Vector<"u64">>;
1401
- }
1402
- export type ManagerEmergencyWithdrawEventReified = Reified<ManagerEmergencyWithdrawEvent, ManagerEmergencyWithdrawEventFields>;
1403
- export declare class ManagerEmergencyWithdrawEvent implements StructClass {
1404
- __StructClass: true;
1405
- static readonly $typeName: string;
1406
- static readonly $numTypeParams = 0;
1407
- static readonly $isPhantom: readonly [];
1408
- readonly $typeName: string;
1409
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::ManagerEmergencyWithdrawEvent`;
1410
- readonly $typeArgs: [];
1411
- readonly $isPhantom: readonly [];
1412
- readonly sender: ToField<"address">;
1413
- readonly index: ToField<"u64">;
1414
- readonly liquidityTokenType: ToField<TypeName>;
1415
- readonly amount: ToField<"u64">;
1416
- readonly u64Padding: ToField<Vector<"u64">>;
1417
- private constructor();
1418
- static reified(): ManagerEmergencyWithdrawEventReified;
1419
- static get r(): reified.StructClassReified<ManagerEmergencyWithdrawEvent, ManagerEmergencyWithdrawEventFields>;
1420
- static phantom(): PhantomReified<ToTypeStr<ManagerEmergencyWithdrawEvent>>;
1421
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::ManagerEmergencyWithdrawEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::ManagerEmergencyWithdrawEvent">;
1422
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1423
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
1424
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1425
- liquidity_token_type: import("@mysten/sui/bcs").BcsStruct<{
1426
- name: import("@mysten/sui/bcs").BcsStruct<{
1427
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1428
- length: number;
1429
- }, string>;
1430
- }, string>;
1431
- }, string>;
1432
- amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1433
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
1434
- length: number;
1435
- }, string>;
1436
- }, string>;
1437
- static fromFields(fields: Record<string, any>): ManagerEmergencyWithdrawEvent;
1438
- static fromFieldsWithTypes(item: FieldsWithTypes): ManagerEmergencyWithdrawEvent;
1439
- static fromBcs(data: Uint8Array): ManagerEmergencyWithdrawEvent;
1440
- toJSONField(): {
1441
- sender: string;
1442
- index: string;
1443
- liquidityTokenType: {
1444
- name: string;
1445
- };
1446
- amount: string;
1447
- u64Padding: string[];
1448
- };
1449
- toJSON(): {
1450
- sender: string;
1451
- index: string;
1452
- liquidityTokenType: {
1453
- name: string;
1454
- };
1455
- amount: string;
1456
- u64Padding: string[];
1457
- $typeName: string;
1458
- $typeArgs: [];
1459
- };
1460
- static fromJSONField(field: any): ManagerEmergencyWithdrawEvent;
1461
- static fromJSON(json: Record<string, any>): ManagerEmergencyWithdrawEvent;
1462
- static fromSuiParsedData(content: SuiParsedData): ManagerEmergencyWithdrawEvent;
1463
- static fromSuiObjectData(data: SuiObjectData): ManagerEmergencyWithdrawEvent;
1464
- static fetch(client: SuiClient, id: string): Promise<ManagerEmergencyWithdrawEvent>;
1465
- }
1466
- export declare function isManagerFlashRemoveLiquidityEvent(type: string): boolean;
1467
- export interface ManagerFlashRemoveLiquidityEventFields {
1468
- index: ToField<"u64">;
1469
- liquidityToken: ToField<TypeName>;
1470
- price: ToField<"u64">;
1471
- priceDecimal: ToField<"u64">;
1472
- removeAmount: ToField<"u64">;
1473
- removedUsd: ToField<"u64">;
1474
- u64Padding: ToField<Vector<"u64">>;
1475
- }
1476
- export type ManagerFlashRemoveLiquidityEventReified = Reified<ManagerFlashRemoveLiquidityEvent, ManagerFlashRemoveLiquidityEventFields>;
1477
- export declare class ManagerFlashRemoveLiquidityEvent implements StructClass {
1478
- __StructClass: true;
1479
- static readonly $typeName: string;
1480
- static readonly $numTypeParams = 0;
1481
- static readonly $isPhantom: readonly [];
1482
- readonly $typeName: string;
1483
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::ManagerFlashRemoveLiquidityEvent`;
1484
- readonly $typeArgs: [];
1485
- readonly $isPhantom: readonly [];
1486
- readonly index: ToField<"u64">;
1487
- readonly liquidityToken: ToField<TypeName>;
1488
- readonly price: ToField<"u64">;
1489
- readonly priceDecimal: ToField<"u64">;
1490
- readonly removeAmount: ToField<"u64">;
1491
- readonly removedUsd: ToField<"u64">;
1492
- readonly u64Padding: ToField<Vector<"u64">>;
1493
- private constructor();
1494
- static reified(): ManagerFlashRemoveLiquidityEventReified;
1495
- static get r(): reified.StructClassReified<ManagerFlashRemoveLiquidityEvent, ManagerFlashRemoveLiquidityEventFields>;
1496
- static phantom(): PhantomReified<ToTypeStr<ManagerFlashRemoveLiquidityEvent>>;
1497
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::ManagerFlashRemoveLiquidityEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::ManagerFlashRemoveLiquidityEvent">;
1498
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1499
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1500
- liquidity_token: import("@mysten/sui/bcs").BcsStruct<{
1501
- name: import("@mysten/sui/bcs").BcsStruct<{
1502
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1503
- length: number;
1504
- }, string>;
1505
- }, string>;
1506
- }, string>;
1507
- price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1508
- price_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1509
- remove_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1510
- removed_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1511
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
1512
- length: number;
1513
- }, string>;
1514
- }, string>;
1515
- static fromFields(fields: Record<string, any>): ManagerFlashRemoveLiquidityEvent;
1516
- static fromFieldsWithTypes(item: FieldsWithTypes): ManagerFlashRemoveLiquidityEvent;
1517
- static fromBcs(data: Uint8Array): ManagerFlashRemoveLiquidityEvent;
1518
- toJSONField(): {
1519
- index: string;
1520
- liquidityToken: {
1521
- name: string;
1522
- };
1523
- price: string;
1524
- priceDecimal: string;
1525
- removeAmount: string;
1526
- removedUsd: string;
1527
- u64Padding: string[];
1528
- };
1529
- toJSON(): {
1530
- index: string;
1531
- liquidityToken: {
1532
- name: string;
1533
- };
1534
- price: string;
1535
- priceDecimal: string;
1536
- removeAmount: string;
1537
- removedUsd: string;
1538
- u64Padding: string[];
1539
- $typeName: string;
1540
- $typeArgs: [];
1541
- };
1542
- static fromJSONField(field: any): ManagerFlashRemoveLiquidityEvent;
1543
- static fromJSON(json: Record<string, any>): ManagerFlashRemoveLiquidityEvent;
1544
- static fromSuiParsedData(content: SuiParsedData): ManagerFlashRemoveLiquidityEvent;
1545
- static fromSuiObjectData(data: SuiObjectData): ManagerFlashRemoveLiquidityEvent;
1546
- static fetch(client: SuiClient, id: string): Promise<ManagerFlashRemoveLiquidityEvent>;
1547
- }
1548
- export declare function isManagerFlashRepayLiquidityEvent(type: string): boolean;
1549
- export interface ManagerFlashRepayLiquidityEventFields {
1550
- index: ToField<"u64">;
1551
- liquidityToken: ToField<TypeName>;
1552
- price: ToField<"u64">;
1553
- priceDecimal: ToField<"u64">;
1554
- repaidAmount: ToField<"u64">;
1555
- repaidUsd: ToField<"u64">;
1556
- u64Padding: ToField<Vector<"u64">>;
1557
- }
1558
- export type ManagerFlashRepayLiquidityEventReified = Reified<ManagerFlashRepayLiquidityEvent, ManagerFlashRepayLiquidityEventFields>;
1559
- export declare class ManagerFlashRepayLiquidityEvent implements StructClass {
1560
- __StructClass: true;
1561
- static readonly $typeName: string;
1562
- static readonly $numTypeParams = 0;
1563
- static readonly $isPhantom: readonly [];
1564
- readonly $typeName: string;
1565
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::ManagerFlashRepayLiquidityEvent`;
1566
- readonly $typeArgs: [];
1567
- readonly $isPhantom: readonly [];
1568
- readonly index: ToField<"u64">;
1569
- readonly liquidityToken: ToField<TypeName>;
1570
- readonly price: ToField<"u64">;
1571
- readonly priceDecimal: ToField<"u64">;
1572
- readonly repaidAmount: ToField<"u64">;
1573
- readonly repaidUsd: ToField<"u64">;
1574
- readonly u64Padding: ToField<Vector<"u64">>;
1575
- private constructor();
1576
- static reified(): ManagerFlashRepayLiquidityEventReified;
1577
- static get r(): reified.StructClassReified<ManagerFlashRepayLiquidityEvent, ManagerFlashRepayLiquidityEventFields>;
1578
- static phantom(): PhantomReified<ToTypeStr<ManagerFlashRepayLiquidityEvent>>;
1579
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::ManagerFlashRepayLiquidityEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::ManagerFlashRepayLiquidityEvent">;
1580
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1581
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1582
- liquidity_token: import("@mysten/sui/bcs").BcsStruct<{
1583
- name: import("@mysten/sui/bcs").BcsStruct<{
1584
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1585
- length: number;
1586
- }, string>;
1587
- }, string>;
1588
- }, string>;
1589
- price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1590
- price_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1591
- repaid_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1592
- repaid_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1593
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
1594
- length: number;
1595
- }, string>;
1596
- }, string>;
1597
- static fromFields(fields: Record<string, any>): ManagerFlashRepayLiquidityEvent;
1598
- static fromFieldsWithTypes(item: FieldsWithTypes): ManagerFlashRepayLiquidityEvent;
1599
- static fromBcs(data: Uint8Array): ManagerFlashRepayLiquidityEvent;
1600
- toJSONField(): {
1601
- index: string;
1602
- liquidityToken: {
1603
- name: string;
1604
- };
1605
- price: string;
1606
- priceDecimal: string;
1607
- repaidAmount: string;
1608
- repaidUsd: string;
1609
- u64Padding: string[];
1610
- };
1611
- toJSON(): {
1612
- index: string;
1613
- liquidityToken: {
1614
- name: string;
1615
- };
1616
- price: string;
1617
- priceDecimal: string;
1618
- repaidAmount: string;
1619
- repaidUsd: string;
1620
- u64Padding: string[];
1621
- $typeName: string;
1622
- $typeArgs: [];
1623
- };
1624
- static fromJSONField(field: any): ManagerFlashRepayLiquidityEvent;
1625
- static fromJSON(json: Record<string, any>): ManagerFlashRepayLiquidityEvent;
1626
- static fromSuiParsedData(content: SuiParsedData): ManagerFlashRepayLiquidityEvent;
1627
- static fromSuiObjectData(data: SuiObjectData): ManagerFlashRepayLiquidityEvent;
1628
- static fetch(client: SuiClient, id: string): Promise<ManagerFlashRepayLiquidityEvent>;
1629
- }
1630
- export declare function isMarginConfig(type: string): boolean;
1631
- export interface MarginConfigFields {
1632
- basicBorrowRate0: ToField<"u64">;
1633
- basicBorrowRate1: ToField<"u64">;
1634
- basicBorrowRate2: ToField<"u64">;
1635
- utilizationThresholdBp0: ToField<"u64">;
1636
- utilizationThresholdBp1: ToField<"u64">;
1637
- borrowIntervalTsMs: ToField<"u64">;
1638
- maxOrderReserveRatioBp: ToField<"u64">;
1639
- u64Padding: ToField<Vector<"u64">>;
1640
- }
1641
- export type MarginConfigReified = Reified<MarginConfig, MarginConfigFields>;
1642
- export declare class MarginConfig implements StructClass {
1643
- __StructClass: true;
1644
- static readonly $typeName: string;
1645
- static readonly $numTypeParams = 0;
1646
- static readonly $isPhantom: readonly [];
1647
- readonly $typeName: string;
1648
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::MarginConfig`;
1649
- readonly $typeArgs: [];
1650
- readonly $isPhantom: readonly [];
1651
- readonly basicBorrowRate0: ToField<"u64">;
1652
- readonly basicBorrowRate1: ToField<"u64">;
1653
- readonly basicBorrowRate2: ToField<"u64">;
1654
- readonly utilizationThresholdBp0: ToField<"u64">;
1655
- readonly utilizationThresholdBp1: ToField<"u64">;
1656
- readonly borrowIntervalTsMs: ToField<"u64">;
1657
- readonly maxOrderReserveRatioBp: ToField<"u64">;
1658
- readonly u64Padding: ToField<Vector<"u64">>;
1659
- private constructor();
1660
- static reified(): MarginConfigReified;
1661
- static get r(): reified.StructClassReified<MarginConfig, MarginConfigFields>;
1662
- static phantom(): PhantomReified<ToTypeStr<MarginConfig>>;
1663
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::MarginConfig" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::MarginConfig">;
1664
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1665
- basic_borrow_rate_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1666
- basic_borrow_rate_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1667
- basic_borrow_rate_2: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1668
- utilization_threshold_bp_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1669
- utilization_threshold_bp_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1670
- borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1671
- max_order_reserve_ratio_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1672
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
1673
- length: number;
1674
- }, string>;
1675
- }, string>;
1676
- static fromFields(fields: Record<string, any>): MarginConfig;
1677
- static fromFieldsWithTypes(item: FieldsWithTypes): MarginConfig;
1678
- static fromBcs(data: Uint8Array): MarginConfig;
1679
- toJSONField(): {
1680
- basicBorrowRate0: string;
1681
- basicBorrowRate1: string;
1682
- basicBorrowRate2: string;
1683
- utilizationThresholdBp0: string;
1684
- utilizationThresholdBp1: string;
1685
- borrowIntervalTsMs: string;
1686
- maxOrderReserveRatioBp: string;
1687
- u64Padding: string[];
1688
- };
1689
- toJSON(): {
1690
- basicBorrowRate0: string;
1691
- basicBorrowRate1: string;
1692
- basicBorrowRate2: string;
1693
- utilizationThresholdBp0: string;
1694
- utilizationThresholdBp1: string;
1695
- borrowIntervalTsMs: string;
1696
- maxOrderReserveRatioBp: string;
1697
- u64Padding: string[];
1698
- $typeName: string;
1699
- $typeArgs: [];
1700
- };
1701
- static fromJSONField(field: any): MarginConfig;
1702
- static fromJSON(json: Record<string, any>): MarginConfig;
1703
- static fromSuiParsedData(content: SuiParsedData): MarginConfig;
1704
- static fromSuiObjectData(data: SuiObjectData): MarginConfig;
1705
- static fetch(client: SuiClient, id: string): Promise<MarginConfig>;
1706
- }
1707
- export declare function isMintLpEvent(type: string): boolean;
1708
- export interface MintLpEventFields {
1709
- sender: ToField<"address">;
1710
- index: ToField<"u64">;
1711
- liquidityTokenType: ToField<TypeName>;
1712
- depositAmount: ToField<"u64">;
1713
- depositAmountUsd: ToField<"u64">;
1714
- mintFeeUsd: ToField<"u64">;
1715
- lpTokenType: ToField<TypeName>;
1716
- mintedLpAmount: ToField<"u64">;
1717
- u64Padding: ToField<Vector<"u64">>;
1718
- }
1719
- export type MintLpEventReified = Reified<MintLpEvent, MintLpEventFields>;
1720
- export declare class MintLpEvent implements StructClass {
1721
- __StructClass: true;
1722
- static readonly $typeName: string;
1723
- static readonly $numTypeParams = 0;
1724
- static readonly $isPhantom: readonly [];
1725
- readonly $typeName: string;
1726
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::MintLpEvent`;
1727
- readonly $typeArgs: [];
1728
- readonly $isPhantom: readonly [];
1729
- readonly sender: ToField<"address">;
1730
- readonly index: ToField<"u64">;
1731
- readonly liquidityTokenType: ToField<TypeName>;
1732
- readonly depositAmount: ToField<"u64">;
1733
- readonly depositAmountUsd: ToField<"u64">;
1734
- readonly mintFeeUsd: ToField<"u64">;
1735
- readonly lpTokenType: ToField<TypeName>;
1736
- readonly mintedLpAmount: ToField<"u64">;
1737
- readonly u64Padding: ToField<Vector<"u64">>;
1738
- private constructor();
1739
- static reified(): MintLpEventReified;
1740
- static get r(): reified.StructClassReified<MintLpEvent, MintLpEventFields>;
1741
- static phantom(): PhantomReified<ToTypeStr<MintLpEvent>>;
1742
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::MintLpEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::MintLpEvent">;
1743
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1744
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
1745
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1746
- liquidity_token_type: import("@mysten/sui/bcs").BcsStruct<{
1747
- name: import("@mysten/sui/bcs").BcsStruct<{
1748
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1749
- length: number;
1750
- }, string>;
1751
- }, string>;
1752
- }, string>;
1753
- deposit_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1754
- deposit_amount_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1755
- mint_fee_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1756
- lp_token_type: import("@mysten/sui/bcs").BcsStruct<{
1757
- name: import("@mysten/sui/bcs").BcsStruct<{
1758
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1759
- length: number;
1760
- }, string>;
1761
- }, string>;
1762
- }, string>;
1763
- minted_lp_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1764
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
1765
- length: number;
1766
- }, string>;
1767
- }, string>;
1768
- static fromFields(fields: Record<string, any>): MintLpEvent;
1769
- static fromFieldsWithTypes(item: FieldsWithTypes): MintLpEvent;
1770
- static fromBcs(data: Uint8Array): MintLpEvent;
1771
- toJSONField(): {
1772
- sender: string;
1773
- index: string;
1774
- liquidityTokenType: {
1775
- name: string;
1776
- };
1777
- depositAmount: string;
1778
- depositAmountUsd: string;
1779
- mintFeeUsd: string;
1780
- lpTokenType: {
1781
- name: string;
1782
- };
1783
- mintedLpAmount: string;
1784
- u64Padding: string[];
1785
- };
1786
- toJSON(): {
1787
- sender: string;
1788
- index: string;
1789
- liquidityTokenType: {
1790
- name: string;
1791
- };
1792
- depositAmount: string;
1793
- depositAmountUsd: string;
1794
- mintFeeUsd: string;
1795
- lpTokenType: {
1796
- name: string;
1797
- };
1798
- mintedLpAmount: string;
1799
- u64Padding: string[];
1800
- $typeName: string;
1801
- $typeArgs: [];
1802
- };
1803
- static fromJSONField(field: any): MintLpEvent;
1804
- static fromJSON(json: Record<string, any>): MintLpEvent;
1805
- static fromSuiParsedData(content: SuiParsedData): MintLpEvent;
1806
- static fromSuiObjectData(data: SuiObjectData): MintLpEvent;
1807
- static fetch(client: SuiClient, id: string): Promise<MintLpEvent>;
1808
- }
1809
- export declare function isNewLiquidityPoolEvent(type: string): boolean;
1810
- export interface NewLiquidityPoolEventFields {
1811
- sender: ToField<"address">;
1812
- index: ToField<"u64">;
1813
- lpTokenType: ToField<TypeName>;
1814
- lpTokenDecimal: ToField<"u64">;
1815
- u64Padding: ToField<Vector<"u64">>;
1816
- }
1817
- export type NewLiquidityPoolEventReified = Reified<NewLiquidityPoolEvent, NewLiquidityPoolEventFields>;
1818
- export declare class NewLiquidityPoolEvent implements StructClass {
1819
- __StructClass: true;
1820
- static readonly $typeName: string;
1821
- static readonly $numTypeParams = 0;
1822
- static readonly $isPhantom: readonly [];
1823
- readonly $typeName: string;
1824
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::NewLiquidityPoolEvent`;
1825
- readonly $typeArgs: [];
1826
- readonly $isPhantom: readonly [];
1827
- readonly sender: ToField<"address">;
1828
- readonly index: ToField<"u64">;
1829
- readonly lpTokenType: ToField<TypeName>;
1830
- readonly lpTokenDecimal: ToField<"u64">;
1831
- readonly u64Padding: ToField<Vector<"u64">>;
1832
- private constructor();
1833
- static reified(): NewLiquidityPoolEventReified;
1834
- static get r(): reified.StructClassReified<NewLiquidityPoolEvent, NewLiquidityPoolEventFields>;
1835
- static phantom(): PhantomReified<ToTypeStr<NewLiquidityPoolEvent>>;
1836
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::NewLiquidityPoolEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::NewLiquidityPoolEvent">;
1837
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1838
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
1839
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1840
- lp_token_type: import("@mysten/sui/bcs").BcsStruct<{
1841
- name: import("@mysten/sui/bcs").BcsStruct<{
1842
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1843
- length: number;
1844
- }, string>;
1845
- }, string>;
1846
- }, string>;
1847
- lp_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1848
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
1849
- length: number;
1850
- }, string>;
1851
- }, string>;
1852
- static fromFields(fields: Record<string, any>): NewLiquidityPoolEvent;
1853
- static fromFieldsWithTypes(item: FieldsWithTypes): NewLiquidityPoolEvent;
1854
- static fromBcs(data: Uint8Array): NewLiquidityPoolEvent;
1855
- toJSONField(): {
1856
- sender: string;
1857
- index: string;
1858
- lpTokenType: {
1859
- name: string;
1860
- };
1861
- lpTokenDecimal: string;
1862
- u64Padding: string[];
1863
- };
1864
- toJSON(): {
1865
- sender: string;
1866
- index: string;
1867
- lpTokenType: {
1868
- name: string;
1869
- };
1870
- lpTokenDecimal: string;
1871
- u64Padding: string[];
1872
- $typeName: string;
1873
- $typeArgs: [];
1874
- };
1875
- static fromJSONField(field: any): NewLiquidityPoolEvent;
1876
- static fromJSON(json: Record<string, any>): NewLiquidityPoolEvent;
1877
- static fromSuiParsedData(content: SuiParsedData): NewLiquidityPoolEvent;
1878
- static fromSuiObjectData(data: SuiObjectData): NewLiquidityPoolEvent;
1879
- static fetch(client: SuiClient, id: string): Promise<NewLiquidityPoolEvent>;
1880
- }
1881
- export declare function isRebalanceEvent(type: string): boolean;
1882
- export interface RebalanceEventFields {
1883
- index: ToField<"u64">;
1884
- fromToken: ToField<TypeName>;
1885
- toToken: ToField<TypeName>;
1886
- rebalanceAmount: ToField<"u64">;
1887
- fromTokenOraclePrice: ToField<"u64">;
1888
- toTokenOraclePrice: ToField<"u64">;
1889
- reducedUsd: ToField<"u64">;
1890
- tvlUsd: ToField<"u64">;
1891
- fromTokenLiquidityAmount: ToField<"u64">;
1892
- toTokenLiquidityAmount: ToField<"u64">;
1893
- u64Padding: ToField<Vector<"u64">>;
1894
- }
1895
- export type RebalanceEventReified = Reified<RebalanceEvent, RebalanceEventFields>;
1896
- export declare class RebalanceEvent implements StructClass {
1897
- __StructClass: true;
1898
- static readonly $typeName: string;
1899
- static readonly $numTypeParams = 0;
1900
- static readonly $isPhantom: readonly [];
1901
- readonly $typeName: string;
1902
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::RebalanceEvent`;
1903
- readonly $typeArgs: [];
1904
- readonly $isPhantom: readonly [];
1905
- readonly index: ToField<"u64">;
1906
- readonly fromToken: ToField<TypeName>;
1907
- readonly toToken: ToField<TypeName>;
1908
- readonly rebalanceAmount: ToField<"u64">;
1909
- readonly fromTokenOraclePrice: ToField<"u64">;
1910
- readonly toTokenOraclePrice: ToField<"u64">;
1911
- readonly reducedUsd: ToField<"u64">;
1912
- readonly tvlUsd: ToField<"u64">;
1913
- readonly fromTokenLiquidityAmount: ToField<"u64">;
1914
- readonly toTokenLiquidityAmount: ToField<"u64">;
1915
- readonly u64Padding: ToField<Vector<"u64">>;
1916
- private constructor();
1917
- static reified(): RebalanceEventReified;
1918
- static get r(): reified.StructClassReified<RebalanceEvent, RebalanceEventFields>;
1919
- static phantom(): PhantomReified<ToTypeStr<RebalanceEvent>>;
1920
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::RebalanceEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::RebalanceEvent">;
1921
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
1922
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1923
- from_token: import("@mysten/sui/bcs").BcsStruct<{
1924
- name: import("@mysten/sui/bcs").BcsStruct<{
1925
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1926
- length: number;
1927
- }, string>;
1928
- }, string>;
1929
- }, string>;
1930
- to_token: import("@mysten/sui/bcs").BcsStruct<{
1931
- name: import("@mysten/sui/bcs").BcsStruct<{
1932
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
1933
- length: number;
1934
- }, string>;
1935
- }, string>;
1936
- }, string>;
1937
- rebalance_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1938
- from_token_oracle_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1939
- to_token_oracle_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1940
- reduced_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1941
- tvl_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1942
- from_token_liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1943
- to_token_liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
1944
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
1945
- length: number;
1946
- }, string>;
1947
- }, string>;
1948
- static fromFields(fields: Record<string, any>): RebalanceEvent;
1949
- static fromFieldsWithTypes(item: FieldsWithTypes): RebalanceEvent;
1950
- static fromBcs(data: Uint8Array): RebalanceEvent;
1951
- toJSONField(): {
1952
- index: string;
1953
- fromToken: {
1954
- name: string;
1955
- };
1956
- toToken: {
1957
- name: string;
1958
- };
1959
- rebalanceAmount: string;
1960
- fromTokenOraclePrice: string;
1961
- toTokenOraclePrice: string;
1962
- reducedUsd: string;
1963
- tvlUsd: string;
1964
- fromTokenLiquidityAmount: string;
1965
- toTokenLiquidityAmount: string;
1966
- u64Padding: string[];
1967
- };
1968
- toJSON(): {
1969
- index: string;
1970
- fromToken: {
1971
- name: string;
1972
- };
1973
- toToken: {
1974
- name: string;
1975
- };
1976
- rebalanceAmount: string;
1977
- fromTokenOraclePrice: string;
1978
- toTokenOraclePrice: string;
1979
- reducedUsd: string;
1980
- tvlUsd: string;
1981
- fromTokenLiquidityAmount: string;
1982
- toTokenLiquidityAmount: string;
1983
- u64Padding: string[];
1984
- $typeName: string;
1985
- $typeArgs: [];
1986
- };
1987
- static fromJSONField(field: any): RebalanceEvent;
1988
- static fromJSON(json: Record<string, any>): RebalanceEvent;
1989
- static fromSuiParsedData(content: SuiParsedData): RebalanceEvent;
1990
- static fromSuiObjectData(data: SuiObjectData): RebalanceEvent;
1991
- static fetch(client: SuiClient, id: string): Promise<RebalanceEvent>;
1992
- }
1993
- export declare function isRebalanceProcess(type: string): boolean;
1994
- export interface RebalanceProcessFields {
1995
- index: ToField<"u64">;
1996
- tokenTypeA: ToField<TypeName>;
1997
- tokenDecimalA: ToField<"u64">;
1998
- tokenAmountA: ToField<"u64">;
1999
- oraclePriceA: ToField<"u64">;
2000
- reducedUsd: ToField<"u64">;
2001
- tokenTypeB: ToField<TypeName>;
2002
- tokenDecimalB: ToField<"u64">;
2003
- oraclePriceB: ToField<"u64">;
2004
- }
2005
- export type RebalanceProcessReified = Reified<RebalanceProcess, RebalanceProcessFields>;
2006
- export declare class RebalanceProcess implements StructClass {
2007
- __StructClass: true;
2008
- static readonly $typeName: string;
2009
- static readonly $numTypeParams = 0;
2010
- static readonly $isPhantom: readonly [];
2011
- readonly $typeName: string;
2012
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::RebalanceProcess`;
2013
- readonly $typeArgs: [];
2014
- readonly $isPhantom: readonly [];
2015
- readonly index: ToField<"u64">;
2016
- readonly tokenTypeA: ToField<TypeName>;
2017
- readonly tokenDecimalA: ToField<"u64">;
2018
- readonly tokenAmountA: ToField<"u64">;
2019
- readonly oraclePriceA: ToField<"u64">;
2020
- readonly reducedUsd: ToField<"u64">;
2021
- readonly tokenTypeB: ToField<TypeName>;
2022
- readonly tokenDecimalB: ToField<"u64">;
2023
- readonly oraclePriceB: ToField<"u64">;
2024
- private constructor();
2025
- static reified(): RebalanceProcessReified;
2026
- static get r(): reified.StructClassReified<RebalanceProcess, RebalanceProcessFields>;
2027
- static phantom(): PhantomReified<ToTypeStr<RebalanceProcess>>;
2028
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::RebalanceProcess" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::RebalanceProcess">;
2029
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2030
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2031
- token_type_a: import("@mysten/sui/bcs").BcsStruct<{
2032
- name: import("@mysten/sui/bcs").BcsStruct<{
2033
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
2034
- length: number;
2035
- }, string>;
2036
- }, string>;
2037
- }, string>;
2038
- token_decimal_a: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2039
- token_amount_a: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2040
- oracle_price_a: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2041
- reduced_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2042
- token_type_b: import("@mysten/sui/bcs").BcsStruct<{
2043
- name: import("@mysten/sui/bcs").BcsStruct<{
2044
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
2045
- length: number;
2046
- }, string>;
2047
- }, string>;
2048
- }, string>;
2049
- token_decimal_b: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2050
- oracle_price_b: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2051
- }, string>;
2052
- static fromFields(fields: Record<string, any>): RebalanceProcess;
2053
- static fromFieldsWithTypes(item: FieldsWithTypes): RebalanceProcess;
2054
- static fromBcs(data: Uint8Array): RebalanceProcess;
2055
- toJSONField(): {
2056
- index: string;
2057
- tokenTypeA: {
2058
- name: string;
2059
- };
2060
- tokenDecimalA: string;
2061
- tokenAmountA: string;
2062
- oraclePriceA: string;
2063
- reducedUsd: string;
2064
- tokenTypeB: {
2065
- name: string;
2066
- };
2067
- tokenDecimalB: string;
2068
- oraclePriceB: string;
2069
- };
2070
- toJSON(): {
2071
- index: string;
2072
- tokenTypeA: {
2073
- name: string;
2074
- };
2075
- tokenDecimalA: string;
2076
- tokenAmountA: string;
2077
- oraclePriceA: string;
2078
- reducedUsd: string;
2079
- tokenTypeB: {
2080
- name: string;
2081
- };
2082
- tokenDecimalB: string;
2083
- oraclePriceB: string;
2084
- $typeName: string;
2085
- $typeArgs: [];
2086
- };
2087
- static fromJSONField(field: any): RebalanceProcess;
2088
- static fromJSON(json: Record<string, any>): RebalanceProcess;
2089
- static fromSuiParsedData(content: SuiParsedData): RebalanceProcess;
2090
- static fromSuiObjectData(data: SuiObjectData): RebalanceProcess;
2091
- static fetch(client: SuiClient, id: string): Promise<RebalanceProcess>;
2092
- }
2093
- export declare function isRedeemEvent(type: string): boolean;
2094
- export interface RedeemEventFields {
2095
- sender: ToField<"address">;
2096
- index: ToField<"u64">;
2097
- share: ToField<"u64">;
2098
- sharePrice: ToField<"u64">;
2099
- timestampTsMs: ToField<"u64">;
2100
- unlockTsMs: ToField<"u64">;
2101
- u64Padding: ToField<Vector<"u64">>;
2102
- }
2103
- export type RedeemEventReified = Reified<RedeemEvent, RedeemEventFields>;
2104
- export declare class RedeemEvent implements StructClass {
2105
- __StructClass: true;
2106
- static readonly $typeName: string;
2107
- static readonly $numTypeParams = 0;
2108
- static readonly $isPhantom: readonly [];
2109
- readonly $typeName: string;
2110
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::RedeemEvent`;
2111
- readonly $typeArgs: [];
2112
- readonly $isPhantom: readonly [];
2113
- readonly sender: ToField<"address">;
2114
- readonly index: ToField<"u64">;
2115
- readonly share: ToField<"u64">;
2116
- readonly sharePrice: ToField<"u64">;
2117
- readonly timestampTsMs: ToField<"u64">;
2118
- readonly unlockTsMs: ToField<"u64">;
2119
- readonly u64Padding: ToField<Vector<"u64">>;
2120
- private constructor();
2121
- static reified(): RedeemEventReified;
2122
- static get r(): reified.StructClassReified<RedeemEvent, RedeemEventFields>;
2123
- static phantom(): PhantomReified<ToTypeStr<RedeemEvent>>;
2124
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::RedeemEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::RedeemEvent">;
2125
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2126
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
2127
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2128
- share: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2129
- share_price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2130
- timestamp_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2131
- unlock_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2132
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
2133
- length: number;
2134
- }, string>;
2135
- }, string>;
2136
- static fromFields(fields: Record<string, any>): RedeemEvent;
2137
- static fromFieldsWithTypes(item: FieldsWithTypes): RedeemEvent;
2138
- static fromBcs(data: Uint8Array): RedeemEvent;
2139
- toJSONField(): {
2140
- sender: string;
2141
- index: string;
2142
- share: string;
2143
- sharePrice: string;
2144
- timestampTsMs: string;
2145
- unlockTsMs: string;
2146
- u64Padding: string[];
2147
- };
2148
- toJSON(): {
2149
- sender: string;
2150
- index: string;
2151
- share: string;
2152
- sharePrice: string;
2153
- timestampTsMs: string;
2154
- unlockTsMs: string;
2155
- u64Padding: string[];
2156
- $typeName: string;
2157
- $typeArgs: [];
2158
- };
2159
- static fromJSONField(field: any): RedeemEvent;
2160
- static fromJSON(json: Record<string, any>): RedeemEvent;
2161
- static fromSuiParsedData(content: SuiParsedData): RedeemEvent;
2162
- static fromSuiObjectData(data: SuiObjectData): RedeemEvent;
2163
- static fetch(client: SuiClient, id: string): Promise<RedeemEvent>;
2164
- }
2165
- export declare function isRegistry(type: string): boolean;
2166
- export interface RegistryFields {
2167
- id: ToField<UID>;
2168
- numPool: ToField<"u64">;
2169
- liquidityPoolRegistry: ToField<UID>;
2170
- }
2171
- export type RegistryReified = Reified<Registry, RegistryFields>;
2172
- export declare class Registry implements StructClass {
2173
- __StructClass: true;
2174
- static readonly $typeName: string;
2175
- static readonly $numTypeParams = 0;
2176
- static readonly $isPhantom: readonly [];
2177
- readonly $typeName: string;
2178
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::Registry`;
2179
- readonly $typeArgs: [];
2180
- readonly $isPhantom: readonly [];
2181
- readonly id: ToField<UID>;
2182
- readonly numPool: ToField<"u64">;
2183
- readonly liquidityPoolRegistry: ToField<UID>;
2184
- private constructor();
2185
- static reified(): RegistryReified;
2186
- static get r(): reified.StructClassReified<Registry, RegistryFields>;
2187
- static phantom(): PhantomReified<ToTypeStr<Registry>>;
2188
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::Registry" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::Registry">;
2189
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2190
- id: import("@mysten/sui/bcs").BcsStruct<{
2191
- id: import("@mysten/sui/bcs").BcsStruct<{
2192
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
2193
- }, string>;
2194
- }, string>;
2195
- num_pool: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2196
- liquidity_pool_registry: import("@mysten/sui/bcs").BcsStruct<{
2197
- id: import("@mysten/sui/bcs").BcsStruct<{
2198
- bytes: import("@mysten/sui/bcs").BcsType<string, string, string>;
2199
- }, string>;
2200
- }, string>;
2201
- }, string>;
2202
- static fromFields(fields: Record<string, any>): Registry;
2203
- static fromFieldsWithTypes(item: FieldsWithTypes): Registry;
2204
- static fromBcs(data: Uint8Array): Registry;
2205
- toJSONField(): {
2206
- id: string;
2207
- numPool: string;
2208
- liquidityPoolRegistry: string;
2209
- };
2210
- toJSON(): {
2211
- id: string;
2212
- numPool: string;
2213
- liquidityPoolRegistry: string;
2214
- $typeName: string;
2215
- $typeArgs: [];
2216
- };
2217
- static fromJSONField(field: any): Registry;
2218
- static fromJSON(json: Record<string, any>): Registry;
2219
- static fromSuiParsedData(content: SuiParsedData): Registry;
2220
- static fromSuiObjectData(data: SuiObjectData): Registry;
2221
- static fetch(client: SuiClient, id: string): Promise<Registry>;
2222
- }
2223
- export declare function isRemoveLiquidityTokenProcess(type: string): boolean;
2224
- export interface RemoveLiquidityTokenProcessFields {
2225
- liquidityToken: ToField<TypeName>;
2226
- removedPositionsBaseToken: ToField<Vector<TypeName>>;
2227
- removedOrdersBaseToken: ToField<Vector<TypeName>>;
2228
- removedTokenOracleId: ToField<"address">;
2229
- removedUsd: ToField<"u64">;
2230
- repaidUsd: ToField<"u64">;
2231
- status: ToField<"u64">;
2232
- }
2233
- export type RemoveLiquidityTokenProcessReified = Reified<RemoveLiquidityTokenProcess, RemoveLiquidityTokenProcessFields>;
2234
- export declare class RemoveLiquidityTokenProcess implements StructClass {
2235
- __StructClass: true;
2236
- static readonly $typeName: string;
2237
- static readonly $numTypeParams = 0;
2238
- static readonly $isPhantom: readonly [];
2239
- readonly $typeName: string;
2240
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::RemoveLiquidityTokenProcess`;
2241
- readonly $typeArgs: [];
2242
- readonly $isPhantom: readonly [];
2243
- readonly liquidityToken: ToField<TypeName>;
2244
- readonly removedPositionsBaseToken: ToField<Vector<TypeName>>;
2245
- readonly removedOrdersBaseToken: ToField<Vector<TypeName>>;
2246
- readonly removedTokenOracleId: ToField<"address">;
2247
- readonly removedUsd: ToField<"u64">;
2248
- readonly repaidUsd: ToField<"u64">;
2249
- readonly status: ToField<"u64">;
2250
- private constructor();
2251
- static reified(): RemoveLiquidityTokenProcessReified;
2252
- static get r(): reified.StructClassReified<RemoveLiquidityTokenProcess, RemoveLiquidityTokenProcessFields>;
2253
- static phantom(): PhantomReified<ToTypeStr<RemoveLiquidityTokenProcess>>;
2254
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::RemoveLiquidityTokenProcess" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::RemoveLiquidityTokenProcess">;
2255
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2256
- liquidity_token: import("@mysten/sui/bcs").BcsStruct<{
2257
- name: import("@mysten/sui/bcs").BcsStruct<{
2258
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
2259
- length: number;
2260
- }, string>;
2261
- }, string>;
2262
- }, string>;
2263
- removed_positions_base_token: import("@mysten/sui/bcs").BcsType<{
2264
- name: {
2265
- bytes: number[];
2266
- };
2267
- }[], Iterable<{
2268
- name: {
2269
- bytes: Iterable<number> & {
2270
- length: number;
2271
- };
2272
- };
2273
- }> & {
2274
- length: number;
2275
- }, string>;
2276
- removed_orders_base_token: import("@mysten/sui/bcs").BcsType<{
2277
- name: {
2278
- bytes: number[];
2279
- };
2280
- }[], Iterable<{
2281
- name: {
2282
- bytes: Iterable<number> & {
2283
- length: number;
2284
- };
2285
- };
2286
- }> & {
2287
- length: number;
2288
- }, string>;
2289
- removed_token_oracle_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
2290
- removed_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2291
- repaid_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2292
- status: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2293
- }, string>;
2294
- static fromFields(fields: Record<string, any>): RemoveLiquidityTokenProcess;
2295
- static fromFieldsWithTypes(item: FieldsWithTypes): RemoveLiquidityTokenProcess;
2296
- static fromBcs(data: Uint8Array): RemoveLiquidityTokenProcess;
2297
- toJSONField(): {
2298
- liquidityToken: {
2299
- name: string;
2300
- };
2301
- removedPositionsBaseToken: {
2302
- name: string;
2303
- }[];
2304
- removedOrdersBaseToken: {
2305
- name: string;
2306
- }[];
2307
- removedTokenOracleId: string;
2308
- removedUsd: string;
2309
- repaidUsd: string;
2310
- status: string;
2311
- };
2312
- toJSON(): {
2313
- liquidityToken: {
2314
- name: string;
2315
- };
2316
- removedPositionsBaseToken: {
2317
- name: string;
2318
- }[];
2319
- removedOrdersBaseToken: {
2320
- name: string;
2321
- }[];
2322
- removedTokenOracleId: string;
2323
- removedUsd: string;
2324
- repaidUsd: string;
2325
- status: string;
2326
- $typeName: string;
2327
- $typeArgs: [];
2328
- };
2329
- static fromJSONField(field: any): RemoveLiquidityTokenProcess;
2330
- static fromJSON(json: Record<string, any>): RemoveLiquidityTokenProcess;
2331
- static fromSuiParsedData(content: SuiParsedData): RemoveLiquidityTokenProcess;
2332
- static fromSuiObjectData(data: SuiObjectData): RemoveLiquidityTokenProcess;
2333
- static fetch(client: SuiClient, id: string): Promise<RemoveLiquidityTokenProcess>;
2334
- }
2335
- export declare function isResumePoolEvent(type: string): boolean;
2336
- export interface ResumePoolEventFields {
2337
- sender: ToField<"address">;
2338
- index: ToField<"u64">;
2339
- u64Padding: ToField<Vector<"u64">>;
2340
- }
2341
- export type ResumePoolEventReified = Reified<ResumePoolEvent, ResumePoolEventFields>;
2342
- export declare class ResumePoolEvent implements StructClass {
2343
- __StructClass: true;
2344
- static readonly $typeName: string;
2345
- static readonly $numTypeParams = 0;
2346
- static readonly $isPhantom: readonly [];
2347
- readonly $typeName: string;
2348
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::ResumePoolEvent`;
2349
- readonly $typeArgs: [];
2350
- readonly $isPhantom: readonly [];
2351
- readonly sender: ToField<"address">;
2352
- readonly index: ToField<"u64">;
2353
- readonly u64Padding: ToField<Vector<"u64">>;
2354
- private constructor();
2355
- static reified(): ResumePoolEventReified;
2356
- static get r(): reified.StructClassReified<ResumePoolEvent, ResumePoolEventFields>;
2357
- static phantom(): PhantomReified<ToTypeStr<ResumePoolEvent>>;
2358
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::ResumePoolEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::ResumePoolEvent">;
2359
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2360
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
2361
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2362
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
2363
- length: number;
2364
- }, string>;
2365
- }, string>;
2366
- static fromFields(fields: Record<string, any>): ResumePoolEvent;
2367
- static fromFieldsWithTypes(item: FieldsWithTypes): ResumePoolEvent;
2368
- static fromBcs(data: Uint8Array): ResumePoolEvent;
2369
- toJSONField(): {
2370
- sender: string;
2371
- index: string;
2372
- u64Padding: string[];
2373
- };
2374
- toJSON(): {
2375
- sender: string;
2376
- index: string;
2377
- u64Padding: string[];
2378
- $typeName: string;
2379
- $typeArgs: [];
2380
- };
2381
- static fromJSONField(field: any): ResumePoolEvent;
2382
- static fromJSON(json: Record<string, any>): ResumePoolEvent;
2383
- static fromSuiParsedData(content: SuiParsedData): ResumePoolEvent;
2384
- static fromSuiObjectData(data: SuiObjectData): ResumePoolEvent;
2385
- static fetch(client: SuiClient, id: string): Promise<ResumePoolEvent>;
2386
- }
2387
- export declare function isResumeTokenPoolEvent(type: string): boolean;
2388
- export interface ResumeTokenPoolEventFields {
2389
- sender: ToField<"address">;
2390
- index: ToField<"u64">;
2391
- liquidityToken: ToField<TypeName>;
2392
- u64Padding: ToField<Vector<"u64">>;
2393
- }
2394
- export type ResumeTokenPoolEventReified = Reified<ResumeTokenPoolEvent, ResumeTokenPoolEventFields>;
2395
- export declare class ResumeTokenPoolEvent implements StructClass {
2396
- __StructClass: true;
2397
- static readonly $typeName: string;
2398
- static readonly $numTypeParams = 0;
2399
- static readonly $isPhantom: readonly [];
2400
- readonly $typeName: string;
2401
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::ResumeTokenPoolEvent`;
2402
- readonly $typeArgs: [];
2403
- readonly $isPhantom: readonly [];
2404
- readonly sender: ToField<"address">;
2405
- readonly index: ToField<"u64">;
2406
- readonly liquidityToken: ToField<TypeName>;
2407
- readonly u64Padding: ToField<Vector<"u64">>;
2408
- private constructor();
2409
- static reified(): ResumeTokenPoolEventReified;
2410
- static get r(): reified.StructClassReified<ResumeTokenPoolEvent, ResumeTokenPoolEventFields>;
2411
- static phantom(): PhantomReified<ToTypeStr<ResumeTokenPoolEvent>>;
2412
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::ResumeTokenPoolEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::ResumeTokenPoolEvent">;
2413
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2414
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
2415
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2416
- liquidity_token: import("@mysten/sui/bcs").BcsStruct<{
2417
- name: import("@mysten/sui/bcs").BcsStruct<{
2418
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
2419
- length: number;
2420
- }, string>;
2421
- }, string>;
2422
- }, string>;
2423
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
2424
- length: number;
2425
- }, string>;
2426
- }, string>;
2427
- static fromFields(fields: Record<string, any>): ResumeTokenPoolEvent;
2428
- static fromFieldsWithTypes(item: FieldsWithTypes): ResumeTokenPoolEvent;
2429
- static fromBcs(data: Uint8Array): ResumeTokenPoolEvent;
2430
- toJSONField(): {
2431
- sender: string;
2432
- index: string;
2433
- liquidityToken: {
2434
- name: string;
2435
- };
2436
- u64Padding: string[];
2437
- };
2438
- toJSON(): {
2439
- sender: string;
2440
- index: string;
2441
- liquidityToken: {
2442
- name: string;
2443
- };
2444
- u64Padding: string[];
2445
- $typeName: string;
2446
- $typeArgs: [];
2447
- };
2448
- static fromJSONField(field: any): ResumeTokenPoolEvent;
2449
- static fromJSON(json: Record<string, any>): ResumeTokenPoolEvent;
2450
- static fromSuiParsedData(content: SuiParsedData): ResumeTokenPoolEvent;
2451
- static fromSuiObjectData(data: SuiObjectData): ResumeTokenPoolEvent;
2452
- static fetch(client: SuiClient, id: string): Promise<ResumeTokenPoolEvent>;
2453
- }
2454
- export declare function isSpotConfig(type: string): boolean;
2455
- export interface SpotConfigFields {
2456
- minDeposit: ToField<"u64">;
2457
- maxCapacity: ToField<"u64">;
2458
- targetWeightBp: ToField<"u64">;
2459
- basicMintFeeBp: ToField<"u64">;
2460
- additionalMintFeeBp: ToField<"u64">;
2461
- basicBurnFeeBp: ToField<"u64">;
2462
- additionalBurnFeeBp: ToField<"u64">;
2463
- swapFeeBp: ToField<"u64">;
2464
- swapFeeProtocolShareBp: ToField<"u64">;
2465
- lendingProtocolShareBp: ToField<"u64">;
2466
- u64Padding: ToField<Vector<"u64">>;
2467
- }
2468
- export type SpotConfigReified = Reified<SpotConfig, SpotConfigFields>;
2469
- export declare class SpotConfig implements StructClass {
2470
- __StructClass: true;
2471
- static readonly $typeName: string;
2472
- static readonly $numTypeParams = 0;
2473
- static readonly $isPhantom: readonly [];
2474
- readonly $typeName: string;
2475
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::SpotConfig`;
2476
- readonly $typeArgs: [];
2477
- readonly $isPhantom: readonly [];
2478
- readonly minDeposit: ToField<"u64">;
2479
- readonly maxCapacity: ToField<"u64">;
2480
- readonly targetWeightBp: ToField<"u64">;
2481
- readonly basicMintFeeBp: ToField<"u64">;
2482
- readonly additionalMintFeeBp: ToField<"u64">;
2483
- readonly basicBurnFeeBp: ToField<"u64">;
2484
- readonly additionalBurnFeeBp: ToField<"u64">;
2485
- readonly swapFeeBp: ToField<"u64">;
2486
- readonly swapFeeProtocolShareBp: ToField<"u64">;
2487
- readonly lendingProtocolShareBp: ToField<"u64">;
2488
- readonly u64Padding: ToField<Vector<"u64">>;
2489
- private constructor();
2490
- static reified(): SpotConfigReified;
2491
- static get r(): reified.StructClassReified<SpotConfig, SpotConfigFields>;
2492
- static phantom(): PhantomReified<ToTypeStr<SpotConfig>>;
2493
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::SpotConfig" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::SpotConfig">;
2494
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2495
- min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2496
- max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2497
- target_weight_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2498
- basic_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2499
- additional_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2500
- basic_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2501
- additional_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2502
- swap_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2503
- swap_fee_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2504
- lending_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2505
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
2506
- length: number;
2507
- }, string>;
2508
- }, string>;
2509
- static fromFields(fields: Record<string, any>): SpotConfig;
2510
- static fromFieldsWithTypes(item: FieldsWithTypes): SpotConfig;
2511
- static fromBcs(data: Uint8Array): SpotConfig;
2512
- toJSONField(): {
2513
- minDeposit: string;
2514
- maxCapacity: string;
2515
- targetWeightBp: string;
2516
- basicMintFeeBp: string;
2517
- additionalMintFeeBp: string;
2518
- basicBurnFeeBp: string;
2519
- additionalBurnFeeBp: string;
2520
- swapFeeBp: string;
2521
- swapFeeProtocolShareBp: string;
2522
- lendingProtocolShareBp: string;
2523
- u64Padding: string[];
2524
- };
2525
- toJSON(): {
2526
- minDeposit: string;
2527
- maxCapacity: string;
2528
- targetWeightBp: string;
2529
- basicMintFeeBp: string;
2530
- additionalMintFeeBp: string;
2531
- basicBurnFeeBp: string;
2532
- additionalBurnFeeBp: string;
2533
- swapFeeBp: string;
2534
- swapFeeProtocolShareBp: string;
2535
- lendingProtocolShareBp: string;
2536
- u64Padding: string[];
2537
- $typeName: string;
2538
- $typeArgs: [];
2539
- };
2540
- static fromJSONField(field: any): SpotConfig;
2541
- static fromJSON(json: Record<string, any>): SpotConfig;
2542
- static fromSuiParsedData(content: SuiParsedData): SpotConfig;
2543
- static fromSuiObjectData(data: SuiObjectData): SpotConfig;
2544
- static fetch(client: SuiClient, id: string): Promise<SpotConfig>;
2545
- }
2546
- export declare function isStartRemoveLiquidityTokenProcessEvent(type: string): boolean;
2547
- export interface StartRemoveLiquidityTokenProcessEventFields {
2548
- index: ToField<"u64">;
2549
- liquidityToken: ToField<TypeName>;
2550
- u64Padding: ToField<Vector<"u64">>;
2551
- }
2552
- export type StartRemoveLiquidityTokenProcessEventReified = Reified<StartRemoveLiquidityTokenProcessEvent, StartRemoveLiquidityTokenProcessEventFields>;
2553
- export declare class StartRemoveLiquidityTokenProcessEvent implements StructClass {
2554
- __StructClass: true;
2555
- static readonly $typeName: string;
2556
- static readonly $numTypeParams = 0;
2557
- static readonly $isPhantom: readonly [];
2558
- readonly $typeName: string;
2559
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::StartRemoveLiquidityTokenProcessEvent`;
2560
- readonly $typeArgs: [];
2561
- readonly $isPhantom: readonly [];
2562
- readonly index: ToField<"u64">;
2563
- readonly liquidityToken: ToField<TypeName>;
2564
- readonly u64Padding: ToField<Vector<"u64">>;
2565
- private constructor();
2566
- static reified(): StartRemoveLiquidityTokenProcessEventReified;
2567
- static get r(): reified.StructClassReified<StartRemoveLiquidityTokenProcessEvent, StartRemoveLiquidityTokenProcessEventFields>;
2568
- static phantom(): PhantomReified<ToTypeStr<StartRemoveLiquidityTokenProcessEvent>>;
2569
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::StartRemoveLiquidityTokenProcessEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::StartRemoveLiquidityTokenProcessEvent">;
2570
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2571
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2572
- liquidity_token: import("@mysten/sui/bcs").BcsStruct<{
2573
- name: import("@mysten/sui/bcs").BcsStruct<{
2574
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
2575
- length: number;
2576
- }, string>;
2577
- }, string>;
2578
- }, string>;
2579
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
2580
- length: number;
2581
- }, string>;
2582
- }, string>;
2583
- static fromFields(fields: Record<string, any>): StartRemoveLiquidityTokenProcessEvent;
2584
- static fromFieldsWithTypes(item: FieldsWithTypes): StartRemoveLiquidityTokenProcessEvent;
2585
- static fromBcs(data: Uint8Array): StartRemoveLiquidityTokenProcessEvent;
2586
- toJSONField(): {
2587
- index: string;
2588
- liquidityToken: {
2589
- name: string;
2590
- };
2591
- u64Padding: string[];
2592
- };
2593
- toJSON(): {
2594
- index: string;
2595
- liquidityToken: {
2596
- name: string;
2597
- };
2598
- u64Padding: string[];
2599
- $typeName: string;
2600
- $typeArgs: [];
2601
- };
2602
- static fromJSONField(field: any): StartRemoveLiquidityTokenProcessEvent;
2603
- static fromJSON(json: Record<string, any>): StartRemoveLiquidityTokenProcessEvent;
2604
- static fromSuiParsedData(content: SuiParsedData): StartRemoveLiquidityTokenProcessEvent;
2605
- static fromSuiObjectData(data: SuiObjectData): StartRemoveLiquidityTokenProcessEvent;
2606
- static fetch(client: SuiClient, id: string): Promise<StartRemoveLiquidityTokenProcessEvent>;
2607
- }
2608
- export declare function isState(type: string): boolean;
2609
- export interface StateFields {
2610
- liquidityAmount: ToField<"u64">;
2611
- valueInUsd: ToField<"u64">;
2612
- reservedAmount: ToField<"u64">;
2613
- updateTsMs: ToField<"u64">;
2614
- isActive: ToField<"bool">;
2615
- lastBorrowRateTsMs: ToField<"u64">;
2616
- cumulativeBorrowRate: ToField<"u64">;
2617
- previousLastBorrowRateTsMs: ToField<"u64">;
2618
- previousCumulativeBorrowRate: ToField<"u64">;
2619
- currentLendingAmount: ToField<Vector<"u64">>;
2620
- u64Padding: ToField<Vector<"u64">>;
2621
- }
2622
- export type StateReified = Reified<State, StateFields>;
2623
- export declare class State implements StructClass {
2624
- __StructClass: true;
2625
- static readonly $typeName: string;
2626
- static readonly $numTypeParams = 0;
2627
- static readonly $isPhantom: readonly [];
2628
- readonly $typeName: string;
2629
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::State`;
2630
- readonly $typeArgs: [];
2631
- readonly $isPhantom: readonly [];
2632
- readonly liquidityAmount: ToField<"u64">;
2633
- readonly valueInUsd: ToField<"u64">;
2634
- readonly reservedAmount: ToField<"u64">;
2635
- readonly updateTsMs: ToField<"u64">;
2636
- readonly isActive: ToField<"bool">;
2637
- readonly lastBorrowRateTsMs: ToField<"u64">;
2638
- readonly cumulativeBorrowRate: ToField<"u64">;
2639
- readonly previousLastBorrowRateTsMs: ToField<"u64">;
2640
- readonly previousCumulativeBorrowRate: ToField<"u64">;
2641
- readonly currentLendingAmount: ToField<Vector<"u64">>;
2642
- readonly u64Padding: ToField<Vector<"u64">>;
2643
- private constructor();
2644
- static reified(): StateReified;
2645
- static get r(): reified.StructClassReified<State, StateFields>;
2646
- static phantom(): PhantomReified<ToTypeStr<State>>;
2647
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::State" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::State">;
2648
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2649
- liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2650
- value_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2651
- reserved_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2652
- update_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2653
- is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
2654
- last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2655
- cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2656
- previous_last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2657
- previous_cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2658
- current_lending_amount: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
2659
- length: number;
2660
- }, string>;
2661
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
2662
- length: number;
2663
- }, string>;
2664
- }, string>;
2665
- static fromFields(fields: Record<string, any>): State;
2666
- static fromFieldsWithTypes(item: FieldsWithTypes): State;
2667
- static fromBcs(data: Uint8Array): State;
2668
- toJSONField(): {
2669
- liquidityAmount: string;
2670
- valueInUsd: string;
2671
- reservedAmount: string;
2672
- updateTsMs: string;
2673
- isActive: boolean;
2674
- lastBorrowRateTsMs: string;
2675
- cumulativeBorrowRate: string;
2676
- previousLastBorrowRateTsMs: string;
2677
- previousCumulativeBorrowRate: string;
2678
- currentLendingAmount: string[];
2679
- u64Padding: string[];
2680
- };
2681
- toJSON(): {
2682
- liquidityAmount: string;
2683
- valueInUsd: string;
2684
- reservedAmount: string;
2685
- updateTsMs: string;
2686
- isActive: boolean;
2687
- lastBorrowRateTsMs: string;
2688
- cumulativeBorrowRate: string;
2689
- previousLastBorrowRateTsMs: string;
2690
- previousCumulativeBorrowRate: string;
2691
- currentLendingAmount: string[];
2692
- u64Padding: string[];
2693
- $typeName: string;
2694
- $typeArgs: [];
2695
- };
2696
- static fromJSONField(field: any): State;
2697
- static fromJSON(json: Record<string, any>): State;
2698
- static fromSuiParsedData(content: SuiParsedData): State;
2699
- static fromSuiObjectData(data: SuiObjectData): State;
2700
- static fetch(client: SuiClient, id: string): Promise<State>;
2701
- }
2702
- export declare function isSuspendPoolEvent(type: string): boolean;
2703
- export interface SuspendPoolEventFields {
2704
- sender: ToField<"address">;
2705
- index: ToField<"u64">;
2706
- u64Padding: ToField<Vector<"u64">>;
2707
- }
2708
- export type SuspendPoolEventReified = Reified<SuspendPoolEvent, SuspendPoolEventFields>;
2709
- export declare class SuspendPoolEvent implements StructClass {
2710
- __StructClass: true;
2711
- static readonly $typeName: string;
2712
- static readonly $numTypeParams = 0;
2713
- static readonly $isPhantom: readonly [];
2714
- readonly $typeName: string;
2715
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::SuspendPoolEvent`;
2716
- readonly $typeArgs: [];
2717
- readonly $isPhantom: readonly [];
2718
- readonly sender: ToField<"address">;
2719
- readonly index: ToField<"u64">;
2720
- readonly u64Padding: ToField<Vector<"u64">>;
2721
- private constructor();
2722
- static reified(): SuspendPoolEventReified;
2723
- static get r(): reified.StructClassReified<SuspendPoolEvent, SuspendPoolEventFields>;
2724
- static phantom(): PhantomReified<ToTypeStr<SuspendPoolEvent>>;
2725
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::SuspendPoolEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::SuspendPoolEvent">;
2726
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2727
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
2728
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2729
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
2730
- length: number;
2731
- }, string>;
2732
- }, string>;
2733
- static fromFields(fields: Record<string, any>): SuspendPoolEvent;
2734
- static fromFieldsWithTypes(item: FieldsWithTypes): SuspendPoolEvent;
2735
- static fromBcs(data: Uint8Array): SuspendPoolEvent;
2736
- toJSONField(): {
2737
- sender: string;
2738
- index: string;
2739
- u64Padding: string[];
2740
- };
2741
- toJSON(): {
2742
- sender: string;
2743
- index: string;
2744
- u64Padding: string[];
2745
- $typeName: string;
2746
- $typeArgs: [];
2747
- };
2748
- static fromJSONField(field: any): SuspendPoolEvent;
2749
- static fromJSON(json: Record<string, any>): SuspendPoolEvent;
2750
- static fromSuiParsedData(content: SuiParsedData): SuspendPoolEvent;
2751
- static fromSuiObjectData(data: SuiObjectData): SuspendPoolEvent;
2752
- static fetch(client: SuiClient, id: string): Promise<SuspendPoolEvent>;
2753
- }
2754
- export declare function isSuspendTokenPoolEvent(type: string): boolean;
2755
- export interface SuspendTokenPoolEventFields {
2756
- sender: ToField<"address">;
2757
- index: ToField<"u64">;
2758
- liquidityToken: ToField<TypeName>;
2759
- u64Padding: ToField<Vector<"u64">>;
2760
- }
2761
- export type SuspendTokenPoolEventReified = Reified<SuspendTokenPoolEvent, SuspendTokenPoolEventFields>;
2762
- export declare class SuspendTokenPoolEvent implements StructClass {
2763
- __StructClass: true;
2764
- static readonly $typeName: string;
2765
- static readonly $numTypeParams = 0;
2766
- static readonly $isPhantom: readonly [];
2767
- readonly $typeName: string;
2768
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::SuspendTokenPoolEvent`;
2769
- readonly $typeArgs: [];
2770
- readonly $isPhantom: readonly [];
2771
- readonly sender: ToField<"address">;
2772
- readonly index: ToField<"u64">;
2773
- readonly liquidityToken: ToField<TypeName>;
2774
- readonly u64Padding: ToField<Vector<"u64">>;
2775
- private constructor();
2776
- static reified(): SuspendTokenPoolEventReified;
2777
- static get r(): reified.StructClassReified<SuspendTokenPoolEvent, SuspendTokenPoolEventFields>;
2778
- static phantom(): PhantomReified<ToTypeStr<SuspendTokenPoolEvent>>;
2779
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::SuspendTokenPoolEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::SuspendTokenPoolEvent">;
2780
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2781
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
2782
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2783
- liquidity_token: import("@mysten/sui/bcs").BcsStruct<{
2784
- name: import("@mysten/sui/bcs").BcsStruct<{
2785
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
2786
- length: number;
2787
- }, string>;
2788
- }, string>;
2789
- }, string>;
2790
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
2791
- length: number;
2792
- }, string>;
2793
- }, string>;
2794
- static fromFields(fields: Record<string, any>): SuspendTokenPoolEvent;
2795
- static fromFieldsWithTypes(item: FieldsWithTypes): SuspendTokenPoolEvent;
2796
- static fromBcs(data: Uint8Array): SuspendTokenPoolEvent;
2797
- toJSONField(): {
2798
- sender: string;
2799
- index: string;
2800
- liquidityToken: {
2801
- name: string;
2802
- };
2803
- u64Padding: string[];
2804
- };
2805
- toJSON(): {
2806
- sender: string;
2807
- index: string;
2808
- liquidityToken: {
2809
- name: string;
2810
- };
2811
- u64Padding: string[];
2812
- $typeName: string;
2813
- $typeArgs: [];
2814
- };
2815
- static fromJSONField(field: any): SuspendTokenPoolEvent;
2816
- static fromJSON(json: Record<string, any>): SuspendTokenPoolEvent;
2817
- static fromSuiParsedData(content: SuiParsedData): SuspendTokenPoolEvent;
2818
- static fromSuiObjectData(data: SuiObjectData): SuspendTokenPoolEvent;
2819
- static fetch(client: SuiClient, id: string): Promise<SuspendTokenPoolEvent>;
2820
- }
2821
- export declare function isSwapEvent(type: string): boolean;
2822
- export interface SwapEventFields {
2823
- sender: ToField<"address">;
2824
- index: ToField<"u64">;
2825
- fromTokenType: ToField<TypeName>;
2826
- fromAmount: ToField<"u64">;
2827
- toTokenType: ToField<TypeName>;
2828
- minToAmount: ToField<"u64">;
2829
- actualToAmount: ToField<"u64">;
2830
- feeAmount: ToField<"u64">;
2831
- feeAmountUsd: ToField<"u64">;
2832
- oraclePriceFromToken: ToField<"u64">;
2833
- oraclePriceToToken: ToField<"u64">;
2834
- u64Padding: ToField<Vector<"u64">>;
2835
- }
2836
- export type SwapEventReified = Reified<SwapEvent, SwapEventFields>;
2837
- export declare class SwapEvent implements StructClass {
2838
- __StructClass: true;
2839
- static readonly $typeName: string;
2840
- static readonly $numTypeParams = 0;
2841
- static readonly $isPhantom: readonly [];
2842
- readonly $typeName: string;
2843
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::SwapEvent`;
2844
- readonly $typeArgs: [];
2845
- readonly $isPhantom: readonly [];
2846
- readonly sender: ToField<"address">;
2847
- readonly index: ToField<"u64">;
2848
- readonly fromTokenType: ToField<TypeName>;
2849
- readonly fromAmount: ToField<"u64">;
2850
- readonly toTokenType: ToField<TypeName>;
2851
- readonly minToAmount: ToField<"u64">;
2852
- readonly actualToAmount: ToField<"u64">;
2853
- readonly feeAmount: ToField<"u64">;
2854
- readonly feeAmountUsd: ToField<"u64">;
2855
- readonly oraclePriceFromToken: ToField<"u64">;
2856
- readonly oraclePriceToToken: ToField<"u64">;
2857
- readonly u64Padding: ToField<Vector<"u64">>;
2858
- private constructor();
2859
- static reified(): SwapEventReified;
2860
- static get r(): reified.StructClassReified<SwapEvent, SwapEventFields>;
2861
- static phantom(): PhantomReified<ToTypeStr<SwapEvent>>;
2862
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::SwapEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::SwapEvent">;
2863
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2864
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
2865
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2866
- from_token_type: import("@mysten/sui/bcs").BcsStruct<{
2867
- name: import("@mysten/sui/bcs").BcsStruct<{
2868
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
2869
- length: number;
2870
- }, string>;
2871
- }, string>;
2872
- }, string>;
2873
- from_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2874
- to_token_type: import("@mysten/sui/bcs").BcsStruct<{
2875
- name: import("@mysten/sui/bcs").BcsStruct<{
2876
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
2877
- length: number;
2878
- }, string>;
2879
- }, string>;
2880
- }, string>;
2881
- min_to_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2882
- actual_to_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2883
- fee_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2884
- fee_amount_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2885
- oracle_price_from_token: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2886
- oracle_price_to_token: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2887
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
2888
- length: number;
2889
- }, string>;
2890
- }, string>;
2891
- static fromFields(fields: Record<string, any>): SwapEvent;
2892
- static fromFieldsWithTypes(item: FieldsWithTypes): SwapEvent;
2893
- static fromBcs(data: Uint8Array): SwapEvent;
2894
- toJSONField(): {
2895
- sender: string;
2896
- index: string;
2897
- fromTokenType: {
2898
- name: string;
2899
- };
2900
- fromAmount: string;
2901
- toTokenType: {
2902
- name: string;
2903
- };
2904
- minToAmount: string;
2905
- actualToAmount: string;
2906
- feeAmount: string;
2907
- feeAmountUsd: string;
2908
- oraclePriceFromToken: string;
2909
- oraclePriceToToken: string;
2910
- u64Padding: string[];
2911
- };
2912
- toJSON(): {
2913
- sender: string;
2914
- index: string;
2915
- fromTokenType: {
2916
- name: string;
2917
- };
2918
- fromAmount: string;
2919
- toTokenType: {
2920
- name: string;
2921
- };
2922
- minToAmount: string;
2923
- actualToAmount: string;
2924
- feeAmount: string;
2925
- feeAmountUsd: string;
2926
- oraclePriceFromToken: string;
2927
- oraclePriceToToken: string;
2928
- u64Padding: string[];
2929
- $typeName: string;
2930
- $typeArgs: [];
2931
- };
2932
- static fromJSONField(field: any): SwapEvent;
2933
- static fromJSON(json: Record<string, any>): SwapEvent;
2934
- static fromSuiParsedData(content: SuiParsedData): SwapEvent;
2935
- static fromSuiObjectData(data: SuiObjectData): SwapEvent;
2936
- static fetch(client: SuiClient, id: string): Promise<SwapEvent>;
2937
- }
2938
- export declare function isTokenPool(type: string): boolean;
2939
- export interface TokenPoolFields {
2940
- tokenType: ToField<TypeName>;
2941
- config: ToField<Config>;
2942
- state: ToField<State>;
2943
- }
2944
- export type TokenPoolReified = Reified<TokenPool, TokenPoolFields>;
2945
- export declare class TokenPool implements StructClass {
2946
- __StructClass: true;
2947
- static readonly $typeName: string;
2948
- static readonly $numTypeParams = 0;
2949
- static readonly $isPhantom: readonly [];
2950
- readonly $typeName: string;
2951
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::TokenPool`;
2952
- readonly $typeArgs: [];
2953
- readonly $isPhantom: readonly [];
2954
- readonly tokenType: ToField<TypeName>;
2955
- readonly config: ToField<Config>;
2956
- readonly state: ToField<State>;
2957
- private constructor();
2958
- static reified(): TokenPoolReified;
2959
- static get r(): reified.StructClassReified<TokenPool, TokenPoolFields>;
2960
- static phantom(): PhantomReified<ToTypeStr<TokenPool>>;
2961
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::TokenPool" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::TokenPool">;
2962
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
2963
- token_type: import("@mysten/sui/bcs").BcsStruct<{
2964
- name: import("@mysten/sui/bcs").BcsStruct<{
2965
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
2966
- length: number;
2967
- }, string>;
2968
- }, string>;
2969
- }, string>;
2970
- config: import("@mysten/sui/bcs").BcsStruct<{
2971
- oracle_id: import("@mysten/sui/bcs").BcsType<string, string, string>;
2972
- liquidity_token_decimal: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2973
- spot_config: import("@mysten/sui/bcs").BcsStruct<{
2974
- min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2975
- max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2976
- target_weight_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2977
- basic_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2978
- additional_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2979
- basic_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2980
- additional_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2981
- swap_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2982
- swap_fee_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2983
- lending_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2984
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
2985
- length: number;
2986
- }, string>;
2987
- }, string>;
2988
- margin_config: import("@mysten/sui/bcs").BcsStruct<{
2989
- basic_borrow_rate_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2990
- basic_borrow_rate_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2991
- basic_borrow_rate_2: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2992
- utilization_threshold_bp_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2993
- utilization_threshold_bp_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2994
- borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2995
- max_order_reserve_ratio_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
2996
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
2997
- length: number;
2998
- }, string>;
2999
- }, string>;
3000
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3001
- length: number;
3002
- }, string>;
3003
- }, string>;
3004
- state: import("@mysten/sui/bcs").BcsStruct<{
3005
- liquidity_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3006
- value_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3007
- reserved_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3008
- update_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3009
- is_active: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
3010
- last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3011
- cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3012
- previous_last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3013
- previous_cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3014
- current_lending_amount: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3015
- length: number;
3016
- }, string>;
3017
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3018
- length: number;
3019
- }, string>;
3020
- }, string>;
3021
- }, string>;
3022
- static fromFields(fields: Record<string, any>): TokenPool;
3023
- static fromFieldsWithTypes(item: FieldsWithTypes): TokenPool;
3024
- static fromBcs(data: Uint8Array): TokenPool;
3025
- toJSONField(): {
3026
- tokenType: {
3027
- name: string;
3028
- };
3029
- config: {
3030
- oracleId: string;
3031
- liquidityTokenDecimal: string;
3032
- spotConfig: {
3033
- minDeposit: string;
3034
- maxCapacity: string;
3035
- targetWeightBp: string;
3036
- basicMintFeeBp: string;
3037
- additionalMintFeeBp: string;
3038
- basicBurnFeeBp: string;
3039
- additionalBurnFeeBp: string;
3040
- swapFeeBp: string;
3041
- swapFeeProtocolShareBp: string;
3042
- lendingProtocolShareBp: string;
3043
- u64Padding: string[];
3044
- };
3045
- marginConfig: {
3046
- basicBorrowRate0: string;
3047
- basicBorrowRate1: string;
3048
- basicBorrowRate2: string;
3049
- utilizationThresholdBp0: string;
3050
- utilizationThresholdBp1: string;
3051
- borrowIntervalTsMs: string;
3052
- maxOrderReserveRatioBp: string;
3053
- u64Padding: string[];
3054
- };
3055
- u64Padding: string[];
3056
- };
3057
- state: {
3058
- liquidityAmount: string;
3059
- valueInUsd: string;
3060
- reservedAmount: string;
3061
- updateTsMs: string;
3062
- isActive: boolean;
3063
- lastBorrowRateTsMs: string;
3064
- cumulativeBorrowRate: string;
3065
- previousLastBorrowRateTsMs: string;
3066
- previousCumulativeBorrowRate: string;
3067
- currentLendingAmount: string[];
3068
- u64Padding: string[];
3069
- };
3070
- };
3071
- toJSON(): {
3072
- tokenType: {
3073
- name: string;
3074
- };
3075
- config: {
3076
- oracleId: string;
3077
- liquidityTokenDecimal: string;
3078
- spotConfig: {
3079
- minDeposit: string;
3080
- maxCapacity: string;
3081
- targetWeightBp: string;
3082
- basicMintFeeBp: string;
3083
- additionalMintFeeBp: string;
3084
- basicBurnFeeBp: string;
3085
- additionalBurnFeeBp: string;
3086
- swapFeeBp: string;
3087
- swapFeeProtocolShareBp: string;
3088
- lendingProtocolShareBp: string;
3089
- u64Padding: string[];
3090
- };
3091
- marginConfig: {
3092
- basicBorrowRate0: string;
3093
- basicBorrowRate1: string;
3094
- basicBorrowRate2: string;
3095
- utilizationThresholdBp0: string;
3096
- utilizationThresholdBp1: string;
3097
- borrowIntervalTsMs: string;
3098
- maxOrderReserveRatioBp: string;
3099
- u64Padding: string[];
3100
- };
3101
- u64Padding: string[];
3102
- };
3103
- state: {
3104
- liquidityAmount: string;
3105
- valueInUsd: string;
3106
- reservedAmount: string;
3107
- updateTsMs: string;
3108
- isActive: boolean;
3109
- lastBorrowRateTsMs: string;
3110
- cumulativeBorrowRate: string;
3111
- previousLastBorrowRateTsMs: string;
3112
- previousCumulativeBorrowRate: string;
3113
- currentLendingAmount: string[];
3114
- u64Padding: string[];
3115
- };
3116
- $typeName: string;
3117
- $typeArgs: [];
3118
- };
3119
- static fromJSONField(field: any): TokenPool;
3120
- static fromJSON(json: Record<string, any>): TokenPool;
3121
- static fromSuiParsedData(content: SuiParsedData): TokenPool;
3122
- static fromSuiObjectData(data: SuiObjectData): TokenPool;
3123
- static fetch(client: SuiClient, id: string): Promise<TokenPool>;
3124
- }
3125
- export declare function isUpdateBorrowInfoEvent(type: string): boolean;
3126
- export interface UpdateBorrowInfoEventFields {
3127
- index: ToField<"u64">;
3128
- liquidityTokenType: ToField<TypeName>;
3129
- previousBorrowTsMs: ToField<"u64">;
3130
- previousCumulativeBorrowRate: ToField<"u64">;
3131
- borrowIntervalTsMs: ToField<"u64">;
3132
- lastBorrowRateTsMs: ToField<"u64">;
3133
- lastCumulativeBorrowRate: ToField<"u64">;
3134
- u64Padding: ToField<Vector<"u64">>;
3135
- }
3136
- export type UpdateBorrowInfoEventReified = Reified<UpdateBorrowInfoEvent, UpdateBorrowInfoEventFields>;
3137
- export declare class UpdateBorrowInfoEvent implements StructClass {
3138
- __StructClass: true;
3139
- static readonly $typeName: string;
3140
- static readonly $numTypeParams = 0;
3141
- static readonly $isPhantom: readonly [];
3142
- readonly $typeName: string;
3143
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::UpdateBorrowInfoEvent`;
3144
- readonly $typeArgs: [];
3145
- readonly $isPhantom: readonly [];
3146
- readonly index: ToField<"u64">;
3147
- readonly liquidityTokenType: ToField<TypeName>;
3148
- readonly previousBorrowTsMs: ToField<"u64">;
3149
- readonly previousCumulativeBorrowRate: ToField<"u64">;
3150
- readonly borrowIntervalTsMs: ToField<"u64">;
3151
- readonly lastBorrowRateTsMs: ToField<"u64">;
3152
- readonly lastCumulativeBorrowRate: ToField<"u64">;
3153
- readonly u64Padding: ToField<Vector<"u64">>;
3154
- private constructor();
3155
- static reified(): UpdateBorrowInfoEventReified;
3156
- static get r(): reified.StructClassReified<UpdateBorrowInfoEvent, UpdateBorrowInfoEventFields>;
3157
- static phantom(): PhantomReified<ToTypeStr<UpdateBorrowInfoEvent>>;
3158
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::UpdateBorrowInfoEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::UpdateBorrowInfoEvent">;
3159
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
3160
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3161
- liquidity_token_type: import("@mysten/sui/bcs").BcsStruct<{
3162
- name: import("@mysten/sui/bcs").BcsStruct<{
3163
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
3164
- length: number;
3165
- }, string>;
3166
- }, string>;
3167
- }, string>;
3168
- previous_borrow_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3169
- previous_cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3170
- borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3171
- last_borrow_rate_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3172
- last_cumulative_borrow_rate: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3173
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3174
- length: number;
3175
- }, string>;
3176
- }, string>;
3177
- static fromFields(fields: Record<string, any>): UpdateBorrowInfoEvent;
3178
- static fromFieldsWithTypes(item: FieldsWithTypes): UpdateBorrowInfoEvent;
3179
- static fromBcs(data: Uint8Array): UpdateBorrowInfoEvent;
3180
- toJSONField(): {
3181
- index: string;
3182
- liquidityTokenType: {
3183
- name: string;
3184
- };
3185
- previousBorrowTsMs: string;
3186
- previousCumulativeBorrowRate: string;
3187
- borrowIntervalTsMs: string;
3188
- lastBorrowRateTsMs: string;
3189
- lastCumulativeBorrowRate: string;
3190
- u64Padding: string[];
3191
- };
3192
- toJSON(): {
3193
- index: string;
3194
- liquidityTokenType: {
3195
- name: string;
3196
- };
3197
- previousBorrowTsMs: string;
3198
- previousCumulativeBorrowRate: string;
3199
- borrowIntervalTsMs: string;
3200
- lastBorrowRateTsMs: string;
3201
- lastCumulativeBorrowRate: string;
3202
- u64Padding: string[];
3203
- $typeName: string;
3204
- $typeArgs: [];
3205
- };
3206
- static fromJSONField(field: any): UpdateBorrowInfoEvent;
3207
- static fromJSON(json: Record<string, any>): UpdateBorrowInfoEvent;
3208
- static fromSuiParsedData(content: SuiParsedData): UpdateBorrowInfoEvent;
3209
- static fromSuiObjectData(data: SuiObjectData): UpdateBorrowInfoEvent;
3210
- static fetch(client: SuiClient, id: string): Promise<UpdateBorrowInfoEvent>;
3211
- }
3212
- export declare function isUpdateLiquidityValueEvent(type: string): boolean;
3213
- export interface UpdateLiquidityValueEventFields {
3214
- sender: ToField<"address">;
3215
- index: ToField<"u64">;
3216
- liquidityToken: ToField<TypeName>;
3217
- price: ToField<"u64">;
3218
- valueInUsd: ToField<"u64">;
3219
- lpPoolTvlUsd: ToField<"u64">;
3220
- u64Padding: ToField<Vector<"u64">>;
3221
- }
3222
- export type UpdateLiquidityValueEventReified = Reified<UpdateLiquidityValueEvent, UpdateLiquidityValueEventFields>;
3223
- export declare class UpdateLiquidityValueEvent implements StructClass {
3224
- __StructClass: true;
3225
- static readonly $typeName: string;
3226
- static readonly $numTypeParams = 0;
3227
- static readonly $isPhantom: readonly [];
3228
- readonly $typeName: string;
3229
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::UpdateLiquidityValueEvent`;
3230
- readonly $typeArgs: [];
3231
- readonly $isPhantom: readonly [];
3232
- readonly sender: ToField<"address">;
3233
- readonly index: ToField<"u64">;
3234
- readonly liquidityToken: ToField<TypeName>;
3235
- readonly price: ToField<"u64">;
3236
- readonly valueInUsd: ToField<"u64">;
3237
- readonly lpPoolTvlUsd: ToField<"u64">;
3238
- readonly u64Padding: ToField<Vector<"u64">>;
3239
- private constructor();
3240
- static reified(): UpdateLiquidityValueEventReified;
3241
- static get r(): reified.StructClassReified<UpdateLiquidityValueEvent, UpdateLiquidityValueEventFields>;
3242
- static phantom(): PhantomReified<ToTypeStr<UpdateLiquidityValueEvent>>;
3243
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::UpdateLiquidityValueEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::UpdateLiquidityValueEvent">;
3244
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
3245
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
3246
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3247
- liquidity_token: import("@mysten/sui/bcs").BcsStruct<{
3248
- name: import("@mysten/sui/bcs").BcsStruct<{
3249
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
3250
- length: number;
3251
- }, string>;
3252
- }, string>;
3253
- }, string>;
3254
- price: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3255
- value_in_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3256
- lp_pool_tvl_usd: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3257
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3258
- length: number;
3259
- }, string>;
3260
- }, string>;
3261
- static fromFields(fields: Record<string, any>): UpdateLiquidityValueEvent;
3262
- static fromFieldsWithTypes(item: FieldsWithTypes): UpdateLiquidityValueEvent;
3263
- static fromBcs(data: Uint8Array): UpdateLiquidityValueEvent;
3264
- toJSONField(): {
3265
- sender: string;
3266
- index: string;
3267
- liquidityToken: {
3268
- name: string;
3269
- };
3270
- price: string;
3271
- valueInUsd: string;
3272
- lpPoolTvlUsd: string;
3273
- u64Padding: string[];
3274
- };
3275
- toJSON(): {
3276
- sender: string;
3277
- index: string;
3278
- liquidityToken: {
3279
- name: string;
3280
- };
3281
- price: string;
3282
- valueInUsd: string;
3283
- lpPoolTvlUsd: string;
3284
- u64Padding: string[];
3285
- $typeName: string;
3286
- $typeArgs: [];
3287
- };
3288
- static fromJSONField(field: any): UpdateLiquidityValueEvent;
3289
- static fromJSON(json: Record<string, any>): UpdateLiquidityValueEvent;
3290
- static fromSuiParsedData(content: SuiParsedData): UpdateLiquidityValueEvent;
3291
- static fromSuiObjectData(data: SuiObjectData): UpdateLiquidityValueEvent;
3292
- static fetch(client: SuiClient, id: string): Promise<UpdateLiquidityValueEvent>;
3293
- }
3294
- export declare function isUpdateMarginConfigEvent(type: string): boolean;
3295
- export interface UpdateMarginConfigEventFields {
3296
- sender: ToField<"address">;
3297
- index: ToField<"u64">;
3298
- liquidityTokenType: ToField<TypeName>;
3299
- previousMarginConfig: ToField<MarginConfig>;
3300
- newMarginConfig: ToField<MarginConfig>;
3301
- u64Padding: ToField<Vector<"u64">>;
3302
- }
3303
- export type UpdateMarginConfigEventReified = Reified<UpdateMarginConfigEvent, UpdateMarginConfigEventFields>;
3304
- export declare class UpdateMarginConfigEvent implements StructClass {
3305
- __StructClass: true;
3306
- static readonly $typeName: string;
3307
- static readonly $numTypeParams = 0;
3308
- static readonly $isPhantom: readonly [];
3309
- readonly $typeName: string;
3310
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::UpdateMarginConfigEvent`;
3311
- readonly $typeArgs: [];
3312
- readonly $isPhantom: readonly [];
3313
- readonly sender: ToField<"address">;
3314
- readonly index: ToField<"u64">;
3315
- readonly liquidityTokenType: ToField<TypeName>;
3316
- readonly previousMarginConfig: ToField<MarginConfig>;
3317
- readonly newMarginConfig: ToField<MarginConfig>;
3318
- readonly u64Padding: ToField<Vector<"u64">>;
3319
- private constructor();
3320
- static reified(): UpdateMarginConfigEventReified;
3321
- static get r(): reified.StructClassReified<UpdateMarginConfigEvent, UpdateMarginConfigEventFields>;
3322
- static phantom(): PhantomReified<ToTypeStr<UpdateMarginConfigEvent>>;
3323
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::UpdateMarginConfigEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::UpdateMarginConfigEvent">;
3324
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
3325
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
3326
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3327
- liquidity_token_type: import("@mysten/sui/bcs").BcsStruct<{
3328
- name: import("@mysten/sui/bcs").BcsStruct<{
3329
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
3330
- length: number;
3331
- }, string>;
3332
- }, string>;
3333
- }, string>;
3334
- previous_margin_config: import("@mysten/sui/bcs").BcsStruct<{
3335
- basic_borrow_rate_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3336
- basic_borrow_rate_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3337
- basic_borrow_rate_2: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3338
- utilization_threshold_bp_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3339
- utilization_threshold_bp_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3340
- borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3341
- max_order_reserve_ratio_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3342
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3343
- length: number;
3344
- }, string>;
3345
- }, string>;
3346
- new_margin_config: import("@mysten/sui/bcs").BcsStruct<{
3347
- basic_borrow_rate_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3348
- basic_borrow_rate_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3349
- basic_borrow_rate_2: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3350
- utilization_threshold_bp_0: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3351
- utilization_threshold_bp_1: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3352
- borrow_interval_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3353
- max_order_reserve_ratio_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3354
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3355
- length: number;
3356
- }, string>;
3357
- }, string>;
3358
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3359
- length: number;
3360
- }, string>;
3361
- }, string>;
3362
- static fromFields(fields: Record<string, any>): UpdateMarginConfigEvent;
3363
- static fromFieldsWithTypes(item: FieldsWithTypes): UpdateMarginConfigEvent;
3364
- static fromBcs(data: Uint8Array): UpdateMarginConfigEvent;
3365
- toJSONField(): {
3366
- sender: string;
3367
- index: string;
3368
- liquidityTokenType: {
3369
- name: string;
3370
- };
3371
- previousMarginConfig: {
3372
- basicBorrowRate0: string;
3373
- basicBorrowRate1: string;
3374
- basicBorrowRate2: string;
3375
- utilizationThresholdBp0: string;
3376
- utilizationThresholdBp1: string;
3377
- borrowIntervalTsMs: string;
3378
- maxOrderReserveRatioBp: string;
3379
- u64Padding: string[];
3380
- };
3381
- newMarginConfig: {
3382
- basicBorrowRate0: string;
3383
- basicBorrowRate1: string;
3384
- basicBorrowRate2: string;
3385
- utilizationThresholdBp0: string;
3386
- utilizationThresholdBp1: string;
3387
- borrowIntervalTsMs: string;
3388
- maxOrderReserveRatioBp: string;
3389
- u64Padding: string[];
3390
- };
3391
- u64Padding: string[];
3392
- };
3393
- toJSON(): {
3394
- sender: string;
3395
- index: string;
3396
- liquidityTokenType: {
3397
- name: string;
3398
- };
3399
- previousMarginConfig: {
3400
- basicBorrowRate0: string;
3401
- basicBorrowRate1: string;
3402
- basicBorrowRate2: string;
3403
- utilizationThresholdBp0: string;
3404
- utilizationThresholdBp1: string;
3405
- borrowIntervalTsMs: string;
3406
- maxOrderReserveRatioBp: string;
3407
- u64Padding: string[];
3408
- };
3409
- newMarginConfig: {
3410
- basicBorrowRate0: string;
3411
- basicBorrowRate1: string;
3412
- basicBorrowRate2: string;
3413
- utilizationThresholdBp0: string;
3414
- utilizationThresholdBp1: string;
3415
- borrowIntervalTsMs: string;
3416
- maxOrderReserveRatioBp: string;
3417
- u64Padding: string[];
3418
- };
3419
- u64Padding: string[];
3420
- $typeName: string;
3421
- $typeArgs: [];
3422
- };
3423
- static fromJSONField(field: any): UpdateMarginConfigEvent;
3424
- static fromJSON(json: Record<string, any>): UpdateMarginConfigEvent;
3425
- static fromSuiParsedData(content: SuiParsedData): UpdateMarginConfigEvent;
3426
- static fromSuiObjectData(data: SuiObjectData): UpdateMarginConfigEvent;
3427
- static fetch(client: SuiClient, id: string): Promise<UpdateMarginConfigEvent>;
3428
- }
3429
- export declare function isUpdateRebalanceCostThresholdBpEvent(type: string): boolean;
3430
- export interface UpdateRebalanceCostThresholdBpEventFields {
3431
- sender: ToField<"address">;
3432
- index: ToField<"u64">;
3433
- previousRebalanceCostThresholdBp: ToField<"u64">;
3434
- newRebalanceCostThresholdBp: ToField<"u64">;
3435
- u64Padding: ToField<Vector<"u64">>;
3436
- }
3437
- export type UpdateRebalanceCostThresholdBpEventReified = Reified<UpdateRebalanceCostThresholdBpEvent, UpdateRebalanceCostThresholdBpEventFields>;
3438
- export declare class UpdateRebalanceCostThresholdBpEvent implements StructClass {
3439
- __StructClass: true;
3440
- static readonly $typeName: string;
3441
- static readonly $numTypeParams = 0;
3442
- static readonly $isPhantom: readonly [];
3443
- readonly $typeName: string;
3444
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::UpdateRebalanceCostThresholdBpEvent`;
3445
- readonly $typeArgs: [];
3446
- readonly $isPhantom: readonly [];
3447
- readonly sender: ToField<"address">;
3448
- readonly index: ToField<"u64">;
3449
- readonly previousRebalanceCostThresholdBp: ToField<"u64">;
3450
- readonly newRebalanceCostThresholdBp: ToField<"u64">;
3451
- readonly u64Padding: ToField<Vector<"u64">>;
3452
- private constructor();
3453
- static reified(): UpdateRebalanceCostThresholdBpEventReified;
3454
- static get r(): reified.StructClassReified<UpdateRebalanceCostThresholdBpEvent, UpdateRebalanceCostThresholdBpEventFields>;
3455
- static phantom(): PhantomReified<ToTypeStr<UpdateRebalanceCostThresholdBpEvent>>;
3456
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::UpdateRebalanceCostThresholdBpEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::UpdateRebalanceCostThresholdBpEvent">;
3457
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
3458
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
3459
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3460
- previous_rebalance_cost_threshold_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3461
- new_rebalance_cost_threshold_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3462
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3463
- length: number;
3464
- }, string>;
3465
- }, string>;
3466
- static fromFields(fields: Record<string, any>): UpdateRebalanceCostThresholdBpEvent;
3467
- static fromFieldsWithTypes(item: FieldsWithTypes): UpdateRebalanceCostThresholdBpEvent;
3468
- static fromBcs(data: Uint8Array): UpdateRebalanceCostThresholdBpEvent;
3469
- toJSONField(): {
3470
- sender: string;
3471
- index: string;
3472
- previousRebalanceCostThresholdBp: string;
3473
- newRebalanceCostThresholdBp: string;
3474
- u64Padding: string[];
3475
- };
3476
- toJSON(): {
3477
- sender: string;
3478
- index: string;
3479
- previousRebalanceCostThresholdBp: string;
3480
- newRebalanceCostThresholdBp: string;
3481
- u64Padding: string[];
3482
- $typeName: string;
3483
- $typeArgs: [];
3484
- };
3485
- static fromJSONField(field: any): UpdateRebalanceCostThresholdBpEvent;
3486
- static fromJSON(json: Record<string, any>): UpdateRebalanceCostThresholdBpEvent;
3487
- static fromSuiParsedData(content: SuiParsedData): UpdateRebalanceCostThresholdBpEvent;
3488
- static fromSuiObjectData(data: SuiObjectData): UpdateRebalanceCostThresholdBpEvent;
3489
- static fetch(client: SuiClient, id: string): Promise<UpdateRebalanceCostThresholdBpEvent>;
3490
- }
3491
- export declare function isUpdateSpotConfigEvent(type: string): boolean;
3492
- export interface UpdateSpotConfigEventFields {
3493
- sender: ToField<"address">;
3494
- index: ToField<"u64">;
3495
- liquidityTokenType: ToField<TypeName>;
3496
- previousSpotConfig: ToField<SpotConfig>;
3497
- newSpotConfig: ToField<SpotConfig>;
3498
- u64Padding: ToField<Vector<"u64">>;
3499
- }
3500
- export type UpdateSpotConfigEventReified = Reified<UpdateSpotConfigEvent, UpdateSpotConfigEventFields>;
3501
- export declare class UpdateSpotConfigEvent implements StructClass {
3502
- __StructClass: true;
3503
- static readonly $typeName: string;
3504
- static readonly $numTypeParams = 0;
3505
- static readonly $isPhantom: readonly [];
3506
- readonly $typeName: string;
3507
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::UpdateSpotConfigEvent`;
3508
- readonly $typeArgs: [];
3509
- readonly $isPhantom: readonly [];
3510
- readonly sender: ToField<"address">;
3511
- readonly index: ToField<"u64">;
3512
- readonly liquidityTokenType: ToField<TypeName>;
3513
- readonly previousSpotConfig: ToField<SpotConfig>;
3514
- readonly newSpotConfig: ToField<SpotConfig>;
3515
- readonly u64Padding: ToField<Vector<"u64">>;
3516
- private constructor();
3517
- static reified(): UpdateSpotConfigEventReified;
3518
- static get r(): reified.StructClassReified<UpdateSpotConfigEvent, UpdateSpotConfigEventFields>;
3519
- static phantom(): PhantomReified<ToTypeStr<UpdateSpotConfigEvent>>;
3520
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::UpdateSpotConfigEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::UpdateSpotConfigEvent">;
3521
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
3522
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
3523
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3524
- liquidity_token_type: import("@mysten/sui/bcs").BcsStruct<{
3525
- name: import("@mysten/sui/bcs").BcsStruct<{
3526
- bytes: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
3527
- length: number;
3528
- }, string>;
3529
- }, string>;
3530
- }, string>;
3531
- previous_spot_config: import("@mysten/sui/bcs").BcsStruct<{
3532
- min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3533
- max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3534
- target_weight_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3535
- basic_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3536
- additional_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3537
- basic_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3538
- additional_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3539
- swap_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3540
- swap_fee_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3541
- lending_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3542
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3543
- length: number;
3544
- }, string>;
3545
- }, string>;
3546
- new_spot_config: import("@mysten/sui/bcs").BcsStruct<{
3547
- min_deposit: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3548
- max_capacity: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3549
- target_weight_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3550
- basic_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3551
- additional_mint_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3552
- basic_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3553
- additional_burn_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3554
- swap_fee_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3555
- swap_fee_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3556
- lending_protocol_share_bp: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3557
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3558
- length: number;
3559
- }, string>;
3560
- }, string>;
3561
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3562
- length: number;
3563
- }, string>;
3564
- }, string>;
3565
- static fromFields(fields: Record<string, any>): UpdateSpotConfigEvent;
3566
- static fromFieldsWithTypes(item: FieldsWithTypes): UpdateSpotConfigEvent;
3567
- static fromBcs(data: Uint8Array): UpdateSpotConfigEvent;
3568
- toJSONField(): {
3569
- sender: string;
3570
- index: string;
3571
- liquidityTokenType: {
3572
- name: string;
3573
- };
3574
- previousSpotConfig: {
3575
- minDeposit: string;
3576
- maxCapacity: string;
3577
- targetWeightBp: string;
3578
- basicMintFeeBp: string;
3579
- additionalMintFeeBp: string;
3580
- basicBurnFeeBp: string;
3581
- additionalBurnFeeBp: string;
3582
- swapFeeBp: string;
3583
- swapFeeProtocolShareBp: string;
3584
- lendingProtocolShareBp: string;
3585
- u64Padding: string[];
3586
- };
3587
- newSpotConfig: {
3588
- minDeposit: string;
3589
- maxCapacity: string;
3590
- targetWeightBp: string;
3591
- basicMintFeeBp: string;
3592
- additionalMintFeeBp: string;
3593
- basicBurnFeeBp: string;
3594
- additionalBurnFeeBp: string;
3595
- swapFeeBp: string;
3596
- swapFeeProtocolShareBp: string;
3597
- lendingProtocolShareBp: string;
3598
- u64Padding: string[];
3599
- };
3600
- u64Padding: string[];
3601
- };
3602
- toJSON(): {
3603
- sender: string;
3604
- index: string;
3605
- liquidityTokenType: {
3606
- name: string;
3607
- };
3608
- previousSpotConfig: {
3609
- minDeposit: string;
3610
- maxCapacity: string;
3611
- targetWeightBp: string;
3612
- basicMintFeeBp: string;
3613
- additionalMintFeeBp: string;
3614
- basicBurnFeeBp: string;
3615
- additionalBurnFeeBp: string;
3616
- swapFeeBp: string;
3617
- swapFeeProtocolShareBp: string;
3618
- lendingProtocolShareBp: string;
3619
- u64Padding: string[];
3620
- };
3621
- newSpotConfig: {
3622
- minDeposit: string;
3623
- maxCapacity: string;
3624
- targetWeightBp: string;
3625
- basicMintFeeBp: string;
3626
- additionalMintFeeBp: string;
3627
- basicBurnFeeBp: string;
3628
- additionalBurnFeeBp: string;
3629
- swapFeeBp: string;
3630
- swapFeeProtocolShareBp: string;
3631
- lendingProtocolShareBp: string;
3632
- u64Padding: string[];
3633
- };
3634
- u64Padding: string[];
3635
- $typeName: string;
3636
- $typeArgs: [];
3637
- };
3638
- static fromJSONField(field: any): UpdateSpotConfigEvent;
3639
- static fromJSON(json: Record<string, any>): UpdateSpotConfigEvent;
3640
- static fromSuiParsedData(content: SuiParsedData): UpdateSpotConfigEvent;
3641
- static fromSuiObjectData(data: SuiObjectData): UpdateSpotConfigEvent;
3642
- static fetch(client: SuiClient, id: string): Promise<UpdateSpotConfigEvent>;
3643
- }
3644
- export declare function isUpdateUnlockCountdownTsMsEvent(type: string): boolean;
3645
- export interface UpdateUnlockCountdownTsMsEventFields {
3646
- sender: ToField<"address">;
3647
- index: ToField<"u64">;
3648
- previousUnlockCountdownTsMs: ToField<"u64">;
3649
- newUnlockCountdownTsMs: ToField<"u64">;
3650
- u64Padding: ToField<Vector<"u64">>;
3651
- }
3652
- export type UpdateUnlockCountdownTsMsEventReified = Reified<UpdateUnlockCountdownTsMsEvent, UpdateUnlockCountdownTsMsEventFields>;
3653
- export declare class UpdateUnlockCountdownTsMsEvent implements StructClass {
3654
- __StructClass: true;
3655
- static readonly $typeName: string;
3656
- static readonly $numTypeParams = 0;
3657
- static readonly $isPhantom: readonly [];
3658
- readonly $typeName: string;
3659
- readonly $fullTypeName: `${typeof PKG_V1}::lp_pool::UpdateUnlockCountdownTsMsEvent`;
3660
- readonly $typeArgs: [];
3661
- readonly $isPhantom: readonly [];
3662
- readonly sender: ToField<"address">;
3663
- readonly index: ToField<"u64">;
3664
- readonly previousUnlockCountdownTsMs: ToField<"u64">;
3665
- readonly newUnlockCountdownTsMs: ToField<"u64">;
3666
- readonly u64Padding: ToField<Vector<"u64">>;
3667
- private constructor();
3668
- static reified(): UpdateUnlockCountdownTsMsEventReified;
3669
- static get r(): reified.StructClassReified<UpdateUnlockCountdownTsMsEvent, UpdateUnlockCountdownTsMsEventFields>;
3670
- static phantom(): PhantomReified<ToTypeStr<UpdateUnlockCountdownTsMsEvent>>;
3671
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::lp_pool::UpdateUnlockCountdownTsMsEvent" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::lp_pool::UpdateUnlockCountdownTsMsEvent">;
3672
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
3673
- sender: import("@mysten/sui/bcs").BcsType<string, string, string>;
3674
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3675
- previous_unlock_countdown_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3676
- new_unlock_countdown_ts_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
3677
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
3678
- length: number;
3679
- }, string>;
3680
- }, string>;
3681
- static fromFields(fields: Record<string, any>): UpdateUnlockCountdownTsMsEvent;
3682
- static fromFieldsWithTypes(item: FieldsWithTypes): UpdateUnlockCountdownTsMsEvent;
3683
- static fromBcs(data: Uint8Array): UpdateUnlockCountdownTsMsEvent;
3684
- toJSONField(): {
3685
- sender: string;
3686
- index: string;
3687
- previousUnlockCountdownTsMs: string;
3688
- newUnlockCountdownTsMs: string;
3689
- u64Padding: string[];
3690
- };
3691
- toJSON(): {
3692
- sender: string;
3693
- index: string;
3694
- previousUnlockCountdownTsMs: string;
3695
- newUnlockCountdownTsMs: string;
3696
- u64Padding: string[];
3697
- $typeName: string;
3698
- $typeArgs: [];
3699
- };
3700
- static fromJSONField(field: any): UpdateUnlockCountdownTsMsEvent;
3701
- static fromJSON(json: Record<string, any>): UpdateUnlockCountdownTsMsEvent;
3702
- static fromSuiParsedData(content: SuiParsedData): UpdateUnlockCountdownTsMsEvent;
3703
- static fromSuiObjectData(data: SuiObjectData): UpdateUnlockCountdownTsMsEvent;
3704
- static fetch(client: SuiClient, id: string): Promise<UpdateUnlockCountdownTsMsEvent>;
3705
- }