@typus/typus-perp-sdk 1.1.32 → 1.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/dist/src/api/sentio.d.ts +5 -5
  2. package/dist/src/api/sentio.js +690 -541
  3. package/dist/src/client.d.ts +28 -0
  4. package/dist/src/client.js +171 -0
  5. package/dist/src/fetch.d.ts +540 -36
  6. package/dist/src/fetch.js +545 -661
  7. package/dist/src/generated/typus_perp/admin.d.ts +274 -0
  8. package/dist/src/generated/typus_perp/admin.js +321 -0
  9. package/dist/src/generated/typus_perp/competition.d.ts +60 -0
  10. package/dist/src/generated/typus_perp/competition.js +104 -0
  11. package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +17 -0
  12. package/dist/src/generated/typus_perp/deps/std/type_name.js +25 -0
  13. package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +12 -0
  14. package/dist/src/generated/typus_perp/deps/sui/balance.js +20 -0
  15. package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
  16. package/dist/src/generated/typus_perp/deps/sui/object.js +16 -0
  17. package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +19 -0
  18. package/dist/src/generated/typus_perp/deps/sui/object_table.js +59 -0
  19. package/dist/src/generated/typus_perp/deps/sui/table.d.ts +31 -0
  20. package/dist/src/generated/typus_perp/deps/sui/table.js +71 -0
  21. package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +18 -0
  22. package/dist/src/generated/typus_perp/deps/sui/vec_set.js +25 -0
  23. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +30 -0
  24. package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +67 -0
  25. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +32 -0
  26. package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +71 -0
  27. package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +15 -0
  28. package/dist/src/{_framework/init-loader.js → generated/typus_perp/deps/typus_framework/vault.js} +18 -10
  29. package/dist/src/generated/typus_perp/error.d.ts +443 -0
  30. package/dist/src/generated/typus_perp/error.js +788 -0
  31. package/dist/src/generated/typus_perp/escrow.d.ts +109 -0
  32. package/dist/src/generated/typus_perp/escrow.js +139 -0
  33. package/dist/src/generated/typus_perp/lp_pool.d.ts +1853 -0
  34. package/dist/src/generated/typus_perp/lp_pool.js +1483 -0
  35. package/dist/src/generated/typus_perp/math.d.ts +95 -0
  36. package/dist/src/generated/typus_perp/math.js +97 -0
  37. package/dist/src/generated/typus_perp/position.d.ts +1251 -0
  38. package/dist/src/generated/typus_perp/position.js +1393 -0
  39. package/dist/src/generated/typus_perp/profit_vault.d.ts +272 -0
  40. package/dist/src/generated/typus_perp/profit_vault.js +321 -0
  41. package/dist/src/generated/typus_perp/symbol.d.ts +47 -0
  42. package/dist/src/generated/typus_perp/symbol.js +97 -0
  43. package/dist/src/generated/typus_perp/trading.d.ts +2134 -0
  44. package/dist/src/generated/typus_perp/trading.js +2050 -0
  45. package/dist/src/generated/typus_perp/treasury_caps.d.ts +44 -0
  46. package/dist/src/generated/typus_perp/treasury_caps.js +92 -0
  47. package/dist/src/generated/typus_perp/user_account.d.ts +146 -0
  48. package/dist/src/generated/typus_perp/user_account.js +221 -0
  49. package/dist/src/generated/typus_stake_pool/admin.d.ts +218 -0
  50. package/dist/src/generated/typus_stake_pool/admin.js +247 -0
  51. package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +17 -0
  52. package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +25 -0
  53. package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
  54. package/dist/src/generated/typus_stake_pool/deps/sui/object.js +16 -0
  55. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +30 -0
  56. package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +37 -0
  57. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +18 -0
  58. package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +25 -0
  59. package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +988 -0
  60. package/dist/src/generated/typus_stake_pool/stake_pool.js +937 -0
  61. package/dist/src/generated/utils/index.d.ts +11 -0
  62. package/dist/src/generated/utils/index.js +138 -0
  63. package/dist/src/grpc/graphql.d.ts +26 -0
  64. package/dist/src/grpc/graphql.js +126 -0
  65. package/dist/src/grpc/grpc.d.ts +1 -0
  66. package/dist/src/grpc/grpc.js +38 -0
  67. package/dist/src/grpc/ledgerService.js +64 -0
  68. package/dist/src/grpc/liveDataService.d.ts +0 -0
  69. package/dist/src/grpc/liveDataService.js +49 -0
  70. package/dist/src/index.d.ts +2 -8
  71. package/dist/src/index.js +30 -56
  72. package/dist/src/user/history.d.ts +1 -1
  73. package/dist/src/user/history.js +649 -679
  74. package/dist/src/user/order.d.ts +21 -11
  75. package/dist/src/user/order.js +204 -301
  76. package/dist/src/user/orderWithBidReceipt.d.ts +17 -6
  77. package/dist/src/user/orderWithBidReceipt.js +164 -224
  78. package/dist/src/user/tlp.d.ts +25 -25
  79. package/dist/src/user/tlp.js +317 -468
  80. package/package.json +11 -2
  81. package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +0 -88
  82. package/dist/src/_dependencies/source/0x1/ascii/structs.js +0 -398
  83. package/dist/src/_dependencies/source/0x1/index.d.ts +0 -3
  84. package/dist/src/_dependencies/source/0x1/index.js +0 -6
  85. package/dist/src/_dependencies/source/0x1/option/structs.d.ts +0 -50
  86. package/dist/src/_dependencies/source/0x1/option/structs.js +0 -271
  87. package/dist/src/_dependencies/source/0x1/string/structs.d.ts +0 -48
  88. package/dist/src/_dependencies/source/0x1/string/structs.js +0 -256
  89. package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +0 -49
  90. package/dist/src/_dependencies/source/0x1/type-name/structs.js +0 -223
  91. package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +0 -54
  92. package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
  93. package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -84
  94. package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
  95. package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -406
  96. package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -1247
  97. package/dist/src/_dependencies/source/0x2/index.d.ts +0 -3
  98. package/dist/src/_dependencies/source/0x2/index.js +0 -6
  99. package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +0 -132
  100. package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -438
  101. package/dist/src/_dependencies/source/0x2/object/structs.d.ts +0 -86
  102. package/dist/src/_dependencies/source/0x2/object/structs.js +0 -364
  103. package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +0 -54
  104. package/dist/src/_dependencies/source/0x2/object-table/structs.js +0 -248
  105. package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +0 -44
  106. package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
  107. package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -54
  108. package/dist/src/_dependencies/source/0x2/table/structs.js +0 -248
  109. package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +0 -59
  110. package/dist/src/_dependencies/source/0x2/table-vec/structs.js +0 -274
  111. package/dist/src/_dependencies/source/0x2/token/structs.d.ts +0 -421
  112. package/dist/src/_dependencies/source/0x2/token/structs.js +0 -1095
  113. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +0 -348
  114. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -1091
  115. package/dist/src/_dependencies/source/0x2/url/structs.d.ts +0 -49
  116. package/dist/src/_dependencies/source/0x2/url/structs.js +0 -223
  117. package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +0 -106
  118. package/dist/src/_dependencies/source/0x2/vec-map/structs.js +0 -446
  119. package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +0 -49
  120. package/dist/src/_dependencies/source/0x2/vec-set/structs.js +0 -270
  121. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +0 -422
  122. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +0 -1084
  123. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +0 -130
  124. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +0 -456
  125. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +0 -208
  126. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +0 -653
  127. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +0 -362
  128. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +0 -899
  129. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +0 -8
  130. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +0 -11
  131. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +0 -2
  132. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +0 -102
  133. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.d.ts +0 -202
  134. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/keyed-big-vector/structs.js +0 -632
  135. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +0 -600
  136. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +0 -1459
  137. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.d.ts +0 -136
  138. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-object-table/structs.js +0 -438
  139. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +0 -127
  140. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +0 -430
  141. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +0 -957
  142. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +0 -2261
  143. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +0 -244
  144. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +0 -733
  145. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +0 -294
  146. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +0 -892
  147. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +0 -73
  148. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +0 -263
  149. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +0 -294
  150. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +0 -591
  151. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +0 -64
  152. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +0 -258
  153. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +0 -756
  154. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +0 -1721
  155. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +0 -44
  156. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +0 -222
  157. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +0 -3
  158. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +0 -6
  159. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +0 -2
  160. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +0 -89
  161. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +0 -135
  162. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +0 -444
  163. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.d.ts +0 -2106
  164. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/vault/structs.js +0 -4952
  165. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +0 -390
  166. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +0 -844
  167. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +0 -6
  168. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +0 -9
  169. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +0 -2
  170. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +0 -69
  171. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +0 -89
  172. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +0 -376
  173. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +0 -386
  174. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +0 -881
  175. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +0 -59
  176. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +0 -274
  177. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +0 -974
  178. package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +0 -2387
  179. package/dist/src/_framework/init-loader.d.ts +0 -2
  180. package/dist/src/_framework/loader.d.ts +0 -17
  181. package/dist/src/_framework/loader.js +0 -108
  182. package/dist/src/_framework/reified.d.ts +0 -108
  183. package/dist/src/_framework/reified.js +0 -237
  184. package/dist/src/_framework/util.d.ts +0 -35
  185. package/dist/src/_framework/util.js +0 -396
  186. package/dist/src/_framework/vector.d.ts +0 -42
  187. package/dist/src/_framework/vector.js +0 -112
  188. package/dist/src/pyth.js +0 -1
  189. package/dist/src/typus_perp/admin/functions.d.ts +0 -59
  190. package/dist/src/typus_perp/admin/functions.js +0 -122
  191. package/dist/src/typus_perp/admin/structs.d.ts +0 -467
  192. package/dist/src/typus_perp/admin/structs.js +0 -1065
  193. package/dist/src/typus_perp/competition/functions.d.ts +0 -24
  194. package/dist/src/typus_perp/competition/functions.js +0 -38
  195. package/dist/src/typus_perp/competition/structs.d.ts +0 -80
  196. package/dist/src/typus_perp/competition/structs.js +0 -288
  197. package/dist/src/typus_perp/error/functions.d.ts +0 -73
  198. package/dist/src/typus_perp/error/functions.js +0 -363
  199. package/dist/src/typus_perp/escrow/functions.d.ts +0 -17
  200. package/dist/src/typus_perp/escrow/functions.js +0 -36
  201. package/dist/src/typus_perp/escrow/structs.d.ts +0 -160
  202. package/dist/src/typus_perp/escrow/structs.js +0 -324
  203. package/dist/src/typus_perp/index.d.ts +0 -1
  204. package/dist/src/typus_perp/index.js +0 -7
  205. package/dist/src/typus_perp/init.d.ts +0 -2
  206. package/dist/src/typus_perp/init.js +0 -118
  207. package/dist/src/typus_perp/lending/functions.d.ts +0 -15
  208. package/dist/src/typus_perp/lending/functions.js +0 -22
  209. package/dist/src/typus_perp/lp-pool/functions.d.ts +0 -460
  210. package/dist/src/typus_perp/lp-pool/functions.js +0 -732
  211. package/dist/src/typus_perp/lp-pool/structs.d.ts +0 -3705
  212. package/dist/src/typus_perp/lp-pool/structs.js +0 -6789
  213. package/dist/src/typus_perp/math/functions.d.ts +0 -29
  214. package/dist/src/typus_perp/math/functions.js +0 -61
  215. package/dist/src/typus_perp/position/functions.d.ts +0 -379
  216. package/dist/src/typus_perp/position/functions.js +0 -713
  217. package/dist/src/typus_perp/position/structs.d.ts +0 -905
  218. package/dist/src/typus_perp/position/structs.js +0 -1450
  219. package/dist/src/typus_perp/symbol/functions.d.ts +0 -9
  220. package/dist/src/typus_perp/symbol/functions.js +0 -24
  221. package/dist/src/typus_perp/symbol/structs.d.ts +0 -70
  222. package/dist/src/typus_perp/symbol/structs.js +0 -235
  223. package/dist/src/typus_perp/tlp/functions.d.ts +0 -19
  224. package/dist/src/typus_perp/tlp/functions.js +0 -40
  225. package/dist/src/typus_perp/tlp/structs.d.ts +0 -89
  226. package/dist/src/typus_perp/tlp/structs.js +0 -365
  227. package/dist/src/typus_perp/token-interface/functions.d.ts +0 -11
  228. package/dist/src/typus_perp/token-interface/functions.js +0 -22
  229. package/dist/src/typus_perp/trading/functions.d.ts +0 -812
  230. package/dist/src/typus_perp/trading/functions.js +0 -1218
  231. package/dist/src/typus_perp/trading/structs.d.ts +0 -3060
  232. package/dist/src/typus_perp/trading/structs.js +0 -5813
  233. package/dist/src/typus_perp/treasury-caps/functions.d.ts +0 -9
  234. package/dist/src/typus_perp/treasury-caps/functions.js +0 -36
  235. package/dist/src/typus_perp/treasury-caps/structs.d.ts +0 -49
  236. package/dist/src/typus_perp/treasury-caps/structs.js +0 -223
  237. package/dist/src/typus_perp/user-account/functions.d.ts +0 -36
  238. package/dist/src/typus_perp/user-account/functions.js +0 -70
  239. package/dist/src/typus_perp/user-account/structs.d.ts +0 -148
  240. package/dist/src/typus_perp/user-account/structs.js +0 -448
  241. package/dist/src/typus_stake_pool/admin/functions.d.ts +0 -49
  242. package/dist/src/typus_stake_pool/admin/functions.js +0 -105
  243. package/dist/src/typus_stake_pool/admin/structs.d.ts +0 -365
  244. package/dist/src/typus_stake_pool/admin/structs.js +0 -789
  245. package/dist/src/typus_stake_pool/index.d.ts +0 -1
  246. package/dist/src/typus_stake_pool/index.js +0 -7
  247. package/dist/src/typus_stake_pool/init.d.ts +0 -2
  248. package/dist/src/typus_stake_pool/init.js +0 -69
  249. package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +0 -229
  250. package/dist/src/typus_stake_pool/stake-pool/functions.js +0 -380
  251. package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +0 -2199
  252. package/dist/src/typus_stake_pool/stake-pool/structs.js +0 -4653
  253. /package/dist/src/{pyth.d.ts → grpc/ledgerService.d.ts} +0 -0
