@typus/typus-perp-sdk 1.1.30 → 1.1.31-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 +160 -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 +11 -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,363 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.activeTradingSymbol = activeTradingSymbol;
4
- exports.addSizeNotAllowed = addSizeNotAllowed;
5
- exports.auctionNotYetEnded = auctionNotYetEnded;
6
- exports.authorityAlreadyExisted = authorityAlreadyExisted;
7
- exports.authorityDoestNotExist = authorityDoestNotExist;
8
- exports.authorityEmpty = authorityEmpty;
9
- exports.balanceNotEnoughForPayingFee = balanceNotEnoughForPayingFee;
10
- exports.baseTokenMismatched = baseTokenMismatched;
11
- exports.bidReceiptHasBeenExpired = bidReceiptHasBeenExpired;
12
- exports.bidReceiptNotExpired = bidReceiptNotExpired;
13
- exports.bidReceiptNotItm = bidReceiptNotItm;
14
- exports.bidTokenMismatched = bidTokenMismatched;
15
- exports.collateralTokenTypeMismatched = collateralTokenTypeMismatched;
16
- exports.deactivatingSharesAlreadyExisted = deactivatingSharesAlreadyExisted;
17
- exports.depositAmountInsufficient = depositAmountInsufficient;
18
- exports.depositTokenMismatched = depositTokenMismatched;
19
- exports.exceedMaxLeverage = exceedMaxLeverage;
20
- exports.exceedMaxOpenInterest = exceedMaxOpenInterest;
21
- exports.frictionTooLarge = frictionTooLarge;
22
- exports.insufficientAmountForMintFee = insufficientAmountForMintFee;
23
- exports.invalidBidReceiptsInput = invalidBidReceiptsInput;
24
- exports.invalidBoostBpArrayLength = invalidBoostBpArrayLength;
25
- exports.invalidOrderSide = invalidOrderSide;
26
- exports.invalidOrderSize = invalidOrderSize;
27
- exports.invalidTokenType = invalidTokenType;
28
- exports.invalidTradingFeeConfig = invalidTradingFeeConfig;
29
- exports.invalidVersion = invalidVersion;
30
- exports.linkedOrderIdNotExisted = linkedOrderIdNotExisted;
31
- exports.liquidityNotEnough = liquidityNotEnough;
32
- exports.liquidityTokenNotExisted = liquidityTokenNotExisted;
33
- exports.lpPoolReserveNotEnough = lpPoolReserveNotEnough;
34
- exports.lpTokenTypeMismatched = lpTokenTypeMismatched;
35
- exports.marketsInactive = marketsInactive;
36
- exports.notOptionCollateralOrder = notOptionCollateralOrder;
37
- exports.notOptionCollateralPosition = notOptionCollateralPosition;
38
- exports.notReduceOnlyExecution = notReduceOnlyExecution;
39
- exports.notTokenCollateralPosition = notTokenCollateralPosition;
40
- exports.optionCollateralNotEnough = optionCollateralNotEnough;
41
- exports.optionCollateralOrderNotFilled = optionCollateralOrderNotFilled;
42
- exports.oracleMismatched = oracleMismatched;
43
- exports.orderNotFilledImmediately = orderNotFilledImmediately;
44
- exports.orderNotFound = orderNotFound;
45
- exports.orderOrPositionSizeNotZero = orderOrPositionSizeNotZero;
46
- exports.perpPositionLosses = perpPositionLosses;
47
- exports.poolAlreadyActive = poolAlreadyActive;
48
- exports.poolInactive = poolInactive;
49
- exports.portfolioIndexMismatched = portfolioIndexMismatched;
50
- exports.positionIdNeededWithReduceOnlyOrder = positionIdNeededWithReduceOnlyOrder;
51
- exports.processShouldRemoveOrder = processShouldRemoveOrder;
52
- exports.processShouldRemovePosition = processShouldRemovePosition;
53
- exports.processShouldRepayLiquidity = processShouldRepayLiquidity;
54
- exports.processShouldSwap = processShouldSwap;
55
- exports.reachMaxCapacity = reachMaxCapacity;
56
- exports.reachMaxSingleOrderReserveUsage = reachMaxSingleOrderReserveUsage;
57
- exports.reachSlippageThreshold = reachSlippageThreshold;
58
- exports.remainingCollateralNotEnough = remainingCollateralNotEnough;
59
- exports.tokenCollateralNotEnough = tokenCollateralNotEnough;
60
- exports.tokenPoolAlreadyActive = tokenPoolAlreadyActive;
61
- exports.tokenPoolInactive = tokenPoolInactive;
62
- exports.tooManyLinkedOrders = tooManyLinkedOrders;
63
- exports.tradingSymbolExisted = tradingSymbolExisted;
64
- exports.tradingSymbolInactive = tradingSymbolInactive;
65
- exports.tradingSymbolNotExisted = tradingSymbolNotExisted;
66
- exports.tvlNotYetUpdated = tvlNotYetUpdated;
67
- exports.unauthorized = unauthorized;
68
- exports.unsupportedOrderTypeTag = unsupportedOrderTypeTag;
69
- exports.unsupportedProcessStatusCode = unsupportedProcessStatusCode;
70
- exports.userDeactivatingSharesNotExisted = userDeactivatingSharesNotExisted;
71
- exports.userMismatched = userMismatched;
72
- exports.wrongCollateralType = wrongCollateralType;
73
- exports.zeroPrice = zeroPrice;
74
- exports.zeroTotalSupply = zeroTotalSupply;
75
- var __1 = require("..");
76
- function activeTradingSymbol(tx, published_at) {
77
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
78
- return tx.moveCall({ target: "".concat(published_at, "::error::active_trading_symbol"), arguments: [] });
79
- }
80
- function addSizeNotAllowed(tx, published_at) {
81
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
82
- return tx.moveCall({ target: "".concat(published_at, "::error::add_size_not_allowed"), arguments: [] });
83
- }
84
- function auctionNotYetEnded(tx, published_at) {
85
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
86
- return tx.moveCall({ target: "".concat(published_at, "::error::auction_not_yet_ended"), arguments: [] });
87
- }
88
- function authorityAlreadyExisted(tx, published_at) {
89
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
90
- return tx.moveCall({ target: "".concat(published_at, "::error::authority_already_existed"), arguments: [] });
91
- }
92
- function authorityDoestNotExist(tx, published_at) {
93
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
94
- return tx.moveCall({ target: "".concat(published_at, "::error::authority_doest_not_exist"), arguments: [] });
95
- }
96
- function authorityEmpty(tx, published_at) {
97
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
98
- return tx.moveCall({ target: "".concat(published_at, "::error::authority_empty"), arguments: [] });
99
- }
100
- function balanceNotEnoughForPayingFee(tx, published_at) {
101
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
102
- return tx.moveCall({ target: "".concat(published_at, "::error::balance_not_enough_for_paying_fee"), arguments: [] });
103
- }
104
- function baseTokenMismatched(tx, published_at) {
105
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
106
- return tx.moveCall({ target: "".concat(published_at, "::error::base_token_mismatched"), arguments: [] });
107
- }
108
- function bidReceiptHasBeenExpired(tx, published_at) {
109
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
110
- return tx.moveCall({ target: "".concat(published_at, "::error::bid_receipt_has_been_expired"), arguments: [] });
111
- }
112
- function bidReceiptNotExpired(tx, published_at) {
113
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
114
- return tx.moveCall({ target: "".concat(published_at, "::error::bid_receipt_not_expired"), arguments: [] });
115
- }
116
- function bidReceiptNotItm(tx, published_at) {
117
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
118
- return tx.moveCall({ target: "".concat(published_at, "::error::bid_receipt_not_itm"), arguments: [] });
119
- }
120
- function bidTokenMismatched(tx, published_at) {
121
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
122
- return tx.moveCall({ target: "".concat(published_at, "::error::bid_token_mismatched"), arguments: [] });
123
- }
124
- function collateralTokenTypeMismatched(tx, published_at) {
125
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
126
- return tx.moveCall({ target: "".concat(published_at, "::error::collateral_token_type_mismatched"), arguments: [] });
127
- }
128
- function deactivatingSharesAlreadyExisted(tx, published_at) {
129
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
130
- return tx.moveCall({ target: "".concat(published_at, "::error::deactivating_shares_already_existed"), arguments: [] });
131
- }
132
- function depositAmountInsufficient(tx, published_at) {
133
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
134
- return tx.moveCall({ target: "".concat(published_at, "::error::deposit_amount_insufficient"), arguments: [] });
135
- }
136
- function depositTokenMismatched(tx, published_at) {
137
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
138
- return tx.moveCall({ target: "".concat(published_at, "::error::deposit_token_mismatched"), arguments: [] });
139
- }
140
- function exceedMaxLeverage(tx, published_at) {
141
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
142
- return tx.moveCall({ target: "".concat(published_at, "::error::exceed_max_leverage"), arguments: [] });
143
- }
144
- function exceedMaxOpenInterest(tx, published_at) {
145
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
146
- return tx.moveCall({ target: "".concat(published_at, "::error::exceed_max_open_interest"), arguments: [] });
147
- }
148
- function frictionTooLarge(tx, published_at) {
149
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
150
- return tx.moveCall({ target: "".concat(published_at, "::error::friction_too_large"), arguments: [] });
151
- }
152
- function insufficientAmountForMintFee(tx, published_at) {
153
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
154
- return tx.moveCall({ target: "".concat(published_at, "::error::insufficient_amount_for_mint_fee"), arguments: [] });
155
- }
156
- function invalidBidReceiptsInput(tx, published_at) {
157
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
158
- return tx.moveCall({ target: "".concat(published_at, "::error::invalid_bid_receipts_input"), arguments: [] });
159
- }
160
- function invalidBoostBpArrayLength(tx, published_at) {
161
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
162
- return tx.moveCall({ target: "".concat(published_at, "::error::invalid_boost_bp_array_length"), arguments: [] });
163
- }
164
- function invalidOrderSide(tx, published_at) {
165
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
166
- return tx.moveCall({ target: "".concat(published_at, "::error::invalid_order_side"), arguments: [] });
167
- }
168
- function invalidOrderSize(tx, published_at) {
169
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
170
- return tx.moveCall({ target: "".concat(published_at, "::error::invalid_order_size"), arguments: [] });
171
- }
172
- function invalidTokenType(tx, published_at) {
173
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
174
- return tx.moveCall({ target: "".concat(published_at, "::error::invalid_token_type"), arguments: [] });
175
- }
176
- function invalidTradingFeeConfig(tx, published_at) {
177
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
178
- return tx.moveCall({ target: "".concat(published_at, "::error::invalid_trading_fee_config"), arguments: [] });
179
- }
180
- function invalidVersion(tx, published_at) {
181
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
182
- return tx.moveCall({ target: "".concat(published_at, "::error::invalid_version"), arguments: [] });
183
- }
184
- function linkedOrderIdNotExisted(tx, published_at) {
185
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
186
- return tx.moveCall({ target: "".concat(published_at, "::error::linked_order_id_not_existed"), arguments: [] });
187
- }
188
- function liquidityNotEnough(tx, published_at) {
189
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
190
- return tx.moveCall({ target: "".concat(published_at, "::error::liquidity_not_enough"), arguments: [] });
191
- }
192
- function liquidityTokenNotExisted(tx, published_at) {
193
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
194
- return tx.moveCall({ target: "".concat(published_at, "::error::liquidity_token_not_existed"), arguments: [] });
195
- }
196
- function lpPoolReserveNotEnough(tx, published_at) {
197
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
198
- return tx.moveCall({ target: "".concat(published_at, "::error::lp_pool_reserve_not_enough"), arguments: [] });
199
- }
200
- function lpTokenTypeMismatched(tx, published_at) {
201
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
202
- return tx.moveCall({ target: "".concat(published_at, "::error::lp_token_type_mismatched"), arguments: [] });
203
- }
204
- function marketsInactive(tx, published_at) {
205
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
206
- return tx.moveCall({ target: "".concat(published_at, "::error::markets_inactive"), arguments: [] });
207
- }
208
- function notOptionCollateralOrder(tx, published_at) {
209
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
210
- return tx.moveCall({ target: "".concat(published_at, "::error::not_option_collateral_order"), arguments: [] });
211
- }
212
- function notOptionCollateralPosition(tx, published_at) {
213
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
214
- return tx.moveCall({ target: "".concat(published_at, "::error::not_option_collateral_position"), arguments: [] });
215
- }
216
- function notReduceOnlyExecution(tx, published_at) {
217
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
218
- return tx.moveCall({ target: "".concat(published_at, "::error::not_reduce_only_execution"), arguments: [] });
219
- }
220
- function notTokenCollateralPosition(tx, published_at) {
221
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
222
- return tx.moveCall({ target: "".concat(published_at, "::error::not_token_collateral_position"), arguments: [] });
223
- }
224
- function optionCollateralNotEnough(tx, published_at) {
225
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
226
- return tx.moveCall({ target: "".concat(published_at, "::error::option_collateral_not_enough"), arguments: [] });
227
- }
228
- function optionCollateralOrderNotFilled(tx, published_at) {
229
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
230
- return tx.moveCall({ target: "".concat(published_at, "::error::option_collateral_order_not_filled"), arguments: [] });
231
- }
232
- function oracleMismatched(tx, published_at) {
233
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
234
- return tx.moveCall({ target: "".concat(published_at, "::error::oracle_mismatched"), arguments: [] });
235
- }
236
- function orderNotFilledImmediately(tx, published_at) {
237
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
238
- return tx.moveCall({ target: "".concat(published_at, "::error::order_not_filled_immediately"), arguments: [] });
239
- }
240
- function orderNotFound(tx, published_at) {
241
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
242
- return tx.moveCall({ target: "".concat(published_at, "::error::order_not_found"), arguments: [] });
243
- }
244
- function orderOrPositionSizeNotZero(tx, published_at) {
245
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
246
- return tx.moveCall({ target: "".concat(published_at, "::error::order_or_position_size_not_zero"), arguments: [] });
247
- }
248
- function perpPositionLosses(tx, published_at) {
249
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
250
- return tx.moveCall({ target: "".concat(published_at, "::error::perp_position_losses"), arguments: [] });
251
- }
252
- function poolAlreadyActive(tx, published_at) {
253
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
254
- return tx.moveCall({ target: "".concat(published_at, "::error::pool_already_active"), arguments: [] });
255
- }
256
- function poolInactive(tx, published_at) {
257
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
258
- return tx.moveCall({ target: "".concat(published_at, "::error::pool_inactive"), arguments: [] });
259
- }
260
- function portfolioIndexMismatched(tx, published_at) {
261
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
262
- return tx.moveCall({ target: "".concat(published_at, "::error::portfolio_index_mismatched"), arguments: [] });
263
- }
264
- function positionIdNeededWithReduceOnlyOrder(tx, published_at) {
265
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
266
- return tx.moveCall({ target: "".concat(published_at, "::error::position_id_needed_with_reduce_only_order"), arguments: [] });
267
- }
268
- function processShouldRemoveOrder(tx, published_at) {
269
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
270
- return tx.moveCall({ target: "".concat(published_at, "::error::process_should_remove_order"), arguments: [] });
271
- }
272
- function processShouldRemovePosition(tx, published_at) {
273
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
274
- return tx.moveCall({ target: "".concat(published_at, "::error::process_should_remove_position"), arguments: [] });
275
- }
276
- function processShouldRepayLiquidity(tx, published_at) {
277
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
278
- return tx.moveCall({ target: "".concat(published_at, "::error::process_should_repay_liquidity"), arguments: [] });
279
- }
280
- function processShouldSwap(tx, published_at) {
281
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
282
- return tx.moveCall({ target: "".concat(published_at, "::error::process_should_swap"), arguments: [] });
283
- }
284
- function reachMaxCapacity(tx, published_at) {
285
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
286
- return tx.moveCall({ target: "".concat(published_at, "::error::reach_max_capacity"), arguments: [] });
287
- }
288
- function reachMaxSingleOrderReserveUsage(tx, published_at) {
289
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
290
- return tx.moveCall({ target: "".concat(published_at, "::error::reach_max_single_order_reserve_usage"), arguments: [] });
291
- }
292
- function reachSlippageThreshold(tx, published_at) {
293
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
294
- return tx.moveCall({ target: "".concat(published_at, "::error::reach_slippage_threshold"), arguments: [] });
295
- }
296
- function remainingCollateralNotEnough(tx, published_at) {
297
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
298
- return tx.moveCall({ target: "".concat(published_at, "::error::remaining_collateral_not_enough"), arguments: [] });
299
- }
300
- function tokenCollateralNotEnough(tx, published_at) {
301
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
302
- return tx.moveCall({ target: "".concat(published_at, "::error::token_collateral_not_enough"), arguments: [] });
303
- }
304
- function tokenPoolAlreadyActive(tx, published_at) {
305
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
306
- return tx.moveCall({ target: "".concat(published_at, "::error::token_pool_already_active"), arguments: [] });
307
- }
308
- function tokenPoolInactive(tx, published_at) {
309
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
310
- return tx.moveCall({ target: "".concat(published_at, "::error::token_pool_inactive"), arguments: [] });
311
- }
312
- function tooManyLinkedOrders(tx, published_at) {
313
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
314
- return tx.moveCall({ target: "".concat(published_at, "::error::too_many_linked_orders"), arguments: [] });
315
- }
316
- function tradingSymbolExisted(tx, published_at) {
317
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
318
- return tx.moveCall({ target: "".concat(published_at, "::error::trading_symbol_existed"), arguments: [] });
319
- }
320
- function tradingSymbolInactive(tx, published_at) {
321
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
322
- return tx.moveCall({ target: "".concat(published_at, "::error::trading_symbol_inactive"), arguments: [] });
323
- }
324
- function tradingSymbolNotExisted(tx, published_at) {
325
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
326
- return tx.moveCall({ target: "".concat(published_at, "::error::trading_symbol_not_existed"), arguments: [] });
327
- }
328
- function tvlNotYetUpdated(tx, published_at) {
329
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
330
- return tx.moveCall({ target: "".concat(published_at, "::error::tvl_not_yet_updated"), arguments: [] });
331
- }
332
- function unauthorized(tx, published_at) {
333
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
334
- return tx.moveCall({ target: "".concat(published_at, "::error::unauthorized"), arguments: [] });
335
- }
336
- function unsupportedOrderTypeTag(tx, published_at) {
337
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
338
- return tx.moveCall({ target: "".concat(published_at, "::error::unsupported_order_type_tag"), arguments: [] });
339
- }
340
- function unsupportedProcessStatusCode(tx, published_at) {
341
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
342
- return tx.moveCall({ target: "".concat(published_at, "::error::unsupported_process_status_code"), arguments: [] });
343
- }
344
- function userDeactivatingSharesNotExisted(tx, published_at) {
345
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
346
- return tx.moveCall({ target: "".concat(published_at, "::error::user_deactivating_shares_not_existed"), arguments: [] });
347
- }
348
- function userMismatched(tx, published_at) {
349
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
350
- return tx.moveCall({ target: "".concat(published_at, "::error::user_mismatched"), arguments: [] });
351
- }
352
- function wrongCollateralType(tx, published_at) {
353
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
354
- return tx.moveCall({ target: "".concat(published_at, "::error::wrong_collateral_type"), arguments: [] });
355
- }
356
- function zeroPrice(tx, published_at) {
357
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
358
- return tx.moveCall({ target: "".concat(published_at, "::error::zero_price"), arguments: [] });
359
- }
360
- function zeroTotalSupply(tx, published_at) {
361
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
362
- return tx.moveCall({ target: "".concat(published_at, "::error::zero_total_supply"), arguments: [] });
363
- }
@@ -1,17 +0,0 @@
1
- import { Transaction, TransactionArgument, TransactionObjectInput } from "@mysten/sui/transactions";
2
- export interface CreateUnsettledBidReceiptArgs {
3
- receipt: Array<TransactionObjectInput> | TransactionArgument;
4
- positionId: bigint | TransactionArgument;
5
- user: string | TransactionArgument;
6
- tokenTypes: Array<TransactionObjectInput> | TransactionArgument;
7
- unrealizedPnlSign: boolean | TransactionArgument;
8
- unrealizedPnl: bigint | TransactionArgument;
9
- unrealizedTradingFee: bigint | TransactionArgument;
10
- unrealizedBorrowFee: bigint | TransactionArgument;
11
- unrealizedFundingFeeSign: boolean | TransactionArgument;
12
- unrealizedFundingFee: bigint | TransactionArgument;
13
- unrealizedLiquidatorFee: bigint | TransactionArgument;
14
- }
15
- export declare function createUnsettledBidReceipt(tx: Transaction, args: CreateUnsettledBidReceiptArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
16
- export declare function destructUnsettledBidReceipt(tx: Transaction, unsettledBidReceipt: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
17
- export declare function getBidReceipts(tx: Transaction, unsettledBidReceipt: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createUnsettledBidReceipt = createUnsettledBidReceipt;
4
- exports.destructUnsettledBidReceipt = destructUnsettledBidReceipt;
5
- exports.getBidReceipts = getBidReceipts;
6
- var __1 = require("..");
7
- var structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
8
- var structs_2 = require("../../_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs");
9
- var util_1 = require("../../_framework/util");
10
- function createUnsettledBidReceipt(tx, args, published_at) {
11
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
12
- return tx.moveCall({
13
- target: "".concat(published_at, "::escrow::create_unsettled_bid_receipt"),
14
- arguments: [
15
- (0, util_1.vector)(tx, "".concat(structs_2.TypusBidReceipt.$typeName), args.receipt),
16
- (0, util_1.pure)(tx, args.positionId, "u64"),
17
- (0, util_1.pure)(tx, args.user, "address"),
18
- (0, util_1.vector)(tx, "".concat(structs_1.TypeName.$typeName), args.tokenTypes),
19
- (0, util_1.pure)(tx, args.unrealizedPnlSign, "bool"),
20
- (0, util_1.pure)(tx, args.unrealizedPnl, "u64"),
21
- (0, util_1.pure)(tx, args.unrealizedTradingFee, "u64"),
22
- (0, util_1.pure)(tx, args.unrealizedBorrowFee, "u64"),
23
- (0, util_1.pure)(tx, args.unrealizedFundingFeeSign, "bool"),
24
- (0, util_1.pure)(tx, args.unrealizedFundingFee, "u64"),
25
- (0, util_1.pure)(tx, args.unrealizedLiquidatorFee, "u64"),
26
- ],
27
- });
28
- }
29
- function destructUnsettledBidReceipt(tx, unsettledBidReceipt, published_at) {
30
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
31
- return tx.moveCall({ target: "".concat(published_at, "::escrow::destruct_unsettled_bid_receipt"), arguments: [(0, util_1.obj)(tx, unsettledBidReceipt)] });
32
- }
33
- function getBidReceipts(tx, unsettledBidReceipt, published_at) {
34
- if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
35
- return tx.moveCall({ target: "".concat(published_at, "::escrow::get_bid_receipts"), arguments: [(0, util_1.obj)(tx, unsettledBidReceipt)] });
36
- }
@@ -1,160 +0,0 @@
1
- import * as reified from "../../_framework/reified";
2
- import { TypeName } from "../../_dependencies/source/0x1/type-name/structs";
3
- import { TypusBidReceipt } from "../../_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs";
4
- import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from "../../_framework/reified";
5
- import { FieldsWithTypes } from "../../_framework/util";
6
- import { Vector } from "../../_framework/vector";
7
- import { PKG_V1 } from "../index";
8
- import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
9
- export declare function isUnsettledBidReceipt(type: string): boolean;
10
- export interface UnsettledBidReceiptFields {
11
- receipt: ToField<Vector<TypusBidReceipt>>;
12
- positionId: ToField<"u64">;
13
- user: ToField<"address">;
14
- tokenTypes: ToField<Vector<TypeName>>;
15
- unrealizedPnlSign: ToField<"bool">;
16
- unrealizedPnl: ToField<"u64">;
17
- unrealizedTradingFee: ToField<"u64">;
18
- unrealizedBorrowFee: ToField<"u64">;
19
- unrealizedFundingFeeSign: ToField<"bool">;
20
- unrealizedFundingFee: ToField<"u64">;
21
- unrealizedLiquidatorFee: ToField<"u64">;
22
- }
23
- export type UnsettledBidReceiptReified = Reified<UnsettledBidReceipt, UnsettledBidReceiptFields>;
24
- export declare class UnsettledBidReceipt implements StructClass {
25
- __StructClass: true;
26
- static readonly $typeName: string;
27
- static readonly $numTypeParams = 0;
28
- static readonly $isPhantom: readonly [];
29
- readonly $typeName: string;
30
- readonly $fullTypeName: `${typeof PKG_V1}::escrow::UnsettledBidReceipt`;
31
- readonly $typeArgs: [];
32
- readonly $isPhantom: readonly [];
33
- readonly receipt: ToField<Vector<TypusBidReceipt>>;
34
- readonly positionId: ToField<"u64">;
35
- readonly user: ToField<"address">;
36
- readonly tokenTypes: ToField<Vector<TypeName>>;
37
- readonly unrealizedPnlSign: ToField<"bool">;
38
- readonly unrealizedPnl: ToField<"u64">;
39
- readonly unrealizedTradingFee: ToField<"u64">;
40
- readonly unrealizedBorrowFee: ToField<"u64">;
41
- readonly unrealizedFundingFeeSign: ToField<"bool">;
42
- readonly unrealizedFundingFee: ToField<"u64">;
43
- readonly unrealizedLiquidatorFee: ToField<"u64">;
44
- private constructor();
45
- static reified(): UnsettledBidReceiptReified;
46
- static get r(): reified.StructClassReified<UnsettledBidReceipt, UnsettledBidReceiptFields>;
47
- static phantom(): PhantomReified<ToTypeStr<UnsettledBidReceipt>>;
48
- static get p(): reified.PhantomReified<"0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5::escrow::UnsettledBidReceipt" | "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9::escrow::UnsettledBidReceipt">;
49
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
50
- receipt: import("@mysten/sui/bcs").BcsType<{
51
- id: {
52
- id: {
53
- bytes: string;
54
- };
55
- };
56
- vid: {
57
- bytes: string;
58
- };
59
- index: string;
60
- metadata: {
61
- bytes: number[];
62
- };
63
- u64_padding: string[];
64
- }[], Iterable<{
65
- id: {
66
- id: {
67
- bytes: string;
68
- };
69
- };
70
- vid: {
71
- bytes: string;
72
- };
73
- index: string | number | bigint;
74
- metadata: {
75
- bytes: Iterable<number> & {
76
- length: number;
77
- };
78
- };
79
- u64_padding: Iterable<string | number | bigint> & {
80
- length: number;
81
- };
82
- }> & {
83
- length: number;
84
- }, string>;
85
- position_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
86
- user: import("@mysten/sui/bcs").BcsType<string, string, string>;
87
- token_types: import("@mysten/sui/bcs").BcsType<{
88
- name: {
89
- bytes: number[];
90
- };
91
- }[], Iterable<{
92
- name: {
93
- bytes: Iterable<number> & {
94
- length: number;
95
- };
96
- };
97
- }> & {
98
- length: number;
99
- }, string>;
100
- unrealized_pnl_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
101
- unrealized_pnl: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
102
- unrealized_trading_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
103
- unrealized_borrow_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
104
- unrealized_funding_fee_sign: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
105
- unrealized_funding_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
106
- unrealized_liquidator_fee: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
107
- }, string>;
108
- static fromFields(fields: Record<string, any>): UnsettledBidReceipt;
109
- static fromFieldsWithTypes(item: FieldsWithTypes): UnsettledBidReceipt;
110
- static fromBcs(data: Uint8Array): UnsettledBidReceipt;
111
- toJSONField(): {
112
- receipt: {
113
- id: string;
114
- vid: string;
115
- index: string;
116
- metadata: string;
117
- u64Padding: string[];
118
- }[];
119
- positionId: string;
120
- user: string;
121
- tokenTypes: {
122
- name: string;
123
- }[];
124
- unrealizedPnlSign: boolean;
125
- unrealizedPnl: string;
126
- unrealizedTradingFee: string;
127
- unrealizedBorrowFee: string;
128
- unrealizedFundingFeeSign: boolean;
129
- unrealizedFundingFee: string;
130
- unrealizedLiquidatorFee: string;
131
- };
132
- toJSON(): {
133
- receipt: {
134
- id: string;
135
- vid: string;
136
- index: string;
137
- metadata: string;
138
- u64Padding: string[];
139
- }[];
140
- positionId: string;
141
- user: string;
142
- tokenTypes: {
143
- name: string;
144
- }[];
145
- unrealizedPnlSign: boolean;
146
- unrealizedPnl: string;
147
- unrealizedTradingFee: string;
148
- unrealizedBorrowFee: string;
149
- unrealizedFundingFeeSign: boolean;
150
- unrealizedFundingFee: string;
151
- unrealizedLiquidatorFee: string;
152
- $typeName: string;
153
- $typeArgs: [];
154
- };
155
- static fromJSONField(field: any): UnsettledBidReceipt;
156
- static fromJSON(json: Record<string, any>): UnsettledBidReceipt;
157
- static fromSuiParsedData(content: SuiParsedData): UnsettledBidReceipt;
158
- static fromSuiObjectData(data: SuiObjectData): UnsettledBidReceipt;
159
- static fetch(client: SuiClient, id: string): Promise<UnsettledBidReceipt>;
160
- }