@typus/typus-perp-sdk 1.1.29 → 1.1.30-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 +1 -4
  68. package/dist/src/index.js +21 -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 -5
  73. package/dist/src/user/orderWithBidReceipt.js +127 -225
  74. package/dist/src/user/tlp.d.ts +32 -23
  75. package/dist/src/user/tlp.js +316 -468
  76. package/package.json +12 -3
  77. package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +0 -92
  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 -52
  82. package/dist/src/_dependencies/source/0x1/option/structs.js +0 -271
  83. package/dist/src/_dependencies/source/0x1/string/structs.d.ts +0 -50
  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 -53
  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 -61
  88. package/dist/src/_dependencies/source/0x2/bag/structs.js +0 -229
  89. package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +0 -88
  90. package/dist/src/_dependencies/source/0x2/balance/structs.js +0 -386
  91. package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +0 -460
  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 -153
  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 -92
  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 -61
  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 -46
  102. package/dist/src/_dependencies/source/0x2/sui/structs.js +0 -222
  103. package/dist/src/_dependencies/source/0x2/table/structs.d.ts +0 -61
  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 -68
  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 -449
  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 -370
  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 -53
  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 -111
  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 -51
  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 -489
  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 -147
  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 -239
  122. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +0 -653
  123. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +0 -405
  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 -227
  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 -699
  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 -161
  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 -147
  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 -1071
  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 -279
  140. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +0 -733
  141. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +0 -328
  142. package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +0 -892
  143. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +0 -88
  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 -347
  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 -73
  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 -876
  150. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +0 -1721
  151. package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +0 -46
  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 -155
  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 -2386
  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 -446
  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 -94
  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 -454
  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 -68
  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 -1117
  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 -35
  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 -529
  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 -92
  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 -172
  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 -4268
  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 -1064
  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 -81
  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 -97
  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 -3613
  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 -55
  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 -168
  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 -413
  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 -2477
  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,449 +0,0 @@