@@ -1,44 +0,0 @@
1
- import { PhantomReified, Reified, StructClass, ToField, ToTypeStr } from "../../../../_framework/reified";
2
- import { FieldsWithTypes } from "../../../../_framework/util";
3
- import { PKG_V1 } from "../index";
4
- import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
5
- export declare function isI64(type: string): boolean;
6
- export interface I64Fields {
7
- bits: ToField<"u64">;
8
- }
9
- export type I64Reified = Reified<I64, I64Fields>;
10
- export declare class I64 implements StructClass {
11
- __StructClass: true;
12
- static readonly $typeName = "0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274::i64::I64";
13
- static readonly $numTypeParams = 0;
14
- static readonly $isPhantom: readonly [];
15
- readonly $typeName = "0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274::i64::I64";
16
- readonly $fullTypeName: `${typeof PKG_V1}::i64::I64`;
17
- readonly $typeArgs: [];
18
- readonly $isPhantom: readonly [];
19
- readonly bits: ToField<"u64">;
20
- private constructor();
21
- static reified(): I64Reified;
22
- static get r(): import("../../../../_framework/reified").StructClassReified<I64, I64Fields>;
23
- static phantom(): PhantomReified<ToTypeStr<I64>>;
24
- static get p(): PhantomReified<"0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274::i64::I64">;
25
- static get bcs(): import("@mysten/sui/bcs").BcsStruct<{
26
- bits: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
27
- }, string>;
28
- static fromFields(fields: Record<string, any>): I64;
29
- static fromFieldsWithTypes(item: FieldsWithTypes): I64;
30
- static fromBcs(data: Uint8Array): I64;
31
- toJSONField(): {
32
- bits: string;
33
- };
34
- toJSON(): {
35
- bits: string;
36
- $typeName: string;
37
- $typeArgs: [];
38
- };
39
- static fromJSONField(field: any): I64;
40
- static fromJSON(json: Record<string, any>): I64;
41
- static fromSuiParsedData(content: SuiParsedData): I64;
42
- static fromSuiObjectData(data: SuiObjectData): I64;
43
- static fetch(client: SuiClient, id: string): Promise<I64>;
44
- }
@@ -1,222 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
- return new (P || (P = Promise))(function (resolve, reject) {
16
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
- step((generator = generator.apply(thisArg, _arguments || [])).next());
20
- });
21
- };
22
- var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
24
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
- function verb(n) { return function (v) { return step([n, v]); }; }
26
- function step(op) {
27
- if (f) throw new TypeError("Generator is already executing.");
28
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
- if (y = 0, t) op = [op[0] & 2, t.value];
31
- switch (op[0]) {
32
- case 0: case 1: t = op; break;
33
- case 4: _.label++; return { value: op[1], done: false };
34
- case 5: _.label++; y = op[1]; op = [0]; continue;
35
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
- default:
37
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
- if (t[2]) _.ops.pop();
42
- _.trys.pop(); continue;
43
- }
44
- op = body.call(thisArg, _);
45
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
- }
48
- };
49
- var __read = (this && this.__read) || function (o, n) {
50
- var m = typeof Symbol === "function" && o[Symbol.iterator];
51
- if (!m) return o;
52
- var i = m.call(o), r, ar = [], e;
53
- try {
54
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
55
- }
56
- catch (error) { e = { error: error }; }
57
- finally {
58
- try {
59
- if (r && !r.done && (m = i["return"])) m.call(i);
60
- }
61
- finally { if (e) throw e.error; }
62
- }
63
- return ar;
64
- };
65
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
66
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
67
- if (ar || !(i in from)) {
68
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
69
- ar[i] = from[i];
70
- }
71
- }
72
- return to.concat(ar || Array.prototype.slice.call(from));
73
- };
74
- Object.defineProperty(exports, "__esModule", { value: true });
75
- exports.I64 = void 0;
76
- exports.isI64 = isI64;
77
- var reified_1 = require("../../../../_framework/reified");
78
- var util_1 = require("../../../../_framework/util");
79
- var index_1 = require("../index");
80
- var bcs_1 = require("@mysten/sui/bcs");
81
- var utils_1 = require("@mysten/sui/utils");
82
- /* ============================== I64 =============================== */
83
- function isI64(type) {
84
- type = (0, util_1.compressSuiType)(type);
85
- return type === "".concat(index_1.PKG_V1, "::i64::I64");
86
- }
87
- var I64 = /** @class */ (function () {
88
- function I64(typeArgs, fields) {
89
- this.__StructClass = true;
90
- this.$typeName = I64.$typeName;
91
- this.$isPhantom = I64.$isPhantom;
92
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([I64.$typeName], __read(typeArgs), false));
93
- this.$typeArgs = typeArgs;
94
- this.bits = fields.bits;
95
- }
96
- I64.reified = function () {
97
- var _this = this;
98
- return {
99
- typeName: I64.$typeName,
100
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([I64.$typeName], [], false)),
101
- typeArgs: [],
102
- isPhantom: I64.$isPhantom,
103
- reifiedTypeArgs: [],
104
- fromFields: function (fields) { return I64.fromFields(fields); },
105
- fromFieldsWithTypes: function (item) { return I64.fromFieldsWithTypes(item); },
106
- fromBcs: function (data) { return I64.fromBcs(data); },
107
- bcs: I64.bcs,
108
- fromJSONField: function (field) { return I64.fromJSONField(field); },
109
- fromJSON: function (json) { return I64.fromJSON(json); },
110
- fromSuiParsedData: function (content) { return I64.fromSuiParsedData(content); },
111
- fromSuiObjectData: function (content) { return I64.fromSuiObjectData(content); },
112
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
113
- return [2 /*return*/, I64.fetch(client, id)];
114
- }); }); },
115
- new: function (fields) {
116
- return new I64([], fields);
117
- },
118
- kind: "StructClassReified",
119
- };
120
- };
121
- Object.defineProperty(I64, "r", {
122
- get: function () {
123
- return I64.reified();
124
- },
125
- enumerable: false,
126
- configurable: true
127
- });
128
- I64.phantom = function () {
129
- return (0, reified_1.phantom)(I64.reified());
130
- };
131
- Object.defineProperty(I64, "p", {
132
- get: function () {
133
- return I64.phantom();
134
- },
135
- enumerable: false,
136
- configurable: true
137
- });
138
- Object.defineProperty(I64, "bcs", {
139
- get: function () {
140
- return bcs_1.bcs.struct("I64", {
141
- bits: bcs_1.bcs.u64(),
142
- });
143
- },
144
- enumerable: false,
145
- configurable: true
146
- });
147
- I64.fromFields = function (fields) {
148
- return I64.reified().new({ bits: (0, reified_1.decodeFromFields)("u64", fields.bits) });
149
- };
150
- I64.fromFieldsWithTypes = function (item) {
151
- if (!isI64(item.type)) {
152
- throw new Error("not a I64 type");
153
- }
154
- return I64.reified().new({ bits: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bits) });
155
- };
156
- I64.fromBcs = function (data) {
157
- return I64.fromFields(I64.bcs.parse(data));
158
- };
159
- I64.prototype.toJSONField = function () {
160
- return {
161
- bits: this.bits.toString(),
162
- };
163
- };
164
- I64.prototype.toJSON = function () {
165
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
166
- };
167
- I64.fromJSONField = function (field) {
168
- return I64.reified().new({ bits: (0, reified_1.decodeFromJSONField)("u64", field.bits) });
169
- };
170
- I64.fromJSON = function (json) {
171
- if (json.$typeName !== I64.$typeName) {
172
- throw new Error("not a WithTwoGenerics json object");
173
- }
174
- return I64.fromJSONField(json);
175
- };
176
- I64.fromSuiParsedData = function (content) {
177
- if (content.dataType !== "moveObject") {
178
- throw new Error("not an object");
179
- }
180
- if (!isI64(content.type)) {
181
- throw new Error("object at ".concat(content.fields.id, " is not a I64 object"));
182
- }
183
- return I64.fromFieldsWithTypes(content);
184
- };
185
- I64.fromSuiObjectData = function (data) {
186
- if (data.bcs) {
187
- if (data.bcs.dataType !== "moveObject" || !isI64(data.bcs.type)) {
188
- throw new Error("object at is not a I64 object");
189
- }
190
- return I64.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
191
- }
192
- if (data.content) {
193
- return I64.fromSuiParsedData(data.content);
194
- }
195
- throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
196
- };
197
- I64.fetch = function (client, id) {
198
- return __awaiter(this, void 0, void 0, function () {
199
- var res;
200
- var _a, _b;
201
- return __generator(this, function (_c) {
202
- switch (_c.label) {
203
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
204
- case 1:
205
- res = _c.sent();
206
- if (res.error) {
207
- throw new Error("error fetching I64 object at id ".concat(id, ": ").concat(res.error.code));
208
- }
209
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isI64(res.data.bcs.type)) {
210
- throw new Error("object at id ".concat(id, " is not a I64 object"));
211
- }
212
- return [2 /*return*/, I64.fromSuiObjectData(res.data)];
213
- }
214
- });
215
- });
216
- };
217
- I64.$typeName = "".concat(index_1.PKG_V1, "::i64::I64");
218
- I64.$numTypeParams = 0;
219
- I64.$isPhantom = [];
220
- return I64;
221
- }());
222
- exports.I64 = I64;
@@ -1,3 +0,0 @@
1
- export declare const PACKAGE_ID = "0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274";
2
- export declare const PUBLISHED_AT = "0x90d05c94e816f601d2f84deddf83e94feed39afeac2f1e60f99205427b07cca0";
3
- export declare const PKG_V1 = "0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274";
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PKG_V1 = exports.PUBLISHED_AT = exports.PACKAGE_ID = void 0;
4
- exports.PACKAGE_ID = "0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274";
5
- exports.PUBLISHED_AT = "0x90d05c94e816f601d2f84deddf83e94feed39afeac2f1e60f99205427b07cca0";
6
- exports.PKG_V1 = "0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274";
@@ -1,2 +0,0 @@
1
- import { StructClassLoader } from "../../../_framework/loader";
2
- export declare function registerClasses(loader: StructClassLoader): void;
@@ -1,89 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.registerClasses = registerClasses;
37
- var authority = __importStar(require("./authority/structs"));
38
- var balancePool = __importStar(require("./balance-pool/structs"));
39
- var bigVector = __importStar(require("./big-vector/structs"));
40
- var dutch = __importStar(require("./dutch/structs"));
41
- var i64 = __importStar(require("./i64/structs"));
42
- var linkedList = __importStar(require("./linked-list/structs"));
43
- var vault = __importStar(require("./vault/structs"));
44
- function registerClasses(loader) {
45
- loader.register(authority.Authority);
46
- loader.register(balancePool.BalanceInfo);
47
- loader.register(balancePool.BalancePool);
48
- loader.register(balancePool.SharedBalancePool);
49
- loader.register(bigVector.BigVector);
50
- loader.register(dutch.Auction);
51
- loader.register(dutch.Bid);
52
- loader.register(dutch.DUTCH);
53
- loader.register(dutch.Delivery);
54
- loader.register(dutch.NewBid);
55
- loader.register(dutch.RemoveBid);
56
- loader.register(dutch.Terminate);
57
- loader.register(dutch.UpdateAuctionConfig);
58
- loader.register(i64.I64);
59
- loader.register(linkedList.LinkedList);
60
- loader.register(linkedList.Node);
61
- loader.register(vault.Activate);
62
- loader.register(vault.BidShare);
63
- loader.register(vault.BidVault);
64
- loader.register(vault.Claim);
65
- loader.register(vault.Compound);
66
- loader.register(vault.Delivery);
67
- loader.register(vault.Deposit);
68
- loader.register(vault.DepositShare);
69
- loader.register(vault.DepositVault);
70
- loader.register(vault.Exercise);
71
- loader.register(vault.Harvest);
72
- loader.register(vault.IncentiviseBidder);
73
- loader.register(vault.NewBidVault);
74
- loader.register(vault.NewDepositVault);
75
- loader.register(vault.NewRefundVault);
76
- loader.register(vault.Recoup);
77
- loader.register(vault.Redeem);
78
- loader.register(vault.RefundShare);
79
- loader.register(vault.RefundVault);
80
- loader.register(vault.Settle);
81
- loader.register(vault.Terminate);
82
- loader.register(vault.TypusBidReceipt);
83
- loader.register(vault.TypusDepositReceipt);
84
- loader.register(vault.Unsubscribe);
85
- loader.register(vault.UpdateFeeConfig);
86
- loader.register(vault.UpdateFeeShareConfig);
87
- loader.register(vault.VAULT);
88
- loader.register(vault.Withdraw);
89
- }
@@ -1,135 +0,0 @@
1
- import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToPhantomTypeArgument, ToTypeArgument, ToTypeStr, TypeArgument } from "../../../../_framework/reified";
2
- import { FieldsWithTypes } from "../../../../_framework/util";
3
- import { Option } from "../../0x1/option/structs";
4
- import { ID } from "../../0x2/object/structs";
5
- import { PKG_V1 } from "../index";
6
- import { BcsType } from "@mysten/sui/bcs";
7
- import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
8
- export declare function isLinkedList(type: string): boolean;
9
- export interface LinkedListFields<K extends TypeArgument, V extends PhantomTypeArgument> {
10
- id: ToField<ID>;
11
- first: ToField<Option<K>>;
12
- last: ToField<Option<K>>;
13
- length: ToField<"u64">;
14
- }
15
- export type LinkedListReified<K extends TypeArgument, V extends PhantomTypeArgument> = Reified<LinkedList<K, V>, LinkedListFields<K, V>>;
16
- export declare class LinkedList<K extends TypeArgument, V extends PhantomTypeArgument> implements StructClass {
17
- __StructClass: true;
18
- static readonly $typeName = "0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274::linked_list::LinkedList";
19
- static readonly $numTypeParams = 2;
20
- static readonly $isPhantom: readonly [false, true];
21
- readonly $typeName = "0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274::linked_list::LinkedList";
22
- readonly $fullTypeName: `${typeof PKG_V1}::linked_list::LinkedList<${ToTypeStr<K>}, ${PhantomToTypeStr<V>}>`;
23
- readonly $typeArgs: [ToTypeStr<K>, PhantomToTypeStr<V>];
24
- readonly $isPhantom: readonly [false, true];
25
- readonly id: ToField<ID>;
26
- readonly first: ToField<Option<K>>;
27
- readonly last: ToField<Option<K>>;
28
- readonly length: ToField<"u64">;
29
- private constructor();
30
- static reified<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(K: K, V: V): LinkedListReified<ToTypeArgument<K>, ToPhantomTypeArgument<V>>;
31
- static get r(): typeof LinkedList.reified;
32
- static phantom<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(K: K, V: V): PhantomReified<ToTypeStr<LinkedList<ToTypeArgument<K>, ToPhantomTypeArgument<V>>>>;
33
- static get p(): typeof LinkedList.phantom;
34
- static get bcs(): <K extends BcsType<any>>(K: K) => import("@mysten/sui/bcs").BcsStruct<{
35
- id: import("@mysten/sui/bcs").BcsStruct<{
36
- bytes: BcsType<string, string, string>;
37
- }, string>;
38
- first: import("@mysten/sui/bcs").BcsStruct<{
39
- vec: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
40
- length: number;
41
- }, string>;
42
- }, string>;
43
- last: import("@mysten/sui/bcs").BcsStruct<{
44
- vec: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
45
- length: number;
46
- }, string>;
47
- }, string>;
48
- length: BcsType<string, string | number | bigint, "u64">;
49
- }, string>;
50
- static fromFields<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], fields: Record<string, any>): LinkedList<ToTypeArgument<K>, ToPhantomTypeArgument<V>>;
51
- static fromFieldsWithTypes<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], item: FieldsWithTypes): LinkedList<ToTypeArgument<K>, ToPhantomTypeArgument<V>>;
52
- static fromBcs<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], data: Uint8Array): LinkedList<ToTypeArgument<K>, ToPhantomTypeArgument<V>>;
53
- toJSONField(): {
54
- id: string;
55
- first: import("../../../../_framework/reified").ToJSON<K> | null;
56
- last: import("../../../../_framework/reified").ToJSON<K> | null;
57
- length: string;
58
- };
59
- toJSON(): {
60
- id: string;
61
- first: import("../../../../_framework/reified").ToJSON<K> | null;
62
- last: import("../../../../_framework/reified").ToJSON<K> | null;
63
- length: string;
64
- $typeName: string;
65
- $typeArgs: [ToTypeStr<K>, PhantomToTypeStr<V>];
66
- };
67
- static fromJSONField<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], field: any): LinkedList<ToTypeArgument<K>, ToPhantomTypeArgument<V>>;
68
- static fromJSON<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], json: Record<string, any>): LinkedList<ToTypeArgument<K>, ToPhantomTypeArgument<V>>;
69
- static fromSuiParsedData<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], content: SuiParsedData): LinkedList<ToTypeArgument<K>, ToPhantomTypeArgument<V>>;
70
- static fromSuiObjectData<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(typeArgs: [K, V], data: SuiObjectData): LinkedList<ToTypeArgument<K>, ToPhantomTypeArgument<V>>;
71
- static fetch<K extends Reified<TypeArgument, any>, V extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArgs: [K, V], id: string): Promise<LinkedList<ToTypeArgument<K>, ToPhantomTypeArgument<V>>>;
72
- }
73
- export declare function isNode(type: string): boolean;
74
- export interface NodeFields<K extends TypeArgument, V extends TypeArgument> {
75
- value: ToField<V>;
76
- prev: ToField<Option<K>>;
77
- next: ToField<Option<K>>;
78
- exists: ToField<"bool">;
79
- }
80
- export type NodeReified<K extends TypeArgument, V extends TypeArgument> = Reified<Node<K, V>, NodeFields<K, V>>;
81
- export declare class Node<K extends TypeArgument, V extends TypeArgument> implements StructClass {
82
- __StructClass: true;
83
- static readonly $typeName = "0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274::linked_list::Node";
84
- static readonly $numTypeParams = 2;
85
- static readonly $isPhantom: readonly [false, false];
86
- readonly $typeName = "0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274::linked_list::Node";
87
- readonly $fullTypeName: `${typeof PKG_V1}::linked_list::Node<${ToTypeStr<K>}, ${ToTypeStr<V>}>`;
88
- readonly $typeArgs: [ToTypeStr<K>, ToTypeStr<V>];
89
- readonly $isPhantom: readonly [false, false];
90
- readonly value: ToField<V>;
91
- readonly prev: ToField<Option<K>>;
92
- readonly next: ToField<Option<K>>;
93
- readonly exists: ToField<"bool">;
94
- private constructor();
95
- static reified<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(K: K, V: V): NodeReified<ToTypeArgument<K>, ToTypeArgument<V>>;
96
- static get r(): typeof Node.reified;
97
- static phantom<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(K: K, V: V): PhantomReified<ToTypeStr<Node<ToTypeArgument<K>, ToTypeArgument<V>>>>;
98
- static get p(): typeof Node.phantom;
99
- static get bcs(): <K extends BcsType<any>, V extends BcsType<any>>(K: K, V: V) => import("@mysten/sui/bcs").BcsStruct<{
100
- value: V;
101
- prev: import("@mysten/sui/bcs").BcsStruct<{
102
- vec: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
103
- length: number;
104
- }, string>;
105
- }, string>;
106
- next: import("@mysten/sui/bcs").BcsStruct<{
107
- vec: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
108
- length: number;
109
- }, string>;
110
- }, string>;
111
- exists: BcsType<boolean, boolean, "bool">;
112
- }, string>;
113
- static fromFields<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], fields: Record<string, any>): Node<ToTypeArgument<K>, ToTypeArgument<V>>;
114
- static fromFieldsWithTypes<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], item: FieldsWithTypes): Node<ToTypeArgument<K>, ToTypeArgument<V>>;
115
- static fromBcs<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], data: Uint8Array): Node<ToTypeArgument<K>, ToTypeArgument<V>>;
116
- toJSONField(): {
117
- value: import("../../../../_framework/reified").ToJSON<V>;
118
- prev: import("../../../../_framework/reified").ToJSON<K> | null;
119
- next: import("../../../../_framework/reified").ToJSON<K> | null;
120
- exists: boolean;
121
- };
122
- toJSON(): {
123
- value: import("../../../../_framework/reified").ToJSON<V>;
124
- prev: import("../../../../_framework/reified").ToJSON<K> | null;
125
- next: import("../../../../_framework/reified").ToJSON<K> | null;
126
- exists: boolean;
127
- $typeName: string;
128
- $typeArgs: [ToTypeStr<K>, ToTypeStr<V>];
129
- };
130
- static fromJSONField<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], field: any): Node<ToTypeArgument<K>, ToTypeArgument<V>>;
131
- static fromJSON<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], json: Record<string, any>): Node<ToTypeArgument<K>, ToTypeArgument<V>>;
132
- static fromSuiParsedData<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], content: SuiParsedData): Node<ToTypeArgument<K>, ToTypeArgument<V>>;
133
- static fromSuiObjectData<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(typeArgs: [K, V], data: SuiObjectData): Node<ToTypeArgument<K>, ToTypeArgument<V>>;
134
- static fetch<K extends Reified<TypeArgument, any>, V extends Reified<TypeArgument, any>>(client: SuiClient, typeArgs: [K, V], id: string): Promise<Node<ToTypeArgument<K>, ToTypeArgument<V>>>;
135
- }