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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +88 -0
  2. package/dist/src/_dependencies/source/0x1/ascii/structs.js +398 -0
  3. package/dist/src/_dependencies/source/0x1/index.d.ts +3 -0
  4. package/dist/src/_dependencies/source/0x1/index.js +6 -0
  5. package/dist/src/_dependencies/source/0x1/option/structs.d.ts +50 -0
  6. package/dist/src/_dependencies/source/0x1/option/structs.js +271 -0
  7. package/dist/src/_dependencies/source/0x1/string/structs.d.ts +48 -0
  8. package/dist/src/_dependencies/source/0x1/string/structs.js +256 -0
  9. package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +49 -0
  10. package/dist/src/_dependencies/source/0x1/type-name/structs.js +223 -0
  11. package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +54 -0
  12. package/dist/src/_dependencies/source/0x2/bag/structs.js +229 -0
  13. package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +84 -0
  14. package/dist/src/_dependencies/source/0x2/balance/structs.js +386 -0
  15. package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +406 -0
  16. package/dist/src/_dependencies/source/0x2/coin/structs.js +1247 -0
  17. package/dist/src/_dependencies/source/0x2/index.d.ts +3 -0
  18. package/dist/src/_dependencies/source/0x2/index.js +6 -0
  19. package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +132 -0
  20. package/dist/src/_dependencies/source/0x2/linked-table/structs.js +438 -0
  21. package/dist/src/_dependencies/source/0x2/object/structs.d.ts +86 -0
  22. package/dist/src/_dependencies/source/0x2/object/structs.js +364 -0
  23. package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +54 -0
  24. package/dist/src/_dependencies/source/0x2/object-table/structs.js +248 -0
  25. package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +44 -0
  26. package/dist/src/_dependencies/source/0x2/sui/structs.js +222 -0
  27. package/dist/src/_dependencies/source/0x2/table/structs.d.ts +54 -0
  28. package/dist/src/_dependencies/source/0x2/table/structs.js +248 -0
  29. package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +59 -0
  30. package/dist/src/_dependencies/source/0x2/table-vec/structs.js +274 -0
  31. package/dist/src/_dependencies/source/0x2/token/structs.d.ts +421 -0
  32. package/dist/src/_dependencies/source/0x2/token/structs.js +1095 -0
  33. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +348 -0
  34. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +1091 -0
  35. package/dist/src/_dependencies/source/0x2/url/structs.d.ts +49 -0
  36. package/dist/src/_dependencies/source/0x2/url/structs.js +223 -0
  37. package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +106 -0
  38. package/dist/src/_dependencies/source/0x2/vec-map/structs.js +446 -0
  39. package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +49 -0
  40. package/dist/src/_dependencies/source/0x2/vec-set/structs.js +270 -0
  41. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +422 -0
  42. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +1084 -0
  43. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +130 -0
  44. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +456 -0
  45. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +208 -0
  46. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +653 -0
  47. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +362 -0
  48. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +899 -0
  49. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +8 -0
  50. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +11 -0
  51. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +2 -0
  52. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +102 -0
  53. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +202 -0
  54. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +632 -0
  55. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +600 -0
  56. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +1459 -0
  57. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +136 -0
  58. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.js +438 -0
  59. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +127 -0
  60. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +430 -0
  61. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +957 -0
  62. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +2261 -0
  63. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +244 -0
  64. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +733 -0
  65. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +294 -0
  66. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +892 -0
  67. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +73 -0
  68. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +263 -0
  69. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +294 -0
  70. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +591 -0
  71. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +64 -0
  72. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +258 -0
  73. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +756 -0
  74. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +1721 -0
  75. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +44 -0
  76. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +222 -0
  77. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +3 -0
  78. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +6 -0
  79. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +2 -0
  80. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +89 -0
  81. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +135 -0
  82. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +444 -0
  83. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +2106 -0
  84. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +4952 -0
  85. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +390 -0
  86. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +844 -0
  87. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +6 -0
  88. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +9 -0
  89. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +2 -0
  90. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +69 -0
  91. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +89 -0
  92. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +376 -0
  93. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +386 -0
  94. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +881 -0
  95. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +59 -0
  96. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +274 -0
  97. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +974 -0
  98. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +2387 -0
  99. package/dist/src/_framework/init-loader.d.ts +2 -0
  100. package/dist/src/{generated/typus_perp/treasury_caps.js → _framework/init-loader.js} +10 -17
  101. package/dist/src/_framework/loader.d.ts +17 -0
  102. package/dist/src/_framework/loader.js +108 -0
  103. package/dist/src/_framework/reified.d.ts +108 -0
  104. package/dist/src/_framework/reified.js +237 -0
  105. package/dist/src/_framework/util.d.ts +35 -0
  106. package/dist/src/_framework/util.js +396 -0
  107. package/dist/src/_framework/vector.d.ts +42 -0
  108. package/dist/src/_framework/vector.js +112 -0
  109. package/dist/src/api/sentio.js +538 -604
  110. package/dist/src/fetch.d.ts +36 -577
  111. package/dist/src/fetch.js +665 -367
  112. package/dist/src/index.d.ts +4 -0
  113. package/dist/src/index.js +39 -20
  114. package/dist/src/pyth.js +1 -0
  115. package/dist/src/typus_perp/admin/functions.d.ts +59 -0
  116. package/dist/src/typus_perp/admin/functions.js +122 -0
  117. package/dist/src/typus_perp/admin/structs.d.ts +467 -0
  118. package/dist/src/typus_perp/admin/structs.js +1065 -0
  119. package/dist/src/typus_perp/competition/functions.d.ts +24 -0
  120. package/dist/src/typus_perp/competition/functions.js +38 -0
  121. package/dist/src/typus_perp/competition/structs.d.ts +80 -0
  122. package/dist/src/typus_perp/competition/structs.js +288 -0
  123. package/dist/src/typus_perp/error/functions.d.ts +73 -0
  124. package/dist/src/typus_perp/error/functions.js +363 -0
  125. package/dist/src/typus_perp/escrow/functions.d.ts +17 -0
  126. package/dist/src/typus_perp/escrow/functions.js +36 -0
  127. package/dist/src/typus_perp/escrow/structs.d.ts +160 -0
  128. package/dist/src/typus_perp/escrow/structs.js +324 -0
  129. package/dist/src/typus_perp/index.d.ts +1 -0
  130. package/dist/src/typus_perp/index.js +7 -0
  131. package/dist/src/typus_perp/init.d.ts +2 -0
  132. package/dist/src/typus_perp/init.js +118 -0
  133. package/dist/src/typus_perp/lending/functions.d.ts +15 -0
  134. package/dist/src/typus_perp/lending/functions.js +22 -0
  135. package/dist/src/typus_perp/lp-pool/functions.d.ts +460 -0
  136. package/dist/src/typus_perp/lp-pool/functions.js +732 -0
  137. package/dist/src/typus_perp/lp-pool/structs.d.ts +3705 -0
  138. package/dist/src/typus_perp/lp-pool/structs.js +6789 -0
  139. package/dist/src/typus_perp/math/functions.d.ts +29 -0
  140. package/dist/src/typus_perp/math/functions.js +61 -0
  141. package/dist/src/typus_perp/position/functions.d.ts +379 -0
  142. package/dist/src/typus_perp/position/functions.js +713 -0
  143. package/dist/src/typus_perp/position/structs.d.ts +905 -0
  144. package/dist/src/typus_perp/position/structs.js +1450 -0
  145. package/dist/src/typus_perp/symbol/functions.d.ts +9 -0
  146. package/dist/src/typus_perp/symbol/functions.js +24 -0
  147. package/dist/src/typus_perp/symbol/structs.d.ts +70 -0
  148. package/dist/src/typus_perp/symbol/structs.js +235 -0
  149. package/dist/src/typus_perp/tlp/functions.d.ts +19 -0
  150. package/dist/src/typus_perp/tlp/functions.js +40 -0
  151. package/dist/src/typus_perp/tlp/structs.d.ts +89 -0
  152. package/dist/src/typus_perp/tlp/structs.js +365 -0
  153. package/dist/src/typus_perp/token-interface/functions.d.ts +11 -0
  154. package/dist/src/typus_perp/token-interface/functions.js +22 -0
  155. package/dist/src/typus_perp/trading/functions.d.ts +812 -0
  156. package/dist/src/typus_perp/trading/functions.js +1218 -0
  157. package/dist/src/typus_perp/trading/structs.d.ts +3060 -0
  158. package/dist/src/typus_perp/trading/structs.js +5813 -0
  159. package/dist/src/typus_perp/treasury-caps/functions.d.ts +9 -0
  160. package/dist/src/typus_perp/treasury-caps/functions.js +36 -0
  161. package/dist/src/typus_perp/treasury-caps/structs.d.ts +49 -0
  162. package/dist/src/typus_perp/treasury-caps/structs.js +223 -0
  163. package/dist/src/typus_perp/user-account/functions.d.ts +36 -0
  164. package/dist/src/typus_perp/user-account/functions.js +70 -0
  165. package/dist/src/typus_perp/user-account/structs.d.ts +148 -0
  166. package/dist/src/typus_perp/user-account/structs.js +448 -0
  167. package/dist/src/typus_stake_pool/admin/functions.d.ts +49 -0
  168. package/dist/src/typus_stake_pool/admin/functions.js +105 -0
  169. package/dist/src/typus_stake_pool/admin/structs.d.ts +365 -0
  170. package/dist/src/typus_stake_pool/admin/structs.js +789 -0
  171. package/dist/src/typus_stake_pool/index.d.ts +1 -0
  172. package/dist/src/typus_stake_pool/index.js +7 -0
  173. package/dist/src/typus_stake_pool/init.d.ts +2 -0
  174. package/dist/src/typus_stake_pool/init.js +69 -0
  175. package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +229 -0
  176. package/dist/src/typus_stake_pool/stake-pool/functions.js +380 -0
  177. package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +2199 -0
  178. package/dist/src/typus_stake_pool/stake-pool/structs.js +4653 -0
  179. package/dist/src/user/history.js +685 -614
  180. package/dist/src/user/order.d.ts +11 -16
  181. package/dist/src/user/order.js +302 -171
  182. package/dist/src/user/orderWithBidReceipt.d.ts +6 -8
  183. package/dist/src/user/orderWithBidReceipt.js +225 -127
  184. package/dist/src/user/tlp.d.ts +24 -25
  185. package/dist/src/user/tlp.js +468 -317
  186. package/package.json +3 -11
  187. package/dist/src/client.d.ts +0 -27
  188. package/dist/src/client.js +0 -108
  189. package/dist/src/generated/typus_perp/admin.d.ts +0 -117
  190. package/dist/src/generated/typus_perp/admin.js +0 -110
  191. package/dist/src/generated/typus_perp/competition.d.ts +0 -22
  192. package/dist/src/generated/typus_perp/competition.js +0 -58
  193. package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +0 -17
  194. package/dist/src/generated/typus_perp/deps/std/type_name.js +0 -25
  195. package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +0 -12
  196. package/dist/src/generated/typus_perp/deps/sui/balance.js +0 -20
  197. package/dist/src/generated/typus_perp/deps/sui/object.d.ts +0 -8
  198. package/dist/src/generated/typus_perp/deps/sui/object.js +0 -16
  199. package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +0 -19
  200. package/dist/src/generated/typus_perp/deps/sui/object_table.js +0 -59
  201. package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +0 -18
  202. package/dist/src/generated/typus_perp/deps/sui/vec_set.js +0 -25
  203. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +0 -30
  204. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +0 -67
  205. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +0 -32
  206. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +0 -71
  207. package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +0 -23
  208. package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +0 -61
  209. package/dist/src/generated/typus_perp/escrow.d.ts +0 -59
  210. package/dist/src/generated/typus_perp/escrow.js +0 -76
  211. package/dist/src/generated/typus_perp/lending.d.ts +0 -47
  212. package/dist/src/generated/typus_perp/lending.js +0 -50
  213. package/dist/src/generated/typus_perp/lp_pool.d.ts +0 -2327
  214. package/dist/src/generated/typus_perp/lp_pool.js +0 -1956
  215. package/dist/src/generated/typus_perp/math.d.ts +0 -95
  216. package/dist/src/generated/typus_perp/math.js +0 -97
  217. package/dist/src/generated/typus_perp/position.d.ts +0 -234
  218. package/dist/src/generated/typus_perp/position.js +0 -204
  219. package/dist/src/generated/typus_perp/symbol.d.ts +0 -18
  220. package/dist/src/generated/typus_perp/symbol.js +0 -55
  221. package/dist/src/generated/typus_perp/tlp.d.ts +0 -13
  222. package/dist/src/generated/typus_perp/tlp.js +0 -56
  223. package/dist/src/generated/typus_perp/trading.d.ts +0 -2486
  224. package/dist/src/generated/typus_perp/trading.js +0 -2476
  225. package/dist/src/generated/typus_perp/treasury_caps.d.ts +0 -13
  226. package/dist/src/generated/typus_perp/user_account.d.ts +0 -40
  227. package/dist/src/generated/typus_perp/user_account.js +0 -72
  228. package/dist/src/generated/typus_stake_pool/admin.d.ts +0 -234
  229. package/dist/src/generated/typus_stake_pool/admin.js +0 -272
  230. package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +0 -17
  231. package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +0 -25
  232. package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +0 -8
  233. package/dist/src/generated/typus_stake_pool/deps/sui/object.js +0 -16
  234. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +0 -30
  235. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +0 -37
  236. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +0 -18
  237. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +0 -25
  238. package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +0 -986
  239. package/dist/src/generated/typus_stake_pool/stake_pool.js +0 -874
  240. package/dist/src/generated/utils/index.d.ts +0 -11
  241. package/dist/src/generated/utils/index.js +0 -135
  242. package/dist/src/grpc/graphql.d.ts +0 -26
  243. package/dist/src/grpc/graphql.js +0 -126
  244. package/dist/src/grpc/grpc.d.ts +0 -1
  245. package/dist/src/grpc/grpc.js +0 -38
  246. package/dist/src/grpc/ledgerService.js +0 -64
  247. package/dist/src/grpc/liveDataService.d.ts +0 -0
  248. package/dist/src/grpc/liveDataService.js +0 -49
  249. /package/dist/src/{grpc/ledgerService.d.ts → pyth.d.ts} +0 -0