1
- import { PhantomReified, PhantomToTypeStr, PhantomTypeArgument, Reified, StructClass, ToField, ToPhantomTypeArgument, ToTypeStr } from "../../../../_framework/reified";
2
- import { FieldsWithTypes } from "../../../../_framework/util";
3
- import { Option } from "../../0x1/option/structs";
4
- import { String } from "../../0x1/string/structs";
5
- import { TypeName } from "../../0x1/type-name/structs";
6
- import { Balance } from "../balance/structs";
7
- import { PKG_V26 } from "../index";
8
- import { ID, UID } from "../object/structs";
9
- import { VecMap } from "../vec-map/structs";
10
- import { VecSet } from "../vec-set/structs";
11
- import { SuiClient, SuiObjectData, SuiParsedData } from "@mysten/sui/client";
12
- export declare function isActionRequest(type: string): boolean;
13
- export interface ActionRequestFields<T extends PhantomTypeArgument> {
14
- name: ToField<String>;
15
- amount: ToField<"u64">;
16
- sender: ToField<"address">;
17
- recipient: ToField<Option<"address">>;
18
- spentBalance: ToField<Option<Balance<T>>>;
19
- approvals: ToField<VecSet<TypeName>>;
20
- }
21
- export type ActionRequestReified<T extends PhantomTypeArgument> = Reified<ActionRequest<T>, ActionRequestFields<T>>;
22
- export declare class ActionRequest<T extends PhantomTypeArgument> implements StructClass {
23
- __StructClass: true;
24
- static readonly $typeName = "0x2::token::ActionRequest";
25
- static readonly $numTypeParams = 1;
26
- static readonly $isPhantom: readonly [true];
27
- readonly $typeName = "0x2::token::ActionRequest";
28
- readonly $fullTypeName: `${typeof PKG_V26}::token::ActionRequest<${PhantomToTypeStr<T>}>`;
29
- readonly $typeArgs: [PhantomToTypeStr<T>];
30
- readonly $isPhantom: readonly [true];
31
- readonly name: ToField<String>;
32
- readonly amount: ToField<"u64">;
33
- readonly sender: ToField<"address">;
34
- readonly recipient: ToField<Option<"address">>;
35
- readonly spentBalance: ToField<Option<Balance<T>>>;
36
- readonly approvals: ToField<VecSet<TypeName>>;
37
- private constructor();
38
- static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): ActionRequestReified<ToPhantomTypeArgument<T>>;
39
- static get r(): typeof ActionRequest.reified;
40
- static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<ActionRequest<ToPhantomTypeArgument<T>>>>;
41
- static get p(): typeof ActionRequest.phantom;
42
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
43
- name: {
44
- bytes: number[];
45
- };
46
- amount: string;
47
- sender: string;
48
- recipient: {
49
- vec: any[];
50
- };
51
- spent_balance: {
52
- vec: any[];
53
- };
54
- approvals: {
55
- contents: any[];
56
- };
57
- }, {
58
- name: {
59
- bytes: Iterable<number> & {
60
- length: number;
61
- };
62
- };
63
- amount: string | number | bigint;
64
- sender: string;
65
- recipient: {
66
- vec: Iterable<any> & {
67
- length: number;
68
- };
69
- };
70
- spent_balance: {
71
- vec: Iterable<any> & {
72
- length: number;
73
- };
74
- };
75
- approvals: {
76
- contents: Iterable<any> & {
77
- length: number;
78
- };
79
- };
80
- }>;
81
- static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): ActionRequest<ToPhantomTypeArgument<T>>;
82
- static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): ActionRequest<ToPhantomTypeArgument<T>>;
83
- static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): ActionRequest<ToPhantomTypeArgument<T>>;
84
- toJSONField(): {
85
- name: string;
86
- amount: string;
87
- sender: string;
88
- recipient: string | null;
89
- spentBalance: {
90
- value: string;
91
- } | null;
92
- approvals: {
93
- contents: {
94
- name: string;
95
- }[];
96
- };
97
- };
98
- toJSON(): {
99
- name: string;
100
- amount: string;
101
- sender: string;
102
- recipient: string | null;
103
- spentBalance: {
104
- value: string;
105
- } | null;
106
- approvals: {
107
- contents: {
108
- name: string;
109
- }[];
110
- };
111
- $typeName: string;
112
- $typeArgs: [PhantomToTypeStr<T>];
113
- };
114
- static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): ActionRequest<ToPhantomTypeArgument<T>>;
115
- static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): ActionRequest<ToPhantomTypeArgument<T>>;
116
- static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): ActionRequest<ToPhantomTypeArgument<T>>;
117
- static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): ActionRequest<ToPhantomTypeArgument<T>>;
118
- static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<ActionRequest<ToPhantomTypeArgument<T>>>;
119
- }
120
- export declare function isRuleKey(type: string): boolean;
121
- export interface RuleKeyFields<T extends PhantomTypeArgument> {
122
- isProtected: ToField<"bool">;
123
- }
124
- export type RuleKeyReified<T extends PhantomTypeArgument> = Reified<RuleKey<T>, RuleKeyFields<T>>;
125
- export declare class RuleKey<T extends PhantomTypeArgument> implements StructClass {
126
- __StructClass: true;
127
- static readonly $typeName = "0x2::token::RuleKey";
128
- static readonly $numTypeParams = 1;
129
- static readonly $isPhantom: readonly [true];
130
- readonly $typeName = "0x2::token::RuleKey";
131
- readonly $fullTypeName: `${typeof PKG_V26}::token::RuleKey<${PhantomToTypeStr<T>}>`;
132
- readonly $typeArgs: [PhantomToTypeStr<T>];
133
- readonly $isPhantom: readonly [true];
134
- readonly isProtected: ToField<"bool">;
135
- private constructor();
136
- static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): RuleKeyReified<ToPhantomTypeArgument<T>>;
137
- static get r(): typeof RuleKey.reified;
138
- static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<RuleKey<ToPhantomTypeArgument<T>>>>;
139
- static get p(): typeof RuleKey.phantom;
140
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
141
- is_protected: boolean;
142
- }, {
143
- is_protected: boolean;
144
- }>;
145
- static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): RuleKey<ToPhantomTypeArgument<T>>;
146
- static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): RuleKey<ToPhantomTypeArgument<T>>;
147
- static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): RuleKey<ToPhantomTypeArgument<T>>;
148
- toJSONField(): {
149
- isProtected: boolean;
150
- };
151
- toJSON(): {
152
- isProtected: boolean;
153
- $typeName: string;
154
- $typeArgs: [PhantomToTypeStr<T>];
155
- };
156
- static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): RuleKey<ToPhantomTypeArgument<T>>;
157
- static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): RuleKey<ToPhantomTypeArgument<T>>;
158
- static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): RuleKey<ToPhantomTypeArgument<T>>;
159
- static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): RuleKey<ToPhantomTypeArgument<T>>;
160
- static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<RuleKey<ToPhantomTypeArgument<T>>>;
161
- }
162
- export declare function isToken(type: string): boolean;
163
- export interface TokenFields<T extends PhantomTypeArgument> {
164
- id: ToField<UID>;
165
- balance: ToField<Balance<T>>;
166
- }
167
- export type TokenReified<T extends PhantomTypeArgument> = Reified<Token<T>, TokenFields<T>>;
168
- export declare class Token<T extends PhantomTypeArgument> implements StructClass {
169
- __StructClass: true;
170
- static readonly $typeName = "0x2::token::Token";
171
- static readonly $numTypeParams = 1;
172
- static readonly $isPhantom: readonly [true];
173
- readonly $typeName = "0x2::token::Token";
174
- readonly $fullTypeName: `${typeof PKG_V26}::token::Token<${PhantomToTypeStr<T>}>`;
175
- readonly $typeArgs: [PhantomToTypeStr<T>];
176
- readonly $isPhantom: readonly [true];
177
- readonly id: ToField<UID>;
178
- readonly balance: ToField<Balance<T>>;
179
- private constructor();
180
- static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): TokenReified<ToPhantomTypeArgument<T>>;
181
- static get r(): typeof Token.reified;
182
- static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<Token<ToPhantomTypeArgument<T>>>>;
183
- static get p(): typeof Token.phantom;
184
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
185
- id: {
186
- id: {
187
- bytes: string;
188
- };
189
- };
190
- balance: {
191
- value: string;
192
- };
193
- }, {
194
- id: {
195
- id: {
196
- bytes: string;
197
- };
198
- };
199
- balance: {
200
- value: string | number | bigint;
201
- };
202
- }>;
203
- static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): Token<ToPhantomTypeArgument<T>>;
204
- static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): Token<ToPhantomTypeArgument<T>>;
205
- static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): Token<ToPhantomTypeArgument<T>>;
206
- toJSONField(): {
207
- id: string;
208
- balance: {
209
- value: string;
210
- };
211
- };
212
- toJSON(): {
213
- id: string;
214
- balance: {
215
- value: string;
216
- };
217
- $typeName: string;
218
- $typeArgs: [PhantomToTypeStr<T>];
219
- };
220
- static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): Token<ToPhantomTypeArgument<T>>;
221
- static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): Token<ToPhantomTypeArgument<T>>;
222
- static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): Token<ToPhantomTypeArgument<T>>;
223
- static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): Token<ToPhantomTypeArgument<T>>;
224
- static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<Token<ToPhantomTypeArgument<T>>>;
225
- }
226
- export declare function isTokenPolicy(type: string): boolean;
227
- export interface TokenPolicyFields<T extends PhantomTypeArgument> {
228
- id: ToField<UID>;
229
- spentBalance: ToField<Balance<T>>;
230
- rules: ToField<VecMap<String, VecSet<TypeName>>>;
231
- }
232
- export type TokenPolicyReified<T extends PhantomTypeArgument> = Reified<TokenPolicy<T>, TokenPolicyFields<T>>;
233
- export declare class TokenPolicy<T extends PhantomTypeArgument> implements StructClass {
234
- __StructClass: true;
235
- static readonly $typeName = "0x2::token::TokenPolicy";
236
- static readonly $numTypeParams = 1;
237
- static readonly $isPhantom: readonly [true];
238
- readonly $typeName = "0x2::token::TokenPolicy";
239
- readonly $fullTypeName: `${typeof PKG_V26}::token::TokenPolicy<${PhantomToTypeStr<T>}>`;
240
- readonly $typeArgs: [PhantomToTypeStr<T>];
241
- readonly $isPhantom: readonly [true];
242
- readonly id: ToField<UID>;
243
- readonly spentBalance: ToField<Balance<T>>;
244
- readonly rules: ToField<VecMap<String, VecSet<TypeName>>>;
245
- private constructor();
246
- static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): TokenPolicyReified<ToPhantomTypeArgument<T>>;
247
- static get r(): typeof TokenPolicy.reified;
248
- static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<TokenPolicy<ToPhantomTypeArgument<T>>>>;
249
- static get p(): typeof TokenPolicy.phantom;
250
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
251
- id: {
252
- id: {
253
- bytes: string;
254
- };
255
- };
256
- spent_balance: {
257
- value: string;
258
- };
259
- rules: {
260
- contents: {
261
- key: {
262
- bytes: number[];
263
- };
264
- value: {
265
- contents: any[];
266
- };
267
- }[];
268
- };
269
- }, {
270
- id: {
271
- id: {
272
- bytes: string;
273
- };
274
- };
275
- spent_balance: {
276
- value: string | number | bigint;
277
- };
278
- rules: {
279
- contents: Iterable<{
280
- key: {
281
- bytes: Iterable<number> & {
282
- length: number;
283
- };
284
- };
285
- value: {
286
- contents: Iterable<any> & {
287
- length: number;
288
- };
289
- };
290
- }> & {
291
- length: number;
292
- };
293
- };
294
- }>;
295
- static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): TokenPolicy<ToPhantomTypeArgument<T>>;
296
- static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): TokenPolicy<ToPhantomTypeArgument<T>>;
297
- static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): TokenPolicy<ToPhantomTypeArgument<T>>;
298
- toJSONField(): {
299
- id: string;
300
- spentBalance: {
301
- value: string;
302
- };
303
- rules: {
304
- contents: {
305
- key: string;
306
- value: {
307
- contents: {
308
- name: string;
309
- }[];
310
- };
311
- }[];
312
- };
313
- };
314
- toJSON(): {
315
- id: string;
316
- spentBalance: {
317
- value: string;
318
- };
319
- rules: {
320
- contents: {
321
- key: string;
322
- value: {
323
- contents: {
324
- name: string;
325
- }[];
326
- };
327
- }[];
328
- };
329
- $typeName: string;
330
- $typeArgs: [PhantomToTypeStr<T>];
331
- };
332
- static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): TokenPolicy<ToPhantomTypeArgument<T>>;
333
- static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): TokenPolicy<ToPhantomTypeArgument<T>>;
334
- static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): TokenPolicy<ToPhantomTypeArgument<T>>;
335
- static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): TokenPolicy<ToPhantomTypeArgument<T>>;
336
- static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<TokenPolicy<ToPhantomTypeArgument<T>>>;
337
- }
338
- export declare function isTokenPolicyCap(type: string): boolean;
339
- export interface TokenPolicyCapFields<T extends PhantomTypeArgument> {
340
- id: ToField<UID>;
341
- for: ToField<ID>;
342
- }
343
- export type TokenPolicyCapReified<T extends PhantomTypeArgument> = Reified<TokenPolicyCap<T>, TokenPolicyCapFields<T>>;
344
- export declare class TokenPolicyCap<T extends PhantomTypeArgument> implements StructClass {
345
- __StructClass: true;
346
- static readonly $typeName = "0x2::token::TokenPolicyCap";
347
- static readonly $numTypeParams = 1;
348
- static readonly $isPhantom: readonly [true];
349
- readonly $typeName = "0x2::token::TokenPolicyCap";
350
- readonly $fullTypeName: `${typeof PKG_V26}::token::TokenPolicyCap<${PhantomToTypeStr<T>}>`;
351
- readonly $typeArgs: [PhantomToTypeStr<T>];
352
- readonly $isPhantom: readonly [true];
353
- readonly id: ToField<UID>;
354
- readonly for: ToField<ID>;
355
- private constructor();
356
- static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): TokenPolicyCapReified<ToPhantomTypeArgument<T>>;
357
- static get r(): typeof TokenPolicyCap.reified;
358
- static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<TokenPolicyCap<ToPhantomTypeArgument<T>>>>;
359
- static get p(): typeof TokenPolicyCap.phantom;
360
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
361
- id: {
362
- id: {
363
- bytes: string;
364
- };
365
- };
366
- for: {
367
- bytes: string;
368
- };
369
- }, {
370
- id: {
371
- id: {
372
- bytes: string;
373
- };
374
- };
375
- for: {
376
- bytes: string;
377
- };
378
- }>;
379
- static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): TokenPolicyCap<ToPhantomTypeArgument<T>>;
380
- static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): TokenPolicyCap<ToPhantomTypeArgument<T>>;
381
- static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): TokenPolicyCap<ToPhantomTypeArgument<T>>;
382
- toJSONField(): {
383
- id: string;
384
- for: string;
385
- };
386
- toJSON(): {
387
- id: string;
388
- for: string;
389
- $typeName: string;
390
- $typeArgs: [PhantomToTypeStr<T>];
391
- };
392
- static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): TokenPolicyCap<ToPhantomTypeArgument<T>>;
393
- static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): TokenPolicyCap<ToPhantomTypeArgument<T>>;
394
- static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): TokenPolicyCap<ToPhantomTypeArgument<T>>;
395
- static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): TokenPolicyCap<ToPhantomTypeArgument<T>>;
396
- static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<TokenPolicyCap<ToPhantomTypeArgument<T>>>;
397
- }
398
- export declare function isTokenPolicyCreated(type: string): boolean;
399
- export interface TokenPolicyCreatedFields<T extends PhantomTypeArgument> {
400
- id: ToField<ID>;
401
- isMutable: ToField<"bool">;
402
- }
403
- export type TokenPolicyCreatedReified<T extends PhantomTypeArgument> = Reified<TokenPolicyCreated<T>, TokenPolicyCreatedFields<T>>;
404
- export declare class TokenPolicyCreated<T extends PhantomTypeArgument> implements StructClass {
405
- __StructClass: true;
406
- static readonly $typeName = "0x2::token::TokenPolicyCreated";
407
- static readonly $numTypeParams = 1;
408
- static readonly $isPhantom: readonly [true];
409
- readonly $typeName = "0x2::token::TokenPolicyCreated";
410
- readonly $fullTypeName: `${typeof PKG_V26}::token::TokenPolicyCreated<${PhantomToTypeStr<T>}>`;
411
- readonly $typeArgs: [PhantomToTypeStr<T>];
412
- readonly $isPhantom: readonly [true];
413
- readonly id: ToField<ID>;
414
- readonly isMutable: ToField<"bool">;
415
- private constructor();
416
- static reified<T extends PhantomReified<PhantomTypeArgument>>(T: T): TokenPolicyCreatedReified<ToPhantomTypeArgument<T>>;
417
- static get r(): typeof TokenPolicyCreated.reified;
418
- static phantom<T extends PhantomReified<PhantomTypeArgument>>(T: T): PhantomReified<ToTypeStr<TokenPolicyCreated<ToPhantomTypeArgument<T>>>>;
419
- static get p(): typeof TokenPolicyCreated.phantom;
420
- static get bcs(): import("@mysten/sui/bcs").BcsType<{
421
- id: {
422
- bytes: string;
423
- };
424
- is_mutable: boolean;
425
- }, {
426
- id: {
427
- bytes: string;
428
- };
429
- is_mutable: boolean;
430
- }>;
431
- static fromFields<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, fields: Record<string, any>): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
432
- static fromFieldsWithTypes<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, item: FieldsWithTypes): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
433
- static fromBcs<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: Uint8Array): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
434
- toJSONField(): {
435
- id: string;
436
- isMutable: boolean;
437
- };
438
- toJSON(): {
439
- id: string;
440
- isMutable: boolean;
441
- $typeName: string;
442
- $typeArgs: [PhantomToTypeStr<T>];
443
- };
444
- static fromJSONField<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, field: any): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
445
- static fromJSON<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, json: Record<string, any>): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
446
- static fromSuiParsedData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, content: SuiParsedData): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
447
- static fromSuiObjectData<T extends PhantomReified<PhantomTypeArgument>>(typeArg: T, data: SuiObjectData): TokenPolicyCreated<ToPhantomTypeArgument<T>>;
448
- static fetch<T extends PhantomReified<PhantomTypeArgument>>(client: SuiClient, typeArg: T, id: string): Promise<TokenPolicyCreated<ToPhantomTypeArgument<T>>>;
449
- }