@@ -1,59 +0,0 @@
1
- "use strict";
2
- /**************************************************************
3
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
4
- **************************************************************/
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ObjectTable = void 0;
40
- /**
41
- * Similar to `sui::table`, an `ObjectTable<K, V>` is a map-like collection. But
42
- * unlike `sui::table`, the values bound to these dynamic fields _must_ be objects
43
- * themselves. This allows for the objects to still exist within in storage, which
44
- * may be important for external tools. The difference is otherwise not observable
45
- * from within Move.
46
- */
47
- const index_1 = require("../../../utils/index");
48
- const bcs_1 = require("@mysten/sui/bcs");
49
- const object = __importStar(require("./object"));
50
- const $moduleName = "0x2::object_table";
51
- exports.ObjectTable = new index_1.MoveStruct({
52
- name: `${$moduleName}::ObjectTable`,
53
- fields: {
54
- /** the ID of this table */
55
- id: object.UID,
56
- /** the number of key-value pairs in the table */
57
- size: bcs_1.bcs.u64(),
58
- },
59
- });
@@ -1,18 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { type BcsType } from "@mysten/sui/bcs";
5
- import { MoveStruct } from "../../../utils/index";
6
- /**
7
- * A set data structure backed by a vector. The set is guaranteed not to contain
8
- * duplicate keys. All operations are O(N) in the size of the set
9
- *
10
- * - the intention of this data structure is only to provide the convenience of
11
- * programming against a set API. Sets that need sorted iteration rather than
12
- * insertion order iteration should be handwritten.
13
- */
14
- export declare function VecSet<K extends BcsType<any>>(...typeParameters: [K]): MoveStruct<{
15
- contents: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
16
- length: number;
17
- }, string>;
18
- }, `0x2::vec_set::VecSet<${K["name"]}>`>;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VecSet = VecSet;
4
- /**************************************************************
5
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
6
- **************************************************************/
7
- const bcs_1 = require("@mysten/sui/bcs");
8
- const index_1 = require("../../../utils/index");
9
- const $moduleName = "0x2::vec_set";
10
- /**
11
- * A set data structure backed by a vector. The set is guaranteed not to contain
12
- * duplicate keys. All operations are O(N) in the size of the set
13
- *
14
- * - the intention of this data structure is only to provide the convenience of
15
- * programming against a set API. Sets that need sorted iteration rather than
16
- * insertion order iteration should be handwritten.
17
- */
18
- function VecSet(...typeParameters) {
19
- return new index_1.MoveStruct({
20
- name: `${$moduleName}::VecSet<${typeParameters[0].name}>`,
21
- fields: {
22
- contents: bcs_1.bcs.vector(typeParameters[0]),
23
- },
24
- });
25
- }
@@ -1,30 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * This module implements a `KeyedBigVector`, a data structure that combines the
6
- * features of a `BigVector` and a `Table`. It allows for both indexed and keyed
7
- * access to a large number of elements by storing them in slices, while
8
- * maintaining a mapping from keys to indices in a `Table`.
9
- */
10
- import { MoveStruct } from "../../../utils/index";
11
- export declare const KeyedBigVector: MoveStruct<{
12
- /** The unique identifier of the KeyedBigVector object. */
13
- id: MoveStruct<{
14
- id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
15
- }, "0x2::object::UID">;
16
- /** The type name of the keys. */
17
- key_type: MoveStruct<{
18
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
19
- }, "std::type_name::TypeName">;
20
- /** The type name of the values. */
21
- value_type: MoveStruct<{
22
- name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
23
- }, "std::type_name::TypeName">;
24
- /** The index of the latest slice. */
25
- slice_idx: import("@mysten/sui/bcs").BcsType<number, number, "u16">;
26
- /** The maximum size of each slice. */
27
- slice_size: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
28
- /** The total number of elements in the KeyedBigVector. */
29
- length: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
30
- }, "typus::keyed_big_vector::KeyedBigVector">;
@@ -1,67 +0,0 @@
1
- "use strict";
2
- /**************************************************************
3
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
4
- **************************************************************/
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.KeyedBigVector = void 0;
40
- /**
41
- * This module implements a `KeyedBigVector`, a data structure that combines the
42
- * features of a `BigVector` and a `Table`. It allows for both indexed and keyed
43
- * access to a large number of elements by storing them in slices, while
44
- * maintaining a mapping from keys to indices in a `Table`.
45
- */
46
- const index_1 = require("../../../utils/index");
47
- const bcs_1 = require("@mysten/sui/bcs");
48
- const object = __importStar(require("../sui/object"));
49
- const type_name = __importStar(require("../std/type_name"));
50
- const $moduleName = "typus::keyed_big_vector";
51
- exports.KeyedBigVector = new index_1.MoveStruct({
52
- name: `${$moduleName}::KeyedBigVector`,
53
- fields: {
54
- /** The unique identifier of the KeyedBigVector object. */
55
- id: object.UID,
56
- /** The type name of the keys. */
57
- key_type: type_name.TypeName,
58
- /** The type name of the values. */
59
- value_type: type_name.TypeName,
60
- /** The index of the latest slice. */
61
- slice_idx: bcs_1.bcs.u16(),
62
- /** The maximum size of each slice. */
63
- slice_size: bcs_1.bcs.u32(),
64
- /** The total number of elements in the KeyedBigVector. */
65
- length: bcs_1.bcs.u64(),
66
- },
67
- });
@@ -1,32 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * This module implements a `LinkedObjectTable`, which is similar to
6
- * `sui::linked_table` but stores its values as dynamic object fields. This allows
7
- * the values to be objects themselves, which can be useful for storing complex
8
- * data structures. The table maintains a doubly-linked list of its entries,
9
- * allowing for efficient iteration in both forward and reverse order.
10
- */
11
- import { type BcsType } from "@mysten/sui/bcs";
12
- import { MoveStruct } from "../../../utils/index";
13
- /**
14
- * A doubly-linked list of key-value pairs where values are stored as dynamic
15
- * object fields.
16
- */
17
- export declare function LinkedObjectTable<K extends BcsType<any>>(...typeParameters: [K]): MoveStruct<{
18
- /** The UID for storing the nodes of the linked list. */
19
- id: MoveStruct<{
20
- id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
21
- }, "0x2::object::UID">;
22
- /** The UID for storing the values as dynamic object fields. */
23
- vid: MoveStruct<{
24
- id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
25
- }, "0x2::object::UID">;
26
- /** The number of key-value pairs in the table. */
27
- size: BcsType<string, string | number | bigint, "u64">;
28
- /** The key of the first entry in the table. */
29
- head: BcsType<import("@mysten/bcs").InferBcsType<K> | null, import("@mysten/bcs").InferBcsInput<K> | null | undefined, `Option<${K["name"]}>`>;
30
- /** The key of the last entry in the table. */
31
- tail: BcsType<import("@mysten/bcs").InferBcsType<K> | null, import("@mysten/bcs").InferBcsInput<K> | null | undefined, `Option<${K["name"]}>`>;
32
- }, `typus::linked_object_table::LinkedObjectTable<${K["name"]}>`>;
@@ -1,71 +0,0 @@
1
- "use strict";
2
- /**************************************************************
3
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
4
- **************************************************************/
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.LinkedObjectTable = LinkedObjectTable;
40
- /**
41
- * This module implements a `LinkedObjectTable`, which is similar to
42
- * `sui::linked_table` but stores its values as dynamic object fields. This allows
43
- * the values to be objects themselves, which can be useful for storing complex
44
- * data structures. The table maintains a doubly-linked list of its entries,
45
- * allowing for efficient iteration in both forward and reverse order.
46
- */
47
- const bcs_1 = require("@mysten/sui/bcs");
48
- const index_1 = require("../../../utils/index");
49
- const object = __importStar(require("../sui/object"));
50
- const $moduleName = "typus::linked_object_table";
51
- /**
52
- * A doubly-linked list of key-value pairs where values are stored as dynamic
53
- * object fields.
54
- */
55
- function LinkedObjectTable(...typeParameters) {
56
- return new index_1.MoveStruct({
57
- name: `${$moduleName}::LinkedObjectTable<${typeParameters[0].name}>`,
58
- fields: {
59
- /** The UID for storing the nodes of the linked list. */
60
- id: object.UID,
61
- /** The UID for storing the values as dynamic object fields. */
62
- vid: object.UID,
63
- /** The number of key-value pairs in the table. */
64
- size: bcs_1.bcs.u64(),
65
- /** The key of the first entry in the table. */
66
- head: bcs_1.bcs.option(typeParameters[0]),
67
- /** The key of the last entry in the table. */
68
- tail: bcs_1.bcs.option(typeParameters[0]),
69
- },
70
- });
71
- }
@@ -1,23 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * No authority chech in these public functions, do not let `DepositVault`
6
- * `BidVault` and `RefundVault` be exposed.
7
- */
8
- import { MoveStruct } from "../../../utils/index";
9
- export declare const TypusBidReceipt: MoveStruct<{
10
- id: MoveStruct<{
11
- id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
12
- }, "0x2::object::UID">;
13
- /** The ID of the `BidVault`. */
14
- vid: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
15
- /** The index of the vault. */
16
- index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
17
- /** Metadata for display purposes. */
18
- metadata: import("@mysten/sui/bcs").BcsType<string, string, "string">;
19
- /** Padding for additional u64 fields. */
20
- u64_padding: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
21
- length: number;
22
- }, string>;
23
- }, "typus_framework::vault::TypusBidReceipt">;
@@ -1,61 +0,0 @@
1
- "use strict";
2
- /**************************************************************
3
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
4
- **************************************************************/
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.TypusBidReceipt = void 0;
40
- /**
41
- * No authority chech in these public functions, do not let `DepositVault`
42
- * `BidVault` and `RefundVault` be exposed.
43
- */
44
- const index_1 = require("../../../utils/index");
45
- const bcs_1 = require("@mysten/sui/bcs");
46
- const object = __importStar(require("../sui/object"));
47
- const $moduleName = "typus_framework::vault";
48
- exports.TypusBidReceipt = new index_1.MoveStruct({
49
- name: `${$moduleName}::TypusBidReceipt`,
50
- fields: {
51
- id: object.UID,
52
- /** The ID of the `BidVault`. */
53
- vid: bcs_1.bcs.Address,
54
- /** The index of the vault. */
55
- index: bcs_1.bcs.u64(),
56
- /** Metadata for display purposes. */
57
- metadata: bcs_1.bcs.string(),
58
- /** Padding for additional u64 fields. */
59
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
60
- },
61
- });
@@ -1,59 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * The `escrow` module defines the `UnsettledBidReceipt` struct and functions for
6
- * creating and destructing it. This is used to handle unsettled bids from
7
- * liquidations.
8
- */
9
- import { MoveStruct } from "../utils/index";
10
- export declare const UnsettledBidReceipt: MoveStruct<{
11
- /** A vector of `TypusBidReceipt` structs. */
12
- receipt: import("@mysten/sui/bcs").BcsType<{
13
- id: {
14
- id: string;
15
- };
16
- vid: string;
17
- index: string;
18
- metadata: string;
19
- u64_padding: string[];
20
- }[], Iterable<{
21
- id: {
22
- id: string | Uint8Array<ArrayBufferLike>;
23
- };
24
- vid: string | Uint8Array<ArrayBufferLike>;
25
- index: string | number | bigint;
26
- metadata: string;
27
- u64_padding: Iterable<string | number | bigint> & {
28
- length: number;
29
- };
30
- }> & {
31
- length: number;
32
- }, string>;
33
- /** The ID of the position. */
34
- position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
35
- /** The address of the user. */
36
- user: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
37
- /** A vector of the token types. */
38
- token_types: import("@mysten/sui/bcs").BcsType<{
39
- name: string;
40
- }[], Iterable<{
41
- name: string;
42
- }> & {
43
- length: number;
44
- }, string>;
45
- /** The sign of the unrealized PNL. */
46
- unrealized_pnl_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
47
- /** The unrealized PNL. */
48
- unrealized_pnl: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
49
- /** The unrealized trading fee. */
50
- unrealized_trading_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
51
- /** The unrealized borrow fee. */
52
- unrealized_borrow_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
53
- /** The sign of the unrealized funding fee. */
54
- unrealized_funding_fee_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
55
- /** The unrealized funding fee. */
56
- unrealized_funding_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
57
- /** The unrealized liquidator fee. */
58
- unrealized_liquidator_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
59
- }, "@typus/perp::escrow::UnsettledBidReceipt">;
@@ -1,76 +0,0 @@
1
- "use strict";
2
- /**************************************************************
3
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
4
- **************************************************************/
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.UnsettledBidReceipt = void 0;
40
- /**
41
- * The `escrow` module defines the `UnsettledBidReceipt` struct and functions for
42
- * creating and destructing it. This is used to handle unsettled bids from
43
- * liquidations.
44
- */
45
- const index_1 = require("../utils/index");
46
- const bcs_1 = require("@mysten/sui/bcs");
47
- const vault = __importStar(require("./deps/typus_framework/vault"));
48
- const type_name = __importStar(require("./deps/std/type_name"));
49
- const $moduleName = "@typus/perp::escrow";
50
- exports.UnsettledBidReceipt = new index_1.MoveStruct({
51
- name: `${$moduleName}::UnsettledBidReceipt`,
52
- fields: {
53
- /** A vector of `TypusBidReceipt` structs. */
54
- receipt: bcs_1.bcs.vector(vault.TypusBidReceipt),
55
- /** The ID of the position. */
56
- position_id: bcs_1.bcs.u64(),
57
- /** The address of the user. */
58
- user: bcs_1.bcs.Address,
59
- /** A vector of the token types. */
60
- token_types: bcs_1.bcs.vector(type_name.TypeName),
61
- /** The sign of the unrealized PNL. */
62
- unrealized_pnl_sign: bcs_1.bcs.bool(),
63
- /** The unrealized PNL. */
64
- unrealized_pnl: bcs_1.bcs.u64(),
65
- /** The unrealized trading fee. */
66
- unrealized_trading_fee: bcs_1.bcs.u64(),
67
- /** The unrealized borrow fee. */
68
- unrealized_borrow_fee: bcs_1.bcs.u64(),
69
- /** The sign of the unrealized funding fee. */
70
- unrealized_funding_fee_sign: bcs_1.bcs.bool(),
71
- /** The unrealized funding fee. */
72
- unrealized_funding_fee: bcs_1.bcs.u64(),
73
- /** The unrealized liquidator fee. */
74
- unrealized_liquidator_fee: bcs_1.bcs.u64(),
75
- },
76
- });
@@ -1,47 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * The `lending` module provides functions for interacting with the Scallop lending
6
- * protocol.
7
- */
8
- import { type Transaction } from "@mysten/sui/transactions";
9
- import { type RawTransactionArgument } from "../utils/index";
10
- export interface DepositScallopBasicArguments {
11
- balance: RawTransactionArgument<string>;
12
- scallopVersion: RawTransactionArgument<string>;
13
- scallopMarket: RawTransactionArgument<string>;
14
- }
15
- export interface DepositScallopBasicOptions {
16
- package?: string;
17
- arguments: DepositScallopBasicArguments | [
18
- balance: RawTransactionArgument<string>,
19
- scallopVersion: RawTransactionArgument<string>,
20
- scallopMarket: RawTransactionArgument<string>
21
- ];
22
- typeArguments: [string];
23
- }
24
- /**
25
- * Deposits a token into the Scallop lending protocol. WARNING: no authority check
26
- * inside
27
- */
28
- export declare function depositScallopBasic(options: DepositScallopBasicOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
29
- export interface WithdrawScallopBasicArguments {
30
- marketCoin: RawTransactionArgument<string>;
31
- scallopVersion: RawTransactionArgument<string>;
32
- scallopMarket: RawTransactionArgument<string>;
33
- }
34
- export interface WithdrawScallopBasicOptions {
35
- package?: string;
36
- arguments: WithdrawScallopBasicArguments | [
37
- marketCoin: RawTransactionArgument<string>,
38
- scallopVersion: RawTransactionArgument<string>,
39
- scallopMarket: RawTransactionArgument<string>
40
- ];
41
- typeArguments: [string];
42
- }
43
- /**
44
- * Withdraws a token from the Scallop lending protocol. WARNING: no authority check
45
- * inside
46
- */
47
- export declare function withdrawScallopBasic(options: WithdrawScallopBasicOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /**************************************************************
3
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
4
- **************************************************************/
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.depositScallopBasic = depositScallopBasic;
7
- exports.withdrawScallopBasic = withdrawScallopBasic;
8
- const index_1 = require("../utils/index");
9
- /**
10
- * Deposits a token into the Scallop lending protocol. WARNING: no authority check
11
- * inside
12
- */
13
- function depositScallopBasic(options) {
14
- const packageAddress = options.package ?? "@typus/perp";
15
- const argumentsTypes = [
16
- `0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance<${options.typeArguments[0]}>`,
17
- "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::version::Version",
18
- "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::market::Market",
19
- "0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock",
20
- ];
21
- const parameterNames = ["balance", "scallopVersion", "scallopMarket"];
22
- return (tx) => tx.moveCall({
23
- package: packageAddress,
24
- module: "lending",
25
- function: "deposit_scallop_basic",
26
- arguments: (0, index_1.normalizeMoveArguments)(options.arguments, argumentsTypes, parameterNames),
27
- typeArguments: options.typeArguments,
28
- });
29
- }
30
- /**
31
- * Withdraws a token from the Scallop lending protocol. WARNING: no authority check
32
- * inside
33
- */
34
- function withdrawScallopBasic(options) {
35
- const packageAddress = options.package ?? "@typus/perp";
36
- const argumentsTypes = [
37
- `0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin<0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::reserve::MarketCoin<${options.typeArguments[0]}>>`,
38
- "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::version::Version",
39
- "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::market::Market",
40
- "0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock",
41
- ];
42
- const parameterNames = ["marketCoin", "scallopVersion", "scallopMarket"];
43
- return (tx) => tx.moveCall({
44
- package: packageAddress,
45
- module: "lending",
46
- function: "withdraw_scallop_basic",
47
- arguments: (0, index_1.normalizeMoveArguments)(options.arguments, argumentsTypes, parameterNames),
48
- typeArguments: options.typeArguments,
49
- });
50
- }