@haneullabs/haneul 0.1.0

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 (1175) hide show
  1. package/CHANGELOG.md +1723 -0
  2. package/LICENSE +201 -0
  3. package/README.md +449 -0
  4. package/bcs/package.json +6 -0
  5. package/client/package.json +6 -0
  6. package/cryptography/package.json +6 -0
  7. package/dist/cjs/bcs/bcs.d.ts +1973 -0
  8. package/dist/cjs/bcs/bcs.js +328 -0
  9. package/dist/cjs/bcs/bcs.js.map +7 -0
  10. package/dist/cjs/bcs/effects.d.ts +579 -0
  11. package/dist/cjs/bcs/effects.js +210 -0
  12. package/dist/cjs/bcs/effects.js.map +7 -0
  13. package/dist/cjs/bcs/index.d.ts +2589 -0
  14. package/dist/cjs/bcs/index.js +80 -0
  15. package/dist/cjs/bcs/index.js.map +7 -0
  16. package/dist/cjs/bcs/pure.d.ts +22 -0
  17. package/dist/cjs/bcs/pure.js +59 -0
  18. package/dist/cjs/bcs/pure.js.map +7 -0
  19. package/dist/cjs/bcs/type-tag-serializer.d.ts +7 -0
  20. package/dist/cjs/bcs/type-tag-serializer.js +117 -0
  21. package/dist/cjs/bcs/type-tag-serializer.js.map +7 -0
  22. package/dist/cjs/bcs/types.d.ts +114 -0
  23. package/dist/cjs/bcs/types.js +27 -0
  24. package/dist/cjs/bcs/types.js.map +7 -0
  25. package/dist/cjs/client/index.d.ts +5 -0
  26. package/dist/cjs/client/index.js +34 -0
  27. package/dist/cjs/client/index.js.map +7 -0
  28. package/dist/cjs/client/network.d.ts +1 -0
  29. package/dist/cjs/client/network.js +38 -0
  30. package/dist/cjs/client/network.js.map +7 -0
  31. package/dist/cjs/cryptography/index.d.ts +7 -0
  32. package/dist/cjs/cryptography/index.js +47 -0
  33. package/dist/cjs/cryptography/index.js.map +7 -0
  34. package/dist/cjs/cryptography/intent.d.ts +6 -0
  35. package/dist/cjs/cryptography/intent.js +35 -0
  36. package/dist/cjs/cryptography/intent.js.map +7 -0
  37. package/dist/cjs/cryptography/keypair.d.ts +72 -0
  38. package/dist/cjs/cryptography/keypair.js +118 -0
  39. package/dist/cjs/cryptography/keypair.js.map +7 -0
  40. package/dist/cjs/cryptography/mnemonics.d.ts +27 -0
  41. package/dist/cjs/cryptography/mnemonics.js +47 -0
  42. package/dist/cjs/cryptography/mnemonics.js.map +7 -0
  43. package/dist/cjs/cryptography/publickey.d.ts +67 -0
  44. package/dist/cjs/cryptography/publickey.js +140 -0
  45. package/dist/cjs/cryptography/publickey.js.map +7 -0
  46. package/dist/cjs/cryptography/signature-scheme.d.ts +24 -0
  47. package/dist/cjs/cryptography/signature-scheme.js +48 -0
  48. package/dist/cjs/cryptography/signature-scheme.js.map +7 -0
  49. package/dist/cjs/cryptography/signature.d.ts +65 -0
  50. package/dist/cjs/cryptography/signature.js +71 -0
  51. package/dist/cjs/cryptography/signature.js.map +7 -0
  52. package/dist/cjs/experimental/cache.d.ts +12 -0
  53. package/dist/cjs/experimental/cache.js +88 -0
  54. package/dist/cjs/experimental/cache.js.map +7 -0
  55. package/dist/cjs/experimental/client.d.ts +12 -0
  56. package/dist/cjs/experimental/client.js +46 -0
  57. package/dist/cjs/experimental/client.js.map +7 -0
  58. package/dist/cjs/experimental/core.d.ts +37 -0
  59. package/dist/cjs/experimental/core.js +114 -0
  60. package/dist/cjs/experimental/core.js.map +7 -0
  61. package/dist/cjs/experimental/errors.d.ts +8 -0
  62. package/dist/cjs/experimental/errors.js +54 -0
  63. package/dist/cjs/experimental/errors.js.map +7 -0
  64. package/dist/cjs/experimental/index.d.ts +7 -0
  65. package/dist/cjs/experimental/index.js +32 -0
  66. package/dist/cjs/experimental/index.js.map +7 -0
  67. package/dist/cjs/experimental/mvr.d.ts +42 -0
  68. package/dist/cjs/experimental/mvr.js +365 -0
  69. package/dist/cjs/experimental/mvr.js.map +7 -0
  70. package/dist/cjs/experimental/transports/utils.d.ts +3 -0
  71. package/dist/cjs/experimental/transports/utils.js +101 -0
  72. package/dist/cjs/experimental/transports/utils.js.map +7 -0
  73. package/dist/cjs/experimental/types.d.ts +434 -0
  74. package/dist/cjs/experimental/types.js +17 -0
  75. package/dist/cjs/experimental/types.js.map +7 -0
  76. package/dist/cjs/faucet/faucet.d.ts +65 -0
  77. package/dist/cjs/faucet/faucet.js +130 -0
  78. package/dist/cjs/faucet/faucet.js.map +7 -0
  79. package/dist/cjs/faucet/index.d.ts +1 -0
  80. package/dist/cjs/faucet/index.js +30 -0
  81. package/dist/cjs/faucet/index.js.map +7 -0
  82. package/dist/cjs/graphql/client.d.ts +50 -0
  83. package/dist/cjs/graphql/client.js +94 -0
  84. package/dist/cjs/graphql/client.js.map +7 -0
  85. package/dist/cjs/graphql/core.d.ts +32 -0
  86. package/dist/cjs/graphql/core.js +471 -0
  87. package/dist/cjs/graphql/core.js.map +7 -0
  88. package/dist/cjs/graphql/generated/2024.1/tada-env.d.ts +11380 -0
  89. package/dist/cjs/graphql/generated/2024.1/tada-env.js +13142 -0
  90. package/dist/cjs/graphql/generated/2024.1/tada-env.js.map +7 -0
  91. package/dist/cjs/graphql/generated/2024.1/tsconfig.tada.js +12 -0
  92. package/dist/cjs/graphql/generated/2024.1/tsconfig.tada.js.map +7 -0
  93. package/dist/cjs/graphql/generated/2024.4/tada-env.d.ts +11496 -0
  94. package/dist/cjs/graphql/generated/2024.4/tada-env.js +13288 -0
  95. package/dist/cjs/graphql/generated/2024.4/tada-env.js.map +7 -0
  96. package/dist/cjs/graphql/generated/2024.4/tsconfig.tada.js +12 -0
  97. package/dist/cjs/graphql/generated/2024.4/tsconfig.tada.js.map +7 -0
  98. package/dist/cjs/graphql/generated/latest/tada-env.d.ts +11128 -0
  99. package/dist/cjs/graphql/generated/latest/tada-env.js +12926 -0
  100. package/dist/cjs/graphql/generated/latest/tada-env.js.map +7 -0
  101. package/dist/cjs/graphql/generated/latest/tsconfig.tada.js +12 -0
  102. package/dist/cjs/graphql/generated/latest/tsconfig.tada.js.map +7 -0
  103. package/dist/cjs/graphql/generated/queries.d.ts +4980 -0
  104. package/dist/cjs/graphql/generated/queries.js +803 -0
  105. package/dist/cjs/graphql/generated/queries.js.map +7 -0
  106. package/dist/cjs/graphql/index.d.ts +1 -0
  107. package/dist/cjs/graphql/index.js +26 -0
  108. package/dist/cjs/graphql/index.js.map +7 -0
  109. package/dist/cjs/graphql/schemas/2024.1/index.d.ts +10 -0
  110. package/dist/cjs/graphql/schemas/2024.1/index.js +29 -0
  111. package/dist/cjs/graphql/schemas/2024.1/index.js.map +7 -0
  112. package/dist/cjs/graphql/schemas/2024.4/index.d.ts +10 -0
  113. package/dist/cjs/graphql/schemas/2024.4/index.js +29 -0
  114. package/dist/cjs/graphql/schemas/2024.4/index.js.map +7 -0
  115. package/dist/cjs/graphql/schemas/latest/index.d.ts +10 -0
  116. package/dist/cjs/graphql/schemas/latest/index.js +29 -0
  117. package/dist/cjs/graphql/schemas/latest/index.js.map +7 -0
  118. package/dist/cjs/graphql/types.d.ts +71 -0
  119. package/dist/cjs/graphql/types.js +17 -0
  120. package/dist/cjs/graphql/types.js.map +7 -0
  121. package/dist/cjs/grpc/client.d.ts +33 -0
  122. package/dist/cjs/grpc/client.js +53 -0
  123. package/dist/cjs/grpc/client.js.map +7 -0
  124. package/dist/cjs/grpc/core.d.ts +30 -0
  125. package/dist/cjs/grpc/core.js +651 -0
  126. package/dist/cjs/grpc/core.js.map +7 -0
  127. package/dist/cjs/grpc/index.d.ts +4 -0
  128. package/dist/cjs/grpc/index.js +27 -0
  129. package/dist/cjs/grpc/index.js.map +7 -0
  130. package/dist/cjs/grpc/proto/google/protobuf/any.d.ts +173 -0
  131. package/dist/cjs/grpc/proto/google/protobuf/any.js +139 -0
  132. package/dist/cjs/grpc/proto/google/protobuf/any.js.map +7 -0
  133. package/dist/cjs/grpc/proto/google/protobuf/duration.d.ts +104 -0
  134. package/dist/cjs/grpc/proto/google/protobuf/duration.js +88 -0
  135. package/dist/cjs/grpc/proto/google/protobuf/duration.js.map +7 -0
  136. package/dist/cjs/grpc/proto/google/protobuf/empty.d.ts +25 -0
  137. package/dist/cjs/grpc/proto/google/protobuf/empty.js +31 -0
  138. package/dist/cjs/grpc/proto/google/protobuf/empty.js.map +7 -0
  139. package/dist/cjs/grpc/proto/google/protobuf/field_mask.d.ts +231 -0
  140. package/dist/cjs/grpc/proto/google/protobuf/field_mask.js +73 -0
  141. package/dist/cjs/grpc/proto/google/protobuf/field_mask.js.map +7 -0
  142. package/dist/cjs/grpc/proto/google/protobuf/struct.d.ts +169 -0
  143. package/dist/cjs/grpc/proto/google/protobuf/struct.js +199 -0
  144. package/dist/cjs/grpc/proto/google/protobuf/struct.js.map +7 -0
  145. package/dist/cjs/grpc/proto/google/protobuf/timestamp.d.ts +145 -0
  146. package/dist/cjs/grpc/proto/google/protobuf/timestamp.js +123 -0
  147. package/dist/cjs/grpc/proto/google/protobuf/timestamp.js.map +7 -0
  148. package/dist/cjs/grpc/proto/google/rpc/error_details.d.ts +525 -0
  149. package/dist/cjs/grpc/proto/google/rpc/error_details.js +332 -0
  150. package/dist/cjs/grpc/proto/google/rpc/error_details.js.map +7 -0
  151. package/dist/cjs/grpc/proto/google/rpc/status.d.ts +46 -0
  152. package/dist/cjs/grpc/proto/google/rpc/status.js +48 -0
  153. package/dist/cjs/grpc/proto/google/rpc/status.js.map +7 -0
  154. package/dist/cjs/grpc/proto/haneul/rpc/v2/argument.d.ts +66 -0
  155. package/dist/cjs/grpc/proto/haneul/rpc/v2/argument.js +71 -0
  156. package/dist/cjs/grpc/proto/haneul/rpc/v2/argument.js.map +7 -0
  157. package/dist/cjs/grpc/proto/haneul/rpc/v2/balance_change.d.ts +34 -0
  158. package/dist/cjs/grpc/proto/haneul/rpc/v2/balance_change.js +56 -0
  159. package/dist/cjs/grpc/proto/haneul/rpc/v2/balance_change.js.map +7 -0
  160. package/dist/cjs/grpc/proto/haneul/rpc/v2/bcs.d.ts +30 -0
  161. package/dist/cjs/grpc/proto/haneul/rpc/v2/bcs.js +48 -0
  162. package/dist/cjs/grpc/proto/haneul/rpc/v2/bcs.js.map +7 -0
  163. package/dist/cjs/grpc/proto/haneul/rpc/v2/checkpoint.d.ts +68 -0
  164. package/dist/cjs/grpc/proto/haneul/rpc/v2/checkpoint.js +64 -0
  165. package/dist/cjs/grpc/proto/haneul/rpc/v2/checkpoint.js.map +7 -0
  166. package/dist/cjs/grpc/proto/haneul/rpc/v2/checkpoint_contents.d.ts +74 -0
  167. package/dist/cjs/grpc/proto/haneul/rpc/v2/checkpoint_contents.js +89 -0
  168. package/dist/cjs/grpc/proto/haneul/rpc/v2/checkpoint_contents.js.map +7 -0
  169. package/dist/cjs/grpc/proto/haneul/rpc/v2/checkpoint_summary.d.ts +195 -0
  170. package/dist/cjs/grpc/proto/haneul/rpc/v2/checkpoint_summary.js +165 -0
  171. package/dist/cjs/grpc/proto/haneul/rpc/v2/checkpoint_summary.js.map +7 -0
  172. package/dist/cjs/grpc/proto/haneul/rpc/v2/effects.d.ts +338 -0
  173. package/dist/cjs/grpc/proto/haneul/rpc/v2/effects.js +294 -0
  174. package/dist/cjs/grpc/proto/haneul/rpc/v2/effects.js.map +7 -0
  175. package/dist/cjs/grpc/proto/haneul/rpc/v2/epoch.d.ts +62 -0
  176. package/dist/cjs/grpc/proto/haneul/rpc/v2/epoch.js +73 -0
  177. package/dist/cjs/grpc/proto/haneul/rpc/v2/epoch.js.map +7 -0
  178. package/dist/cjs/grpc/proto/haneul/rpc/v2/error_reason.d.ts +17 -0
  179. package/dist/cjs/grpc/proto/haneul/rpc/v2/error_reason.js +30 -0
  180. package/dist/cjs/grpc/proto/haneul/rpc/v2/error_reason.js.map +7 -0
  181. package/dist/cjs/grpc/proto/haneul/rpc/v2/event.d.ts +88 -0
  182. package/dist/cjs/grpc/proto/haneul/rpc/v2/event.js +86 -0
  183. package/dist/cjs/grpc/proto/haneul/rpc/v2/event.js.map +7 -0
  184. package/dist/cjs/grpc/proto/haneul/rpc/v2/executed_transaction.d.ts +80 -0
  185. package/dist/cjs/grpc/proto/haneul/rpc/v2/executed_transaction.js +74 -0
  186. package/dist/cjs/grpc/proto/haneul/rpc/v2/executed_transaction.js.map +7 -0
  187. package/dist/cjs/grpc/proto/haneul/rpc/v2/execution_status.d.ts +843 -0
  188. package/dist/cjs/grpc/proto/haneul/rpc/v2/execution_status.js +513 -0
  189. package/dist/cjs/grpc/proto/haneul/rpc/v2/execution_status.js.map +7 -0
  190. package/dist/cjs/grpc/proto/haneul/rpc/v2/gas_cost_summary.d.ts +41 -0
  191. package/dist/cjs/grpc/proto/haneul/rpc/v2/gas_cost_summary.js +64 -0
  192. package/dist/cjs/grpc/proto/haneul/rpc/v2/gas_cost_summary.js.map +7 -0
  193. package/dist/cjs/grpc/proto/haneul/rpc/v2/input.d.ts +98 -0
  194. package/dist/cjs/grpc/proto/haneul/rpc/v2/input.js +90 -0
  195. package/dist/cjs/grpc/proto/haneul/rpc/v2/input.js.map +7 -0
  196. package/dist/cjs/grpc/proto/haneul/rpc/v2/jwk.d.ts +70 -0
  197. package/dist/cjs/grpc/proto/haneul/rpc/v2/jwk.js +88 -0
  198. package/dist/cjs/grpc/proto/haneul/rpc/v2/jwk.js.map +7 -0
  199. package/dist/cjs/grpc/proto/haneul/rpc/v2/ledger_service.client.d.ts +95 -0
  200. package/dist/cjs/grpc/proto/haneul/rpc/v2/ledger_service.client.js +127 -0
  201. package/dist/cjs/grpc/proto/haneul/rpc/v2/ledger_service.client.js.map +7 -0
  202. package/dist/cjs/grpc/proto/haneul/rpc/v2/ledger_service.d.ts +420 -0
  203. package/dist/cjs/grpc/proto/haneul/rpc/v2/ledger_service.js +327 -0
  204. package/dist/cjs/grpc/proto/haneul/rpc/v2/ledger_service.js.map +7 -0
  205. package/dist/cjs/grpc/proto/haneul/rpc/v2/move_package.d.ts +579 -0
  206. package/dist/cjs/grpc/proto/haneul/rpc/v2/move_package.js +480 -0
  207. package/dist/cjs/grpc/proto/haneul/rpc/v2/move_package.js.map +7 -0
  208. package/dist/cjs/grpc/proto/haneul/rpc/v2/move_package_service.client.d.ts +61 -0
  209. package/dist/cjs/grpc/proto/haneul/rpc/v2/move_package_service.client.js +86 -0
  210. package/dist/cjs/grpc/proto/haneul/rpc/v2/move_package_service.client.js.map +7 -0
  211. package/dist/cjs/grpc/proto/haneul/rpc/v2/move_package_service.d.ts +229 -0
  212. package/dist/cjs/grpc/proto/haneul/rpc/v2/move_package_service.js +226 -0
  213. package/dist/cjs/grpc/proto/haneul/rpc/v2/move_package_service.js.map +7 -0
  214. package/dist/cjs/grpc/proto/haneul/rpc/v2/name_service.client.d.ts +41 -0
  215. package/dist/cjs/grpc/proto/haneul/rpc/v2/name_service.client.js +60 -0
  216. package/dist/cjs/grpc/proto/haneul/rpc/v2/name_service.client.js.map +7 -0
  217. package/dist/cjs/grpc/proto/haneul/rpc/v2/name_service.d.ts +144 -0
  218. package/dist/cjs/grpc/proto/haneul/rpc/v2/name_service.js +138 -0
  219. package/dist/cjs/grpc/proto/haneul/rpc/v2/name_service.js.map +7 -0
  220. package/dist/cjs/grpc/proto/haneul/rpc/v2/object.d.ts +127 -0
  221. package/dist/cjs/grpc/proto/haneul/rpc/v2/object.js +113 -0
  222. package/dist/cjs/grpc/proto/haneul/rpc/v2/object.js.map +7 -0
  223. package/dist/cjs/grpc/proto/haneul/rpc/v2/object_reference.d.ts +34 -0
  224. package/dist/cjs/grpc/proto/haneul/rpc/v2/object_reference.js +56 -0
  225. package/dist/cjs/grpc/proto/haneul/rpc/v2/object_reference.js.map +7 -0
  226. package/dist/cjs/grpc/proto/haneul/rpc/v2/owner.d.ts +61 -0
  227. package/dist/cjs/grpc/proto/haneul/rpc/v2/owner.js +65 -0
  228. package/dist/cjs/grpc/proto/haneul/rpc/v2/owner.js.map +7 -0
  229. package/dist/cjs/grpc/proto/haneul/rpc/v2/protocol_config.d.ts +30 -0
  230. package/dist/cjs/grpc/proto/haneul/rpc/v2/protocol_config.js +62 -0
  231. package/dist/cjs/grpc/proto/haneul/rpc/v2/protocol_config.js.map +7 -0
  232. package/dist/cjs/grpc/proto/haneul/rpc/v2/signature.d.ts +630 -0
  233. package/dist/cjs/grpc/proto/haneul/rpc/v2/signature.js +514 -0
  234. package/dist/cjs/grpc/proto/haneul/rpc/v2/signature.js.map +7 -0
  235. package/dist/cjs/grpc/proto/haneul/rpc/v2/signature_scheme.d.ts +40 -0
  236. package/dist/cjs/grpc/proto/haneul/rpc/v2/signature_scheme.js +34 -0
  237. package/dist/cjs/grpc/proto/haneul/rpc/v2/signature_scheme.js.map +7 -0
  238. package/dist/cjs/grpc/proto/haneul/rpc/v2/signature_verification_service.client.d.ts +35 -0
  239. package/dist/cjs/grpc/proto/haneul/rpc/v2/signature_verification_service.client.js +49 -0
  240. package/dist/cjs/grpc/proto/haneul/rpc/v2/signature_verification_service.client.js.map +7 -0
  241. package/dist/cjs/grpc/proto/haneul/rpc/v2/signature_verification_service.d.ts +79 -0
  242. package/dist/cjs/grpc/proto/haneul/rpc/v2/signature_verification_service.js +76 -0
  243. package/dist/cjs/grpc/proto/haneul/rpc/v2/signature_verification_service.js.map +7 -0
  244. package/dist/cjs/grpc/proto/haneul/rpc/v2/state_service.client.d.ts +71 -0
  245. package/dist/cjs/grpc/proto/haneul/rpc/v2/state_service.client.js +99 -0
  246. package/dist/cjs/grpc/proto/haneul/rpc/v2/state_service.client.js.map +7 -0
  247. package/dist/cjs/grpc/proto/haneul/rpc/v2/state_service.d.ts +690 -0
  248. package/dist/cjs/grpc/proto/haneul/rpc/v2/state_service.js +546 -0
  249. package/dist/cjs/grpc/proto/haneul/rpc/v2/state_service.js.map +7 -0
  250. package/dist/cjs/grpc/proto/haneul/rpc/v2/subscription_service.client.d.ts +55 -0
  251. package/dist/cjs/grpc/proto/haneul/rpc/v2/subscription_service.client.js +59 -0
  252. package/dist/cjs/grpc/proto/haneul/rpc/v2/subscription_service.client.js.map +7 -0
  253. package/dist/cjs/grpc/proto/haneul/rpc/v2/subscription_service.d.ts +57 -0
  254. package/dist/cjs/grpc/proto/haneul/rpc/v2/subscription_service.js +63 -0
  255. package/dist/cjs/grpc/proto/haneul/rpc/v2/subscription_service.js.map +7 -0
  256. package/dist/cjs/grpc/proto/haneul/rpc/v2/system_state.d.ts +684 -0
  257. package/dist/cjs/grpc/proto/haneul/rpc/v2/system_state.js +674 -0
  258. package/dist/cjs/grpc/proto/haneul/rpc/v2/system_state.js.map +7 -0
  259. package/dist/cjs/grpc/proto/haneul/rpc/v2/transaction.d.ts +1321 -0
  260. package/dist/cjs/grpc/proto/haneul/rpc/v2/transaction.js +931 -0
  261. package/dist/cjs/grpc/proto/haneul/rpc/v2/transaction.js.map +7 -0
  262. package/dist/cjs/grpc/proto/haneul/rpc/v2/transaction_execution_service.client.d.ts +41 -0
  263. package/dist/cjs/grpc/proto/haneul/rpc/v2/transaction_execution_service.client.js +60 -0
  264. package/dist/cjs/grpc/proto/haneul/rpc/v2/transaction_execution_service.client.js.map +7 -0
  265. package/dist/cjs/grpc/proto/haneul/rpc/v2/transaction_execution_service.d.ts +184 -0
  266. package/dist/cjs/grpc/proto/haneul/rpc/v2/transaction_execution_service.js +159 -0
  267. package/dist/cjs/grpc/proto/haneul/rpc/v2/transaction_execution_service.js.map +7 -0
  268. package/dist/cjs/jsonRpc/client.d.ts +264 -0
  269. package/dist/cjs/jsonRpc/client.js +832 -0
  270. package/dist/cjs/jsonRpc/client.js.map +7 -0
  271. package/dist/cjs/jsonRpc/core.d.ts +93 -0
  272. package/dist/cjs/jsonRpc/core.js +644 -0
  273. package/dist/cjs/jsonRpc/core.js.map +7 -0
  274. package/dist/cjs/jsonRpc/errors.d.ts +12 -0
  275. package/dist/cjs/jsonRpc/errors.js +60 -0
  276. package/dist/cjs/jsonRpc/errors.js.map +7 -0
  277. package/dist/cjs/jsonRpc/http-transport.d.ts +42 -0
  278. package/dist/cjs/jsonRpc/http-transport.js +119 -0
  279. package/dist/cjs/jsonRpc/http-transport.js.map +7 -0
  280. package/dist/cjs/jsonRpc/index.d.ts +4 -0
  281. package/dist/cjs/jsonRpc/index.js +32 -0
  282. package/dist/cjs/jsonRpc/index.js.map +7 -0
  283. package/dist/cjs/jsonRpc/json-rpc-resolver.d.ts +4 -0
  284. package/dist/cjs/jsonRpc/json-rpc-resolver.js +311 -0
  285. package/dist/cjs/jsonRpc/json-rpc-resolver.js.map +7 -0
  286. package/dist/cjs/jsonRpc/rpc-websocket-client.d.ts +43 -0
  287. package/dist/cjs/jsonRpc/rpc-websocket-client.js +194 -0
  288. package/dist/cjs/jsonRpc/rpc-websocket-client.js.map +7 -0
  289. package/dist/cjs/jsonRpc/types/chain.d.ts +99 -0
  290. package/dist/cjs/jsonRpc/types/chain.js +17 -0
  291. package/dist/cjs/jsonRpc/types/chain.js.map +7 -0
  292. package/dist/cjs/jsonRpc/types/changes.d.ts +19 -0
  293. package/dist/cjs/jsonRpc/types/changes.js +17 -0
  294. package/dist/cjs/jsonRpc/types/changes.js.map +7 -0
  295. package/dist/cjs/jsonRpc/types/coins.d.ts +6 -0
  296. package/dist/cjs/jsonRpc/types/coins.js +17 -0
  297. package/dist/cjs/jsonRpc/types/coins.js.map +7 -0
  298. package/dist/cjs/jsonRpc/types/common.d.ts +2 -0
  299. package/dist/cjs/jsonRpc/types/common.js +17 -0
  300. package/dist/cjs/jsonRpc/types/common.js.map +7 -0
  301. package/dist/cjs/jsonRpc/types/generated.d.ts +1492 -0
  302. package/dist/cjs/jsonRpc/types/generated.js +17 -0
  303. package/dist/cjs/jsonRpc/types/generated.js.map +7 -0
  304. package/dist/cjs/jsonRpc/types/index.d.ts +6 -0
  305. package/dist/cjs/jsonRpc/types/index.js +17 -0
  306. package/dist/cjs/jsonRpc/types/index.js.map +7 -0
  307. package/dist/cjs/jsonRpc/types/params.d.ts +656 -0
  308. package/dist/cjs/jsonRpc/types/params.js +17 -0
  309. package/dist/cjs/jsonRpc/types/params.js.map +7 -0
  310. package/dist/cjs/keypairs/ed25519/ed25519-hd-key.d.ts +8 -0
  311. package/dist/cjs/keypairs/ed25519/ed25519-hd-key.js +77 -0
  312. package/dist/cjs/keypairs/ed25519/ed25519-hd-key.js.map +7 -0
  313. package/dist/cjs/keypairs/ed25519/index.d.ts +2 -0
  314. package/dist/cjs/keypairs/ed25519/index.js +28 -0
  315. package/dist/cjs/keypairs/ed25519/index.js.map +7 -0
  316. package/dist/cjs/keypairs/ed25519/keypair.d.ts +74 -0
  317. package/dist/cjs/keypairs/ed25519/keypair.js +162 -0
  318. package/dist/cjs/keypairs/ed25519/keypair.js.map +7 -0
  319. package/dist/cjs/keypairs/ed25519/publickey.d.ts +30 -0
  320. package/dist/cjs/keypairs/ed25519/publickey.js +88 -0
  321. package/dist/cjs/keypairs/ed25519/publickey.js.map +7 -0
  322. package/dist/cjs/keypairs/passkey/index.d.ts +3 -0
  323. package/dist/cjs/keypairs/passkey/index.js +29 -0
  324. package/dist/cjs/keypairs/passkey/index.js.map +7 -0
  325. package/dist/cjs/keypairs/passkey/keypair.d.ts +113 -0
  326. package/dist/cjs/keypairs/passkey/keypair.js +251 -0
  327. package/dist/cjs/keypairs/passkey/keypair.js.map +7 -0
  328. package/dist/cjs/keypairs/passkey/publickey.d.ts +72 -0
  329. package/dist/cjs/keypairs/passkey/publickey.js +168 -0
  330. package/dist/cjs/keypairs/passkey/publickey.js.map +7 -0
  331. package/dist/cjs/keypairs/passkey/types.d.ts +12 -0
  332. package/dist/cjs/keypairs/passkey/types.js +17 -0
  333. package/dist/cjs/keypairs/passkey/types.js.map +7 -0
  334. package/dist/cjs/keypairs/secp256k1/index.d.ts +2 -0
  335. package/dist/cjs/keypairs/secp256k1/index.js +28 -0
  336. package/dist/cjs/keypairs/secp256k1/index.js.map +7 -0
  337. package/dist/cjs/keypairs/secp256k1/keypair.d.ts +73 -0
  338. package/dist/cjs/keypairs/secp256k1/keypair.js +150 -0
  339. package/dist/cjs/keypairs/secp256k1/keypair.js.map +7 -0
  340. package/dist/cjs/keypairs/secp256k1/publickey.d.ts +30 -0
  341. package/dist/cjs/keypairs/secp256k1/publickey.js +93 -0
  342. package/dist/cjs/keypairs/secp256k1/publickey.js.map +7 -0
  343. package/dist/cjs/keypairs/secp256r1/index.d.ts +2 -0
  344. package/dist/cjs/keypairs/secp256r1/index.js +28 -0
  345. package/dist/cjs/keypairs/secp256r1/index.js.map +7 -0
  346. package/dist/cjs/keypairs/secp256r1/keypair.d.ts +73 -0
  347. package/dist/cjs/keypairs/secp256r1/keypair.js +144 -0
  348. package/dist/cjs/keypairs/secp256r1/keypair.js.map +7 -0
  349. package/dist/cjs/keypairs/secp256r1/publickey.d.ts +30 -0
  350. package/dist/cjs/keypairs/secp256r1/publickey.js +94 -0
  351. package/dist/cjs/keypairs/secp256r1/publickey.js.map +7 -0
  352. package/dist/cjs/multisig/index.d.ts +2 -0
  353. package/dist/cjs/multisig/index.js +28 -0
  354. package/dist/cjs/multisig/index.js.map +7 -0
  355. package/dist/cjs/multisig/publickey.d.ts +114 -0
  356. package/dist/cjs/multisig/publickey.js +260 -0
  357. package/dist/cjs/multisig/publickey.js.map +7 -0
  358. package/dist/cjs/multisig/signer.d.ts +20 -0
  359. package/dist/cjs/multisig/signer.js +105 -0
  360. package/dist/cjs/multisig/signer.js.map +7 -0
  361. package/dist/cjs/package.json +5 -0
  362. package/dist/cjs/transactions/Arguments.d.ts +49 -0
  363. package/dist/cjs/transactions/Arguments.js +33 -0
  364. package/dist/cjs/transactions/Arguments.js.map +7 -0
  365. package/dist/cjs/transactions/Commands.d.ts +57 -0
  366. package/dist/cjs/transactions/Commands.js +140 -0
  367. package/dist/cjs/transactions/Commands.js.map +7 -0
  368. package/dist/cjs/transactions/Inputs.d.ts +22 -0
  369. package/dist/cjs/transactions/Inputs.js +80 -0
  370. package/dist/cjs/transactions/Inputs.js.map +7 -0
  371. package/dist/cjs/transactions/ObjectCache.d.ts +83 -0
  372. package/dist/cjs/transactions/ObjectCache.js +241 -0
  373. package/dist/cjs/transactions/ObjectCache.js.map +7 -0
  374. package/dist/cjs/transactions/Transaction.d.ts +710 -0
  375. package/dist/cjs/transactions/Transaction.js +683 -0
  376. package/dist/cjs/transactions/Transaction.js.map +7 -0
  377. package/dist/cjs/transactions/TransactionData.d.ts +73 -0
  378. package/dist/cjs/transactions/TransactionData.js +433 -0
  379. package/dist/cjs/transactions/TransactionData.js.map +7 -0
  380. package/dist/cjs/transactions/__tests__/Transaction.test.d.ts +1 -0
  381. package/dist/cjs/transactions/__tests__/bcs.test.d.ts +1 -0
  382. package/dist/cjs/transactions/data/internal.d.ts +1010 -0
  383. package/dist/cjs/transactions/data/internal.js +216 -0
  384. package/dist/cjs/transactions/data/internal.js.map +7 -0
  385. package/dist/cjs/transactions/data/v1.d.ts +312 -0
  386. package/dist/cjs/transactions/data/v1.js +482 -0
  387. package/dist/cjs/transactions/data/v1.js.map +7 -0
  388. package/dist/cjs/transactions/data/v2.d.ts +153 -0
  389. package/dist/cjs/transactions/data/v2.js +125 -0
  390. package/dist/cjs/transactions/data/v2.js.map +7 -0
  391. package/dist/cjs/transactions/executor/caching.d.ts +31 -0
  392. package/dist/cjs/transactions/executor/caching.js +114 -0
  393. package/dist/cjs/transactions/executor/caching.js.map +7 -0
  394. package/dist/cjs/transactions/executor/parallel.d.ts +37 -0
  395. package/dist/cjs/transactions/executor/parallel.js +380 -0
  396. package/dist/cjs/transactions/executor/parallel.js.map +7 -0
  397. package/dist/cjs/transactions/executor/queue.d.ts +11 -0
  398. package/dist/cjs/transactions/executor/queue.js +85 -0
  399. package/dist/cjs/transactions/executor/queue.js.map +7 -0
  400. package/dist/cjs/transactions/executor/serial.d.ts +31 -0
  401. package/dist/cjs/transactions/executor/serial.js +137 -0
  402. package/dist/cjs/transactions/executor/serial.js.map +7 -0
  403. package/dist/cjs/transactions/hash.d.ts +7 -0
  404. package/dist/cjs/transactions/hash.js +32 -0
  405. package/dist/cjs/transactions/hash.js.map +7 -0
  406. package/dist/cjs/transactions/index.d.ts +21 -0
  407. package/dist/cjs/transactions/index.js +51 -0
  408. package/dist/cjs/transactions/index.js.map +7 -0
  409. package/dist/cjs/transactions/intents/CoinWithBalance.d.ts +9 -0
  410. package/dist/cjs/transactions/intents/CoinWithBalance.js +188 -0
  411. package/dist/cjs/transactions/intents/CoinWithBalance.js.map +7 -0
  412. package/dist/cjs/transactions/object.d.ts +16 -0
  413. package/dist/cjs/transactions/object.js +78 -0
  414. package/dist/cjs/transactions/object.js.map +7 -0
  415. package/dist/cjs/transactions/plugins/NamedPackagesPlugin.d.ts +48 -0
  416. package/dist/cjs/transactions/plugins/NamedPackagesPlugin.js +67 -0
  417. package/dist/cjs/transactions/plugins/NamedPackagesPlugin.js.map +7 -0
  418. package/dist/cjs/transactions/pure.d.ts +20 -0
  419. package/dist/cjs/transactions/pure.js +57 -0
  420. package/dist/cjs/transactions/pure.js.map +7 -0
  421. package/dist/cjs/transactions/resolve.d.ts +13 -0
  422. package/dist/cjs/transactions/resolve.js +98 -0
  423. package/dist/cjs/transactions/resolve.js.map +7 -0
  424. package/dist/cjs/transactions/serializer.d.ts +7 -0
  425. package/dist/cjs/transactions/serializer.js +182 -0
  426. package/dist/cjs/transactions/serializer.js.map +7 -0
  427. package/dist/cjs/transactions/utils.d.ts +10 -0
  428. package/dist/cjs/transactions/utils.js +135 -0
  429. package/dist/cjs/transactions/utils.js.map +7 -0
  430. package/dist/cjs/utils/constants.d.ts +10 -0
  431. package/dist/cjs/utils/constants.js +44 -0
  432. package/dist/cjs/utils/constants.js.map +7 -0
  433. package/dist/cjs/utils/derived-objects.d.ts +5 -0
  434. package/dist/cjs/utils/derived-objects.js +34 -0
  435. package/dist/cjs/utils/derived-objects.js.map +7 -0
  436. package/dist/cjs/utils/dynamic-fields.d.ts +2 -0
  437. package/dist/cjs/utils/dynamic-fields.js +41 -0
  438. package/dist/cjs/utils/dynamic-fields.js.map +7 -0
  439. package/dist/cjs/utils/format.d.ts +2 -0
  440. package/dist/cjs/utils/format.js +36 -0
  441. package/dist/cjs/utils/format.js.map +7 -0
  442. package/dist/cjs/utils/haneul-types.d.ts +26 -0
  443. package/dist/cjs/utils/haneul-types.js +91 -0
  444. package/dist/cjs/utils/haneul-types.js.map +7 -0
  445. package/dist/cjs/utils/haneulns.d.ts +2 -0
  446. package/dist/cjs/utils/haneulns.js +57 -0
  447. package/dist/cjs/utils/haneulns.js.map +7 -0
  448. package/dist/cjs/utils/index.d.ts +9 -0
  449. package/dist/cjs/utils/index.js +69 -0
  450. package/dist/cjs/utils/index.js.map +7 -0
  451. package/dist/cjs/utils/move-registry.d.ts +6 -0
  452. package/dist/cjs/utils/move-registry.js +45 -0
  453. package/dist/cjs/utils/move-registry.js.map +7 -0
  454. package/dist/cjs/verify/index.d.ts +1 -0
  455. package/dist/cjs/verify/index.js +29 -0
  456. package/dist/cjs/verify/index.js.map +7 -0
  457. package/dist/cjs/verify/verify.d.ts +21 -0
  458. package/dist/cjs/verify/verify.js +124 -0
  459. package/dist/cjs/verify/verify.js.map +7 -0
  460. package/dist/cjs/version.d.ts +2 -0
  461. package/dist/cjs/version.js +27 -0
  462. package/dist/cjs/version.js.map +7 -0
  463. package/dist/cjs/zklogin/address.d.ts +16 -0
  464. package/dist/cjs/zklogin/address.js +87 -0
  465. package/dist/cjs/zklogin/address.js.map +7 -0
  466. package/dist/cjs/zklogin/bcs.d.ts +28 -0
  467. package/dist/cjs/zklogin/bcs.js +42 -0
  468. package/dist/cjs/zklogin/bcs.js.map +7 -0
  469. package/dist/cjs/zklogin/index.d.ts +9 -0
  470. package/dist/cjs/zklogin/index.js +46 -0
  471. package/dist/cjs/zklogin/index.js.map +7 -0
  472. package/dist/cjs/zklogin/jwt-decode.d.ts +47 -0
  473. package/dist/cjs/zklogin/jwt-decode.js +85 -0
  474. package/dist/cjs/zklogin/jwt-decode.js.map +7 -0
  475. package/dist/cjs/zklogin/jwt-utils.d.ts +12 -0
  476. package/dist/cjs/zklogin/jwt-utils.js +121 -0
  477. package/dist/cjs/zklogin/jwt-utils.js.map +7 -0
  478. package/dist/cjs/zklogin/nonce.d.ts +4 -0
  479. package/dist/cjs/zklogin/nonce.js +54 -0
  480. package/dist/cjs/zklogin/nonce.js.map +7 -0
  481. package/dist/cjs/zklogin/poseidon.d.ts +2 -0
  482. package/dist/cjs/zklogin/poseidon.js +63 -0
  483. package/dist/cjs/zklogin/poseidon.js.map +7 -0
  484. package/dist/cjs/zklogin/publickey.d.ts +87 -0
  485. package/dist/cjs/zklogin/publickey.js +257 -0
  486. package/dist/cjs/zklogin/publickey.js.map +7 -0
  487. package/dist/cjs/zklogin/signature.d.ts +23 -0
  488. package/dist/cjs/zklogin/signature.js +48 -0
  489. package/dist/cjs/zklogin/signature.js.map +7 -0
  490. package/dist/cjs/zklogin/utils.d.ts +16 -0
  491. package/dist/cjs/zklogin/utils.js +97 -0
  492. package/dist/cjs/zklogin/utils.js.map +7 -0
  493. package/dist/esm/bcs/bcs.d.ts +1973 -0
  494. package/dist/esm/bcs/bcs.js +308 -0
  495. package/dist/esm/bcs/bcs.js.map +7 -0
  496. package/dist/esm/bcs/effects.d.ts +579 -0
  497. package/dist/esm/bcs/effects.js +190 -0
  498. package/dist/esm/bcs/effects.js.map +7 -0
  499. package/dist/esm/bcs/index.d.ts +2589 -0
  500. package/dist/esm/bcs/index.js +94 -0
  501. package/dist/esm/bcs/index.js.map +7 -0
  502. package/dist/esm/bcs/pure.d.ts +22 -0
  503. package/dist/esm/bcs/pure.js +39 -0
  504. package/dist/esm/bcs/pure.js.map +7 -0
  505. package/dist/esm/bcs/type-tag-serializer.d.ts +7 -0
  506. package/dist/esm/bcs/type-tag-serializer.js +97 -0
  507. package/dist/esm/bcs/type-tag-serializer.js.map +7 -0
  508. package/dist/esm/bcs/types.d.ts +114 -0
  509. package/dist/esm/bcs/types.js +7 -0
  510. package/dist/esm/bcs/types.js.map +7 -0
  511. package/dist/esm/client/index.d.ts +5 -0
  512. package/dist/esm/client/index.js +19 -0
  513. package/dist/esm/client/index.js.map +7 -0
  514. package/dist/esm/client/network.d.ts +1 -0
  515. package/dist/esm/client/network.js +18 -0
  516. package/dist/esm/client/network.js.map +7 -0
  517. package/dist/esm/cryptography/index.d.ts +7 -0
  518. package/dist/esm/cryptography/index.js +47 -0
  519. package/dist/esm/cryptography/index.js.map +7 -0
  520. package/dist/esm/cryptography/intent.d.ts +6 -0
  521. package/dist/esm/cryptography/intent.js +15 -0
  522. package/dist/esm/cryptography/intent.js.map +7 -0
  523. package/dist/esm/cryptography/keypair.d.ts +72 -0
  524. package/dist/esm/cryptography/keypair.js +98 -0
  525. package/dist/esm/cryptography/keypair.js.map +7 -0
  526. package/dist/esm/cryptography/mnemonics.d.ts +27 -0
  527. package/dist/esm/cryptography/mnemonics.js +27 -0
  528. package/dist/esm/cryptography/mnemonics.js.map +7 -0
  529. package/dist/esm/cryptography/publickey.d.ts +67 -0
  530. package/dist/esm/cryptography/publickey.js +120 -0
  531. package/dist/esm/cryptography/publickey.js.map +7 -0
  532. package/dist/esm/cryptography/signature-scheme.d.ts +24 -0
  533. package/dist/esm/cryptography/signature-scheme.js +28 -0
  534. package/dist/esm/cryptography/signature-scheme.js.map +7 -0
  535. package/dist/esm/cryptography/signature.d.ts +65 -0
  536. package/dist/esm/cryptography/signature.js +51 -0
  537. package/dist/esm/cryptography/signature.js.map +7 -0
  538. package/dist/esm/experimental/cache.d.ts +12 -0
  539. package/dist/esm/experimental/cache.js +68 -0
  540. package/dist/esm/experimental/cache.js.map +7 -0
  541. package/dist/esm/experimental/client.d.ts +12 -0
  542. package/dist/esm/experimental/client.js +26 -0
  543. package/dist/esm/experimental/client.js.map +7 -0
  544. package/dist/esm/experimental/core.d.ts +37 -0
  545. package/dist/esm/experimental/core.js +94 -0
  546. package/dist/esm/experimental/core.js.map +7 -0
  547. package/dist/esm/experimental/errors.d.ts +8 -0
  548. package/dist/esm/experimental/errors.js +34 -0
  549. package/dist/esm/experimental/errors.js.map +7 -0
  550. package/dist/esm/experimental/index.d.ts +7 -0
  551. package/dist/esm/experimental/index.js +12 -0
  552. package/dist/esm/experimental/index.js.map +7 -0
  553. package/dist/esm/experimental/mvr.d.ts +42 -0
  554. package/dist/esm/experimental/mvr.js +350 -0
  555. package/dist/esm/experimental/mvr.js.map +7 -0
  556. package/dist/esm/experimental/transports/utils.d.ts +3 -0
  557. package/dist/esm/experimental/transports/utils.js +81 -0
  558. package/dist/esm/experimental/transports/utils.js.map +7 -0
  559. package/dist/esm/experimental/types.d.ts +434 -0
  560. package/dist/esm/experimental/types.js +1 -0
  561. package/dist/esm/experimental/types.js.map +7 -0
  562. package/dist/esm/faucet/faucet.d.ts +65 -0
  563. package/dist/esm/faucet/faucet.js +110 -0
  564. package/dist/esm/faucet/faucet.js.map +7 -0
  565. package/dist/esm/faucet/index.d.ts +1 -0
  566. package/dist/esm/faucet/index.js +17 -0
  567. package/dist/esm/faucet/index.js.map +7 -0
  568. package/dist/esm/graphql/client.d.ts +50 -0
  569. package/dist/esm/graphql/client.js +74 -0
  570. package/dist/esm/graphql/client.js.map +7 -0
  571. package/dist/esm/graphql/core.d.ts +32 -0
  572. package/dist/esm/graphql/core.js +469 -0
  573. package/dist/esm/graphql/core.js.map +7 -0
  574. package/dist/esm/graphql/generated/2024.1/tada-env.d.ts +11380 -0
  575. package/dist/esm/graphql/generated/2024.1/tada-env.js +13122 -0
  576. package/dist/esm/graphql/generated/2024.1/tada-env.js.map +7 -0
  577. package/dist/esm/graphql/generated/2024.1/tsconfig.tada.js +17 -0
  578. package/dist/esm/graphql/generated/2024.1/tsconfig.tada.js.map +7 -0
  579. package/dist/esm/graphql/generated/2024.4/tada-env.d.ts +11496 -0
  580. package/dist/esm/graphql/generated/2024.4/tada-env.js +13268 -0
  581. package/dist/esm/graphql/generated/2024.4/tada-env.js.map +7 -0
  582. package/dist/esm/graphql/generated/2024.4/tsconfig.tada.js +17 -0
  583. package/dist/esm/graphql/generated/2024.4/tsconfig.tada.js.map +7 -0
  584. package/dist/esm/graphql/generated/latest/tada-env.d.ts +11128 -0
  585. package/dist/esm/graphql/generated/latest/tada-env.js +12906 -0
  586. package/dist/esm/graphql/generated/latest/tada-env.js.map +7 -0
  587. package/dist/esm/graphql/generated/latest/tsconfig.tada.js +17 -0
  588. package/dist/esm/graphql/generated/latest/tsconfig.tada.js.map +7 -0
  589. package/dist/esm/graphql/generated/queries.d.ts +4980 -0
  590. package/dist/esm/graphql/generated/queries.js +783 -0
  591. package/dist/esm/graphql/generated/queries.js.map +7 -0
  592. package/dist/esm/graphql/index.d.ts +1 -0
  593. package/dist/esm/graphql/index.js +9 -0
  594. package/dist/esm/graphql/index.js.map +7 -0
  595. package/dist/esm/graphql/schemas/2024.1/index.d.ts +10 -0
  596. package/dist/esm/graphql/schemas/2024.1/index.js +9 -0
  597. package/dist/esm/graphql/schemas/2024.1/index.js.map +7 -0
  598. package/dist/esm/graphql/schemas/2024.4/index.d.ts +10 -0
  599. package/dist/esm/graphql/schemas/2024.4/index.js +9 -0
  600. package/dist/esm/graphql/schemas/2024.4/index.js.map +7 -0
  601. package/dist/esm/graphql/schemas/latest/index.d.ts +10 -0
  602. package/dist/esm/graphql/schemas/latest/index.js +9 -0
  603. package/dist/esm/graphql/schemas/latest/index.js.map +7 -0
  604. package/dist/esm/graphql/types.d.ts +71 -0
  605. package/dist/esm/graphql/types.js +1 -0
  606. package/dist/esm/graphql/types.js.map +7 -0
  607. package/dist/esm/grpc/client.d.ts +33 -0
  608. package/dist/esm/grpc/client.js +33 -0
  609. package/dist/esm/grpc/client.js.map +7 -0
  610. package/dist/esm/grpc/core.d.ts +30 -0
  611. package/dist/esm/grpc/core.js +640 -0
  612. package/dist/esm/grpc/core.js.map +7 -0
  613. package/dist/esm/grpc/index.d.ts +4 -0
  614. package/dist/esm/grpc/index.js +7 -0
  615. package/dist/esm/grpc/index.js.map +7 -0
  616. package/dist/esm/grpc/proto/google/protobuf/any.d.ts +173 -0
  617. package/dist/esm/grpc/proto/google/protobuf/any.js +119 -0
  618. package/dist/esm/grpc/proto/google/protobuf/any.js.map +7 -0
  619. package/dist/esm/grpc/proto/google/protobuf/duration.d.ts +104 -0
  620. package/dist/esm/grpc/proto/google/protobuf/duration.js +68 -0
  621. package/dist/esm/grpc/proto/google/protobuf/duration.js.map +7 -0
  622. package/dist/esm/grpc/proto/google/protobuf/empty.d.ts +25 -0
  623. package/dist/esm/grpc/proto/google/protobuf/empty.js +11 -0
  624. package/dist/esm/grpc/proto/google/protobuf/empty.js.map +7 -0
  625. package/dist/esm/grpc/proto/google/protobuf/field_mask.d.ts +231 -0
  626. package/dist/esm/grpc/proto/google/protobuf/field_mask.js +53 -0
  627. package/dist/esm/grpc/proto/google/protobuf/field_mask.js.map +7 -0
  628. package/dist/esm/grpc/proto/google/protobuf/struct.d.ts +169 -0
  629. package/dist/esm/grpc/proto/google/protobuf/struct.js +179 -0
  630. package/dist/esm/grpc/proto/google/protobuf/struct.js.map +7 -0
  631. package/dist/esm/grpc/proto/google/protobuf/timestamp.d.ts +145 -0
  632. package/dist/esm/grpc/proto/google/protobuf/timestamp.js +103 -0
  633. package/dist/esm/grpc/proto/google/protobuf/timestamp.js.map +7 -0
  634. package/dist/esm/grpc/proto/google/rpc/error_details.d.ts +525 -0
  635. package/dist/esm/grpc/proto/google/rpc/error_details.js +312 -0
  636. package/dist/esm/grpc/proto/google/rpc/error_details.js.map +7 -0
  637. package/dist/esm/grpc/proto/google/rpc/status.d.ts +46 -0
  638. package/dist/esm/grpc/proto/google/rpc/status.js +28 -0
  639. package/dist/esm/grpc/proto/google/rpc/status.js.map +7 -0
  640. package/dist/esm/grpc/proto/haneul/rpc/v2/argument.d.ts +66 -0
  641. package/dist/esm/grpc/proto/haneul/rpc/v2/argument.js +51 -0
  642. package/dist/esm/grpc/proto/haneul/rpc/v2/argument.js.map +7 -0
  643. package/dist/esm/grpc/proto/haneul/rpc/v2/balance_change.d.ts +34 -0
  644. package/dist/esm/grpc/proto/haneul/rpc/v2/balance_change.js +36 -0
  645. package/dist/esm/grpc/proto/haneul/rpc/v2/balance_change.js.map +7 -0
  646. package/dist/esm/grpc/proto/haneul/rpc/v2/bcs.d.ts +30 -0
  647. package/dist/esm/grpc/proto/haneul/rpc/v2/bcs.js +28 -0
  648. package/dist/esm/grpc/proto/haneul/rpc/v2/bcs.js.map +7 -0
  649. package/dist/esm/grpc/proto/haneul/rpc/v2/checkpoint.d.ts +68 -0
  650. package/dist/esm/grpc/proto/haneul/rpc/v2/checkpoint.js +44 -0
  651. package/dist/esm/grpc/proto/haneul/rpc/v2/checkpoint.js.map +7 -0
  652. package/dist/esm/grpc/proto/haneul/rpc/v2/checkpoint_contents.d.ts +74 -0
  653. package/dist/esm/grpc/proto/haneul/rpc/v2/checkpoint_contents.js +69 -0
  654. package/dist/esm/grpc/proto/haneul/rpc/v2/checkpoint_contents.js.map +7 -0
  655. package/dist/esm/grpc/proto/haneul/rpc/v2/checkpoint_summary.d.ts +195 -0
  656. package/dist/esm/grpc/proto/haneul/rpc/v2/checkpoint_summary.js +145 -0
  657. package/dist/esm/grpc/proto/haneul/rpc/v2/checkpoint_summary.js.map +7 -0
  658. package/dist/esm/grpc/proto/haneul/rpc/v2/effects.d.ts +338 -0
  659. package/dist/esm/grpc/proto/haneul/rpc/v2/effects.js +274 -0
  660. package/dist/esm/grpc/proto/haneul/rpc/v2/effects.js.map +7 -0
  661. package/dist/esm/grpc/proto/haneul/rpc/v2/epoch.d.ts +62 -0
  662. package/dist/esm/grpc/proto/haneul/rpc/v2/epoch.js +53 -0
  663. package/dist/esm/grpc/proto/haneul/rpc/v2/epoch.js.map +7 -0
  664. package/dist/esm/grpc/proto/haneul/rpc/v2/error_reason.d.ts +17 -0
  665. package/dist/esm/grpc/proto/haneul/rpc/v2/error_reason.js +10 -0
  666. package/dist/esm/grpc/proto/haneul/rpc/v2/error_reason.js.map +7 -0
  667. package/dist/esm/grpc/proto/haneul/rpc/v2/event.d.ts +88 -0
  668. package/dist/esm/grpc/proto/haneul/rpc/v2/event.js +66 -0
  669. package/dist/esm/grpc/proto/haneul/rpc/v2/event.js.map +7 -0
  670. package/dist/esm/grpc/proto/haneul/rpc/v2/executed_transaction.d.ts +80 -0
  671. package/dist/esm/grpc/proto/haneul/rpc/v2/executed_transaction.js +54 -0
  672. package/dist/esm/grpc/proto/haneul/rpc/v2/executed_transaction.js.map +7 -0
  673. package/dist/esm/grpc/proto/haneul/rpc/v2/execution_status.d.ts +843 -0
  674. package/dist/esm/grpc/proto/haneul/rpc/v2/execution_status.js +493 -0
  675. package/dist/esm/grpc/proto/haneul/rpc/v2/execution_status.js.map +7 -0
  676. package/dist/esm/grpc/proto/haneul/rpc/v2/gas_cost_summary.d.ts +41 -0
  677. package/dist/esm/grpc/proto/haneul/rpc/v2/gas_cost_summary.js +44 -0
  678. package/dist/esm/grpc/proto/haneul/rpc/v2/gas_cost_summary.js.map +7 -0
  679. package/dist/esm/grpc/proto/haneul/rpc/v2/input.d.ts +98 -0
  680. package/dist/esm/grpc/proto/haneul/rpc/v2/input.js +70 -0
  681. package/dist/esm/grpc/proto/haneul/rpc/v2/input.js.map +7 -0
  682. package/dist/esm/grpc/proto/haneul/rpc/v2/jwk.d.ts +70 -0
  683. package/dist/esm/grpc/proto/haneul/rpc/v2/jwk.js +68 -0
  684. package/dist/esm/grpc/proto/haneul/rpc/v2/jwk.js.map +7 -0
  685. package/dist/esm/grpc/proto/haneul/rpc/v2/ledger_service.client.d.ts +95 -0
  686. package/dist/esm/grpc/proto/haneul/rpc/v2/ledger_service.client.js +107 -0
  687. package/dist/esm/grpc/proto/haneul/rpc/v2/ledger_service.client.js.map +7 -0
  688. package/dist/esm/grpc/proto/haneul/rpc/v2/ledger_service.d.ts +420 -0
  689. package/dist/esm/grpc/proto/haneul/rpc/v2/ledger_service.js +307 -0
  690. package/dist/esm/grpc/proto/haneul/rpc/v2/ledger_service.js.map +7 -0
  691. package/dist/esm/grpc/proto/haneul/rpc/v2/move_package.d.ts +579 -0
  692. package/dist/esm/grpc/proto/haneul/rpc/v2/move_package.js +460 -0
  693. package/dist/esm/grpc/proto/haneul/rpc/v2/move_package.js.map +7 -0
  694. package/dist/esm/grpc/proto/haneul/rpc/v2/move_package_service.client.d.ts +61 -0
  695. package/dist/esm/grpc/proto/haneul/rpc/v2/move_package_service.client.js +66 -0
  696. package/dist/esm/grpc/proto/haneul/rpc/v2/move_package_service.client.js.map +7 -0
  697. package/dist/esm/grpc/proto/haneul/rpc/v2/move_package_service.d.ts +229 -0
  698. package/dist/esm/grpc/proto/haneul/rpc/v2/move_package_service.js +206 -0
  699. package/dist/esm/grpc/proto/haneul/rpc/v2/move_package_service.js.map +7 -0
  700. package/dist/esm/grpc/proto/haneul/rpc/v2/name_service.client.d.ts +41 -0
  701. package/dist/esm/grpc/proto/haneul/rpc/v2/name_service.client.js +40 -0
  702. package/dist/esm/grpc/proto/haneul/rpc/v2/name_service.client.js.map +7 -0
  703. package/dist/esm/grpc/proto/haneul/rpc/v2/name_service.d.ts +144 -0
  704. package/dist/esm/grpc/proto/haneul/rpc/v2/name_service.js +118 -0
  705. package/dist/esm/grpc/proto/haneul/rpc/v2/name_service.js.map +7 -0
  706. package/dist/esm/grpc/proto/haneul/rpc/v2/object.d.ts +127 -0
  707. package/dist/esm/grpc/proto/haneul/rpc/v2/object.js +93 -0
  708. package/dist/esm/grpc/proto/haneul/rpc/v2/object.js.map +7 -0
  709. package/dist/esm/grpc/proto/haneul/rpc/v2/object_reference.d.ts +34 -0
  710. package/dist/esm/grpc/proto/haneul/rpc/v2/object_reference.js +36 -0
  711. package/dist/esm/grpc/proto/haneul/rpc/v2/object_reference.js.map +7 -0
  712. package/dist/esm/grpc/proto/haneul/rpc/v2/owner.d.ts +61 -0
  713. package/dist/esm/grpc/proto/haneul/rpc/v2/owner.js +45 -0
  714. package/dist/esm/grpc/proto/haneul/rpc/v2/owner.js.map +7 -0
  715. package/dist/esm/grpc/proto/haneul/rpc/v2/protocol_config.d.ts +30 -0
  716. package/dist/esm/grpc/proto/haneul/rpc/v2/protocol_config.js +42 -0
  717. package/dist/esm/grpc/proto/haneul/rpc/v2/protocol_config.js.map +7 -0
  718. package/dist/esm/grpc/proto/haneul/rpc/v2/signature.d.ts +630 -0
  719. package/dist/esm/grpc/proto/haneul/rpc/v2/signature.js +494 -0
  720. package/dist/esm/grpc/proto/haneul/rpc/v2/signature.js.map +7 -0
  721. package/dist/esm/grpc/proto/haneul/rpc/v2/signature_scheme.d.ts +40 -0
  722. package/dist/esm/grpc/proto/haneul/rpc/v2/signature_scheme.js +14 -0
  723. package/dist/esm/grpc/proto/haneul/rpc/v2/signature_scheme.js.map +7 -0
  724. package/dist/esm/grpc/proto/haneul/rpc/v2/signature_verification_service.client.d.ts +35 -0
  725. package/dist/esm/grpc/proto/haneul/rpc/v2/signature_verification_service.client.js +29 -0
  726. package/dist/esm/grpc/proto/haneul/rpc/v2/signature_verification_service.client.js.map +7 -0
  727. package/dist/esm/grpc/proto/haneul/rpc/v2/signature_verification_service.d.ts +79 -0
  728. package/dist/esm/grpc/proto/haneul/rpc/v2/signature_verification_service.js +56 -0
  729. package/dist/esm/grpc/proto/haneul/rpc/v2/signature_verification_service.js.map +7 -0
  730. package/dist/esm/grpc/proto/haneul/rpc/v2/state_service.client.d.ts +71 -0
  731. package/dist/esm/grpc/proto/haneul/rpc/v2/state_service.client.js +79 -0
  732. package/dist/esm/grpc/proto/haneul/rpc/v2/state_service.client.js.map +7 -0
  733. package/dist/esm/grpc/proto/haneul/rpc/v2/state_service.d.ts +690 -0
  734. package/dist/esm/grpc/proto/haneul/rpc/v2/state_service.js +526 -0
  735. package/dist/esm/grpc/proto/haneul/rpc/v2/state_service.js.map +7 -0
  736. package/dist/esm/grpc/proto/haneul/rpc/v2/subscription_service.client.d.ts +55 -0
  737. package/dist/esm/grpc/proto/haneul/rpc/v2/subscription_service.client.js +39 -0
  738. package/dist/esm/grpc/proto/haneul/rpc/v2/subscription_service.client.js.map +7 -0
  739. package/dist/esm/grpc/proto/haneul/rpc/v2/subscription_service.d.ts +57 -0
  740. package/dist/esm/grpc/proto/haneul/rpc/v2/subscription_service.js +43 -0
  741. package/dist/esm/grpc/proto/haneul/rpc/v2/subscription_service.js.map +7 -0
  742. package/dist/esm/grpc/proto/haneul/rpc/v2/system_state.d.ts +684 -0
  743. package/dist/esm/grpc/proto/haneul/rpc/v2/system_state.js +654 -0
  744. package/dist/esm/grpc/proto/haneul/rpc/v2/system_state.js.map +7 -0
  745. package/dist/esm/grpc/proto/haneul/rpc/v2/transaction.d.ts +1321 -0
  746. package/dist/esm/grpc/proto/haneul/rpc/v2/transaction.js +911 -0
  747. package/dist/esm/grpc/proto/haneul/rpc/v2/transaction.js.map +7 -0
  748. package/dist/esm/grpc/proto/haneul/rpc/v2/transaction_execution_service.client.d.ts +41 -0
  749. package/dist/esm/grpc/proto/haneul/rpc/v2/transaction_execution_service.client.js +40 -0
  750. package/dist/esm/grpc/proto/haneul/rpc/v2/transaction_execution_service.client.js.map +7 -0
  751. package/dist/esm/grpc/proto/haneul/rpc/v2/transaction_execution_service.d.ts +184 -0
  752. package/dist/esm/grpc/proto/haneul/rpc/v2/transaction_execution_service.js +139 -0
  753. package/dist/esm/grpc/proto/haneul/rpc/v2/transaction_execution_service.js.map +7 -0
  754. package/dist/esm/jsonRpc/client.d.ts +264 -0
  755. package/dist/esm/jsonRpc/client.js +818 -0
  756. package/dist/esm/jsonRpc/client.js.map +7 -0
  757. package/dist/esm/jsonRpc/core.d.ts +93 -0
  758. package/dist/esm/jsonRpc/core.js +624 -0
  759. package/dist/esm/jsonRpc/core.js.map +7 -0
  760. package/dist/esm/jsonRpc/errors.d.ts +12 -0
  761. package/dist/esm/jsonRpc/errors.js +40 -0
  762. package/dist/esm/jsonRpc/errors.js.map +7 -0
  763. package/dist/esm/jsonRpc/http-transport.d.ts +42 -0
  764. package/dist/esm/jsonRpc/http-transport.js +99 -0
  765. package/dist/esm/jsonRpc/http-transport.js.map +7 -0
  766. package/dist/esm/jsonRpc/index.d.ts +4 -0
  767. package/dist/esm/jsonRpc/index.js +17 -0
  768. package/dist/esm/jsonRpc/index.js.map +7 -0
  769. package/dist/esm/jsonRpc/json-rpc-resolver.d.ts +4 -0
  770. package/dist/esm/jsonRpc/json-rpc-resolver.js +295 -0
  771. package/dist/esm/jsonRpc/json-rpc-resolver.js.map +7 -0
  772. package/dist/esm/jsonRpc/rpc-websocket-client.d.ts +43 -0
  773. package/dist/esm/jsonRpc/rpc-websocket-client.js +174 -0
  774. package/dist/esm/jsonRpc/rpc-websocket-client.js.map +7 -0
  775. package/dist/esm/jsonRpc/types/chain.d.ts +99 -0
  776. package/dist/esm/jsonRpc/types/chain.js +1 -0
  777. package/dist/esm/jsonRpc/types/chain.js.map +7 -0
  778. package/dist/esm/jsonRpc/types/changes.d.ts +19 -0
  779. package/dist/esm/jsonRpc/types/changes.js +1 -0
  780. package/dist/esm/jsonRpc/types/changes.js.map +7 -0
  781. package/dist/esm/jsonRpc/types/coins.d.ts +6 -0
  782. package/dist/esm/jsonRpc/types/coins.js +1 -0
  783. package/dist/esm/jsonRpc/types/coins.js.map +7 -0
  784. package/dist/esm/jsonRpc/types/common.d.ts +2 -0
  785. package/dist/esm/jsonRpc/types/common.js +1 -0
  786. package/dist/esm/jsonRpc/types/common.js.map +7 -0
  787. package/dist/esm/jsonRpc/types/generated.d.ts +1492 -0
  788. package/dist/esm/jsonRpc/types/generated.js +1 -0
  789. package/dist/esm/jsonRpc/types/generated.js.map +7 -0
  790. package/dist/esm/jsonRpc/types/index.d.ts +6 -0
  791. package/dist/esm/jsonRpc/types/index.js +1 -0
  792. package/dist/esm/jsonRpc/types/index.js.map +7 -0
  793. package/dist/esm/jsonRpc/types/params.d.ts +656 -0
  794. package/dist/esm/jsonRpc/types/params.js +1 -0
  795. package/dist/esm/jsonRpc/types/params.js.map +7 -0
  796. package/dist/esm/keypairs/ed25519/ed25519-hd-key.d.ts +8 -0
  797. package/dist/esm/keypairs/ed25519/ed25519-hd-key.js +57 -0
  798. package/dist/esm/keypairs/ed25519/ed25519-hd-key.js.map +7 -0
  799. package/dist/esm/keypairs/ed25519/index.d.ts +2 -0
  800. package/dist/esm/keypairs/ed25519/index.js +11 -0
  801. package/dist/esm/keypairs/ed25519/index.js.map +7 -0
  802. package/dist/esm/keypairs/ed25519/keypair.d.ts +74 -0
  803. package/dist/esm/keypairs/ed25519/keypair.js +147 -0
  804. package/dist/esm/keypairs/ed25519/keypair.js.map +7 -0
  805. package/dist/esm/keypairs/ed25519/publickey.d.ts +30 -0
  806. package/dist/esm/keypairs/ed25519/publickey.js +72 -0
  807. package/dist/esm/keypairs/ed25519/publickey.js.map +7 -0
  808. package/dist/esm/keypairs/passkey/index.d.ts +3 -0
  809. package/dist/esm/keypairs/passkey/index.js +9 -0
  810. package/dist/esm/keypairs/passkey/index.js.map +7 -0
  811. package/dist/esm/keypairs/passkey/keypair.d.ts +113 -0
  812. package/dist/esm/keypairs/passkey/keypair.js +236 -0
  813. package/dist/esm/keypairs/passkey/keypair.js.map +7 -0
  814. package/dist/esm/keypairs/passkey/publickey.d.ts +72 -0
  815. package/dist/esm/keypairs/passkey/publickey.js +148 -0
  816. package/dist/esm/keypairs/passkey/publickey.js.map +7 -0
  817. package/dist/esm/keypairs/passkey/types.d.ts +12 -0
  818. package/dist/esm/keypairs/passkey/types.js +1 -0
  819. package/dist/esm/keypairs/passkey/types.js.map +7 -0
  820. package/dist/esm/keypairs/secp256k1/index.d.ts +2 -0
  821. package/dist/esm/keypairs/secp256k1/index.js +11 -0
  822. package/dist/esm/keypairs/secp256k1/index.js.map +7 -0
  823. package/dist/esm/keypairs/secp256k1/keypair.d.ts +73 -0
  824. package/dist/esm/keypairs/secp256k1/keypair.js +130 -0
  825. package/dist/esm/keypairs/secp256k1/keypair.js.map +7 -0
  826. package/dist/esm/keypairs/secp256k1/publickey.d.ts +30 -0
  827. package/dist/esm/keypairs/secp256k1/publickey.js +77 -0
  828. package/dist/esm/keypairs/secp256k1/publickey.js.map +7 -0
  829. package/dist/esm/keypairs/secp256r1/index.d.ts +2 -0
  830. package/dist/esm/keypairs/secp256r1/index.js +11 -0
  831. package/dist/esm/keypairs/secp256r1/index.js.map +7 -0
  832. package/dist/esm/keypairs/secp256r1/keypair.d.ts +73 -0
  833. package/dist/esm/keypairs/secp256r1/keypair.js +124 -0
  834. package/dist/esm/keypairs/secp256r1/keypair.js.map +7 -0
  835. package/dist/esm/keypairs/secp256r1/publickey.d.ts +30 -0
  836. package/dist/esm/keypairs/secp256r1/publickey.js +74 -0
  837. package/dist/esm/keypairs/secp256r1/publickey.js.map +7 -0
  838. package/dist/esm/multisig/index.d.ts +2 -0
  839. package/dist/esm/multisig/index.js +8 -0
  840. package/dist/esm/multisig/index.js.map +7 -0
  841. package/dist/esm/multisig/publickey.d.ts +114 -0
  842. package/dist/esm/multisig/publickey.js +243 -0
  843. package/dist/esm/multisig/publickey.js.map +7 -0
  844. package/dist/esm/multisig/signer.d.ts +20 -0
  845. package/dist/esm/multisig/signer.js +85 -0
  846. package/dist/esm/multisig/signer.js.map +7 -0
  847. package/dist/esm/package.json +5 -0
  848. package/dist/esm/transactions/Arguments.d.ts +49 -0
  849. package/dist/esm/transactions/Arguments.js +13 -0
  850. package/dist/esm/transactions/Arguments.js.map +7 -0
  851. package/dist/esm/transactions/Commands.d.ts +57 -0
  852. package/dist/esm/transactions/Commands.js +120 -0
  853. package/dist/esm/transactions/Commands.js.map +7 -0
  854. package/dist/esm/transactions/Inputs.d.ts +22 -0
  855. package/dist/esm/transactions/Inputs.js +60 -0
  856. package/dist/esm/transactions/Inputs.js.map +7 -0
  857. package/dist/esm/transactions/ObjectCache.d.ts +83 -0
  858. package/dist/esm/transactions/ObjectCache.js +221 -0
  859. package/dist/esm/transactions/ObjectCache.js.map +7 -0
  860. package/dist/esm/transactions/Transaction.d.ts +710 -0
  861. package/dist/esm/transactions/Transaction.js +668 -0
  862. package/dist/esm/transactions/Transaction.js.map +7 -0
  863. package/dist/esm/transactions/TransactionData.d.ts +73 -0
  864. package/dist/esm/transactions/TransactionData.js +413 -0
  865. package/dist/esm/transactions/TransactionData.js.map +7 -0
  866. package/dist/esm/transactions/__tests__/Transaction.test.d.ts +1 -0
  867. package/dist/esm/transactions/__tests__/bcs.test.d.ts +1 -0
  868. package/dist/esm/transactions/data/internal.d.ts +1010 -0
  869. package/dist/esm/transactions/data/internal.js +215 -0
  870. package/dist/esm/transactions/data/internal.js.map +7 -0
  871. package/dist/esm/transactions/data/v1.d.ts +312 -0
  872. package/dist/esm/transactions/data/v1.js +481 -0
  873. package/dist/esm/transactions/data/v1.js.map +7 -0
  874. package/dist/esm/transactions/data/v2.d.ts +153 -0
  875. package/dist/esm/transactions/data/v2.js +121 -0
  876. package/dist/esm/transactions/data/v2.js.map +7 -0
  877. package/dist/esm/transactions/executor/caching.d.ts +31 -0
  878. package/dist/esm/transactions/executor/caching.js +94 -0
  879. package/dist/esm/transactions/executor/caching.js.map +7 -0
  880. package/dist/esm/transactions/executor/parallel.d.ts +37 -0
  881. package/dist/esm/transactions/executor/parallel.js +360 -0
  882. package/dist/esm/transactions/executor/parallel.js.map +7 -0
  883. package/dist/esm/transactions/executor/queue.d.ts +11 -0
  884. package/dist/esm/transactions/executor/queue.js +65 -0
  885. package/dist/esm/transactions/executor/queue.js.map +7 -0
  886. package/dist/esm/transactions/executor/serial.d.ts +31 -0
  887. package/dist/esm/transactions/executor/serial.js +117 -0
  888. package/dist/esm/transactions/executor/serial.js.map +7 -0
  889. package/dist/esm/transactions/hash.d.ts +7 -0
  890. package/dist/esm/transactions/hash.js +12 -0
  891. package/dist/esm/transactions/hash.js.map +7 -0
  892. package/dist/esm/transactions/index.d.ts +21 -0
  893. package/dist/esm/transactions/index.js +39 -0
  894. package/dist/esm/transactions/index.js.map +7 -0
  895. package/dist/esm/transactions/intents/CoinWithBalance.d.ts +9 -0
  896. package/dist/esm/transactions/intents/CoinWithBalance.js +168 -0
  897. package/dist/esm/transactions/intents/CoinWithBalance.js.map +7 -0
  898. package/dist/esm/transactions/object.d.ts +16 -0
  899. package/dist/esm/transactions/object.js +58 -0
  900. package/dist/esm/transactions/object.js.map +7 -0
  901. package/dist/esm/transactions/plugins/NamedPackagesPlugin.d.ts +48 -0
  902. package/dist/esm/transactions/plugins/NamedPackagesPlugin.js +47 -0
  903. package/dist/esm/transactions/plugins/NamedPackagesPlugin.js.map +7 -0
  904. package/dist/esm/transactions/pure.d.ts +20 -0
  905. package/dist/esm/transactions/pure.js +37 -0
  906. package/dist/esm/transactions/pure.js.map +7 -0
  907. package/dist/esm/transactions/resolve.d.ts +13 -0
  908. package/dist/esm/transactions/resolve.js +78 -0
  909. package/dist/esm/transactions/resolve.js.map +7 -0
  910. package/dist/esm/transactions/serializer.d.ts +7 -0
  911. package/dist/esm/transactions/serializer.js +162 -0
  912. package/dist/esm/transactions/serializer.js.map +7 -0
  913. package/dist/esm/transactions/utils.d.ts +10 -0
  914. package/dist/esm/transactions/utils.js +115 -0
  915. package/dist/esm/transactions/utils.js.map +7 -0
  916. package/dist/esm/utils/constants.d.ts +10 -0
  917. package/dist/esm/utils/constants.js +24 -0
  918. package/dist/esm/utils/constants.js.map +7 -0
  919. package/dist/esm/utils/derived-objects.d.ts +5 -0
  920. package/dist/esm/utils/derived-objects.js +14 -0
  921. package/dist/esm/utils/derived-objects.js.map +7 -0
  922. package/dist/esm/utils/dynamic-fields.d.ts +2 -0
  923. package/dist/esm/utils/dynamic-fields.js +21 -0
  924. package/dist/esm/utils/dynamic-fields.js.map +7 -0
  925. package/dist/esm/utils/format.d.ts +2 -0
  926. package/dist/esm/utils/format.js +16 -0
  927. package/dist/esm/utils/format.js.map +7 -0
  928. package/dist/esm/utils/haneul-types.d.ts +26 -0
  929. package/dist/esm/utils/haneul-types.js +71 -0
  930. package/dist/esm/utils/haneul-types.js.map +7 -0
  931. package/dist/esm/utils/haneulns.d.ts +2 -0
  932. package/dist/esm/utils/haneulns.js +37 -0
  933. package/dist/esm/utils/haneulns.js.map +7 -0
  934. package/dist/esm/utils/index.d.ts +9 -0
  935. package/dist/esm/utils/index.js +80 -0
  936. package/dist/esm/utils/index.js.map +7 -0
  937. package/dist/esm/utils/move-registry.d.ts +6 -0
  938. package/dist/esm/utils/move-registry.js +25 -0
  939. package/dist/esm/utils/move-registry.js.map +7 -0
  940. package/dist/esm/verify/index.d.ts +1 -0
  941. package/dist/esm/verify/index.js +15 -0
  942. package/dist/esm/verify/index.js.map +7 -0
  943. package/dist/esm/verify/verify.d.ts +21 -0
  944. package/dist/esm/verify/verify.js +104 -0
  945. package/dist/esm/verify/verify.js.map +7 -0
  946. package/dist/esm/version.d.ts +2 -0
  947. package/dist/esm/version.js +7 -0
  948. package/dist/esm/version.js.map +7 -0
  949. package/dist/esm/zklogin/address.d.ts +16 -0
  950. package/dist/esm/zklogin/address.js +72 -0
  951. package/dist/esm/zklogin/address.js.map +7 -0
  952. package/dist/esm/zklogin/bcs.d.ts +28 -0
  953. package/dist/esm/zklogin/bcs.js +22 -0
  954. package/dist/esm/zklogin/bcs.js.map +7 -0
  955. package/dist/esm/zklogin/index.d.ts +9 -0
  956. package/dist/esm/zklogin/index.js +35 -0
  957. package/dist/esm/zklogin/index.js.map +7 -0
  958. package/dist/esm/zklogin/jwt-decode.d.ts +47 -0
  959. package/dist/esm/zklogin/jwt-decode.js +65 -0
  960. package/dist/esm/zklogin/jwt-decode.js.map +7 -0
  961. package/dist/esm/zklogin/jwt-utils.d.ts +12 -0
  962. package/dist/esm/zklogin/jwt-utils.js +101 -0
  963. package/dist/esm/zklogin/jwt-utils.js.map +7 -0
  964. package/dist/esm/zklogin/nonce.d.ts +4 -0
  965. package/dist/esm/zklogin/nonce.js +34 -0
  966. package/dist/esm/zklogin/nonce.js.map +7 -0
  967. package/dist/esm/zklogin/poseidon.d.ts +2 -0
  968. package/dist/esm/zklogin/poseidon.js +60 -0
  969. package/dist/esm/zklogin/poseidon.js.map +7 -0
  970. package/dist/esm/zklogin/publickey.d.ts +87 -0
  971. package/dist/esm/zklogin/publickey.js +237 -0
  972. package/dist/esm/zklogin/publickey.js.map +7 -0
  973. package/dist/esm/zklogin/signature.d.ts +23 -0
  974. package/dist/esm/zklogin/signature.js +28 -0
  975. package/dist/esm/zklogin/signature.js.map +7 -0
  976. package/dist/esm/zklogin/utils.d.ts +16 -0
  977. package/dist/esm/zklogin/utils.js +77 -0
  978. package/dist/esm/zklogin/utils.js.map +7 -0
  979. package/dist/tsconfig.esm.tsbuildinfo +1 -0
  980. package/dist/tsconfig.tsbuildinfo +1 -0
  981. package/experimental/package.json +6 -0
  982. package/faucet/package.json +6 -0
  983. package/graphql/package.json +6 -0
  984. package/graphql/schemas/2024.1/package.json +6 -0
  985. package/graphql/schemas/2024.4/package.json +6 -0
  986. package/graphql/schemas/latest/package.json +6 -0
  987. package/grpc/package.json +6 -0
  988. package/jsonRpc/package.json +6 -0
  989. package/keypairs/ed25519/package.json +6 -0
  990. package/keypairs/passkey/package.json +6 -0
  991. package/keypairs/secp256k1/package.json +6 -0
  992. package/keypairs/secp256r1/package.json +6 -0
  993. package/multisig/package.json +6 -0
  994. package/package.json +196 -0
  995. package/src/bcs/bcs.ts +321 -0
  996. package/src/bcs/effects.ts +206 -0
  997. package/src/bcs/index.ts +96 -0
  998. package/src/bcs/pure.ts +92 -0
  999. package/src/bcs/type-tag-serializer.ts +110 -0
  1000. package/src/bcs/types.ts +113 -0
  1001. package/src/client/index.ts +21 -0
  1002. package/src/client/network.ts +17 -0
  1003. package/src/cryptography/index.ts +36 -0
  1004. package/src/cryptography/intent.ts +22 -0
  1005. package/src/cryptography/keypair.ts +157 -0
  1006. package/src/cryptography/mnemonics.ts +49 -0
  1007. package/src/cryptography/publickey.ts +168 -0
  1008. package/src/cryptography/signature-scheme.ts +37 -0
  1009. package/src/cryptography/signature.ts +76 -0
  1010. package/src/experimental/cache.ts +78 -0
  1011. package/src/experimental/client.ts +60 -0
  1012. package/src/experimental/core.ts +197 -0
  1013. package/src/experimental/errors.ts +37 -0
  1014. package/src/experimental/index.ts +24 -0
  1015. package/src/experimental/mvr.ts +488 -0
  1016. package/src/experimental/transports/utils.ts +117 -0
  1017. package/src/experimental/types.ts +569 -0
  1018. package/src/faucet/faucet.ts +189 -0
  1019. package/src/faucet/index.ts +11 -0
  1020. package/src/graphql/client.ts +134 -0
  1021. package/src/graphql/core.ts +629 -0
  1022. package/src/graphql/generated/2024.1/schema.graphql +4182 -0
  1023. package/src/graphql/generated/2024.1/tada-env.ts +13144 -0
  1024. package/src/graphql/generated/2024.1/tsconfig.tada.json +11 -0
  1025. package/src/graphql/generated/2024.4/schema.graphql +4211 -0
  1026. package/src/graphql/generated/2024.4/tada-env.ts +13290 -0
  1027. package/src/graphql/generated/2024.4/tsconfig.tada.json +11 -0
  1028. package/src/graphql/generated/latest/schema.graphql +4312 -0
  1029. package/src/graphql/generated/latest/tada-env.ts +12928 -0
  1030. package/src/graphql/generated/latest/tsconfig.tada.json +11 -0
  1031. package/src/graphql/generated/queries.ts +5391 -0
  1032. package/src/graphql/index.ts +12 -0
  1033. package/src/graphql/queries/getAllBalances.graphql +19 -0
  1034. package/src/graphql/queries/getBalance.graphql +13 -0
  1035. package/src/graphql/queries/getCoins.graphql +37 -0
  1036. package/src/graphql/queries/getDynamicFields.graphql +36 -0
  1037. package/src/graphql/queries/getMoveFunction.graphql +20 -0
  1038. package/src/graphql/queries/getReferenceGasPrice.graphql +8 -0
  1039. package/src/graphql/queries/nameService.graphql +8 -0
  1040. package/src/graphql/queries/objects.graphql +83 -0
  1041. package/src/graphql/queries/transactions.graphql +101 -0
  1042. package/src/graphql/queries/verifyZkLoginSignature.graphql +16 -0
  1043. package/src/graphql/schemas/2024.1/index.ts +17 -0
  1044. package/src/graphql/schemas/2024.4/index.ts +17 -0
  1045. package/src/graphql/schemas/latest/index.ts +17 -0
  1046. package/src/graphql/types.ts +87 -0
  1047. package/src/grpc/client.ts +62 -0
  1048. package/src/grpc/core.ts +757 -0
  1049. package/src/grpc/index.ts +7 -0
  1050. package/src/grpc/proto/google/protobuf/any.ts +296 -0
  1051. package/src/grpc/proto/google/protobuf/duration.ts +187 -0
  1052. package/src/grpc/proto/google/protobuf/empty.ts +64 -0
  1053. package/src/grpc/proto/google/protobuf/field_mask.ts +309 -0
  1054. package/src/grpc/proto/google/protobuf/struct.ts +327 -0
  1055. package/src/grpc/proto/google/protobuf/timestamp.ts +260 -0
  1056. package/src/grpc/proto/google/rpc/error_details.ts +667 -0
  1057. package/src/grpc/proto/google/rpc/status.ts +74 -0
  1058. package/src/grpc/proto/haneul/rpc/v2/argument.ts +90 -0
  1059. package/src/grpc/proto/haneul/rpc/v2/balance_change.ts +51 -0
  1060. package/src/grpc/proto/haneul/rpc/v2/bcs.ts +46 -0
  1061. package/src/grpc/proto/haneul/rpc/v2/checkpoint.ts +102 -0
  1062. package/src/grpc/proto/haneul/rpc/v2/checkpoint_contents.ts +111 -0
  1063. package/src/grpc/proto/haneul/rpc/v2/checkpoint_summary.ts +295 -0
  1064. package/src/grpc/proto/haneul/rpc/v2/effects.ts +491 -0
  1065. package/src/grpc/proto/haneul/rpc/v2/epoch.ts +113 -0
  1066. package/src/grpc/proto/haneul/rpc/v2/error_reason.ts +28 -0
  1067. package/src/grpc/proto/haneul/rpc/v2/event.ts +115 -0
  1068. package/src/grpc/proto/haneul/rpc/v2/executed_transaction.ts +122 -0
  1069. package/src/grpc/proto/haneul/rpc/v2/execution_status.ts +1079 -0
  1070. package/src/grpc/proto/haneul/rpc/v2/gas_cost_summary.ts +87 -0
  1071. package/src/grpc/proto/haneul/rpc/v2/input.ts +132 -0
  1072. package/src/grpc/proto/haneul/rpc/v2/jwk.ts +94 -0
  1073. package/src/grpc/proto/haneul/rpc/v2/ledger_service.client.ts +217 -0
  1074. package/src/grpc/proto/haneul/rpc/v2/ledger_service.ts +625 -0
  1075. package/src/grpc/proto/haneul/rpc/v2/move_package.ts +800 -0
  1076. package/src/grpc/proto/haneul/rpc/v2/move_package_service.client.ts +135 -0
  1077. package/src/grpc/proto/haneul/rpc/v2/move_package_service.ts +315 -0
  1078. package/src/grpc/proto/haneul/rpc/v2/name_service.client.ts +83 -0
  1079. package/src/grpc/proto/haneul/rpc/v2/name_service.ts +198 -0
  1080. package/src/grpc/proto/haneul/rpc/v2/object.ts +186 -0
  1081. package/src/grpc/proto/haneul/rpc/v2/object_reference.ts +58 -0
  1082. package/src/grpc/proto/haneul/rpc/v2/owner.ts +91 -0
  1083. package/src/grpc/proto/haneul/rpc/v2/protocol_config.ts +66 -0
  1084. package/src/grpc/proto/haneul/rpc/v2/signature.ts +864 -0
  1085. package/src/grpc/proto/haneul/rpc/v2/signature_scheme.ts +51 -0
  1086. package/src/grpc/proto/haneul/rpc/v2/signature_verification_service.client.ts +63 -0
  1087. package/src/grpc/proto/haneul/rpc/v2/signature_verification_service.ts +106 -0
  1088. package/src/grpc/proto/haneul/rpc/v2/state_service.client.ts +161 -0
  1089. package/src/grpc/proto/haneul/rpc/v2/state_service.ts +889 -0
  1090. package/src/grpc/proto/haneul/rpc/v2/subscription_service.client.ts +81 -0
  1091. package/src/grpc/proto/haneul/rpc/v2/subscription_service.ts +93 -0
  1092. package/src/grpc/proto/haneul/rpc/v2/system_state.ts +1184 -0
  1093. package/src/grpc/proto/haneul/rpc/v2/transaction.ts +1974 -0
  1094. package/src/grpc/proto/haneul/rpc/v2/transaction_execution_service.client.ts +85 -0
  1095. package/src/grpc/proto/haneul/rpc/v2/transaction_execution_service.ts +282 -0
  1096. package/src/jsonRpc/client.ts +1120 -0
  1097. package/src/jsonRpc/core.ts +711 -0
  1098. package/src/jsonRpc/errors.ts +45 -0
  1099. package/src/jsonRpc/http-transport.ts +143 -0
  1100. package/src/jsonRpc/index.ts +20 -0
  1101. package/src/jsonRpc/json-rpc-resolver.ts +420 -0
  1102. package/src/jsonRpc/rpc-websocket-client.ts +241 -0
  1103. package/src/jsonRpc/types/chain.ts +122 -0
  1104. package/src/jsonRpc/types/changes.ts +11 -0
  1105. package/src/jsonRpc/types/coins.ts +9 -0
  1106. package/src/jsonRpc/types/common.ts +5 -0
  1107. package/src/jsonRpc/types/generated.ts +1639 -0
  1108. package/src/jsonRpc/types/index.ts +9 -0
  1109. package/src/jsonRpc/types/params.ts +660 -0
  1110. package/src/keypairs/ed25519/ed25519-hd-key.ts +83 -0
  1111. package/src/keypairs/ed25519/index.ts +9 -0
  1112. package/src/keypairs/ed25519/keypair.ts +181 -0
  1113. package/src/keypairs/ed25519/publickey.ts +89 -0
  1114. package/src/keypairs/passkey/index.ts +5 -0
  1115. package/src/keypairs/passkey/keypair.ts +306 -0
  1116. package/src/keypairs/passkey/publickey.ts +188 -0
  1117. package/src/keypairs/passkey/types.ts +16 -0
  1118. package/src/keypairs/secp256k1/index.ts +9 -0
  1119. package/src/keypairs/secp256k1/keypair.ts +161 -0
  1120. package/src/keypairs/secp256k1/publickey.ts +94 -0
  1121. package/src/keypairs/secp256r1/index.ts +9 -0
  1122. package/src/keypairs/secp256r1/keypair.ts +157 -0
  1123. package/src/keypairs/secp256r1/publickey.ts +91 -0
  1124. package/src/multisig/index.ts +5 -0
  1125. package/src/multisig/publickey.ts +358 -0
  1126. package/src/multisig/signer.ts +93 -0
  1127. package/src/transactions/Arguments.ts +27 -0
  1128. package/src/transactions/Commands.ts +184 -0
  1129. package/src/transactions/Inputs.ts +68 -0
  1130. package/src/transactions/ObjectCache.ts +300 -0
  1131. package/src/transactions/Transaction.ts +927 -0
  1132. package/src/transactions/TransactionData.ts +560 -0
  1133. package/src/transactions/__tests__/Transaction.test.ts +184 -0
  1134. package/src/transactions/__tests__/bcs.test.ts +205 -0
  1135. package/src/transactions/data/internal.ts +334 -0
  1136. package/src/transactions/data/v1.ts +548 -0
  1137. package/src/transactions/data/v2.ts +148 -0
  1138. package/src/transactions/executor/caching.ts +111 -0
  1139. package/src/transactions/executor/parallel.ts +459 -0
  1140. package/src/transactions/executor/queue.ts +65 -0
  1141. package/src/transactions/executor/serial.ts +145 -0
  1142. package/src/transactions/hash.ts +20 -0
  1143. package/src/transactions/index.ts +62 -0
  1144. package/src/transactions/intents/CoinWithBalance.ts +230 -0
  1145. package/src/transactions/object.ts +68 -0
  1146. package/src/transactions/plugins/NamedPackagesPlugin.ts +111 -0
  1147. package/src/transactions/pure.ts +66 -0
  1148. package/src/transactions/resolve.ts +124 -0
  1149. package/src/transactions/serializer.ts +212 -0
  1150. package/src/transactions/utils.ts +142 -0
  1151. package/src/utils/constants.ts +16 -0
  1152. package/src/utils/derived-objects.ts +22 -0
  1153. package/src/utils/dynamic-fields.ts +30 -0
  1154. package/src/utils/format.ts +19 -0
  1155. package/src/utils/haneul-types.ts +114 -0
  1156. package/src/utils/haneulns.ts +43 -0
  1157. package/src/utils/index.ts +48 -0
  1158. package/src/utils/move-registry.ts +43 -0
  1159. package/src/verify/index.ts +11 -0
  1160. package/src/verify/verify.ts +149 -0
  1161. package/src/version.ts +7 -0
  1162. package/src/zklogin/address.ts +101 -0
  1163. package/src/zklogin/bcs.ts +26 -0
  1164. package/src/zklogin/index.ts +22 -0
  1165. package/src/zklogin/jwt-decode.ts +127 -0
  1166. package/src/zklogin/jwt-utils.ts +142 -0
  1167. package/src/zklogin/nonce.ts +39 -0
  1168. package/src/zklogin/poseidon.ts +64 -0
  1169. package/src/zklogin/publickey.ts +286 -0
  1170. package/src/zklogin/signature.ts +38 -0
  1171. package/src/zklogin/utils.ts +112 -0
  1172. package/transactions/package.json +6 -0
  1173. package/utils/package.json +6 -0
  1174. package/verify/package.json +6 -0
  1175. package/zklogin/package.json +6 -0
@@ -0,0 +1,1492 @@
1
+ /**
2
+ * ######################################
3
+ * ### DO NOT EDIT THIS FILE DIRECTLY ###
4
+ * ######################################
5
+ *
6
+ * This file is generated from:
7
+ * /crates/sui-open-rpc/spec/openrpc.json
8
+ */
9
+ export interface Balance {
10
+ coinObjectCount: number;
11
+ coinType: string;
12
+ lockedBalance: {
13
+ [key: string]: string;
14
+ };
15
+ totalBalance: string;
16
+ }
17
+ export interface BalanceChange {
18
+ /**
19
+ * The amount indicate the balance value changes, negative amount means spending coin value and
20
+ * positive means receiving coin value.
21
+ */
22
+ amount: string;
23
+ coinType: string;
24
+ /** Owner of the balance change */
25
+ owner: ObjectOwner;
26
+ }
27
+ export interface Checkpoint {
28
+ /** Commitments to checkpoint state */
29
+ checkpointCommitments: CheckpointCommitment[];
30
+ /** Checkpoint digest */
31
+ digest: string;
32
+ /** Present only on the final checkpoint of the epoch. */
33
+ endOfEpochData?: EndOfEpochData | null;
34
+ /** Checkpoint's epoch ID */
35
+ epoch: string;
36
+ /**
37
+ * The running total gas costs of all transactions included in the current epoch so far until this
38
+ * checkpoint.
39
+ */
40
+ epochRollingGasCostSummary: GasCostSummary;
41
+ /** Total number of transactions committed since genesis, including those in this checkpoint. */
42
+ networkTotalTransactions: string;
43
+ /** Digest of the previous checkpoint */
44
+ previousDigest?: string | null;
45
+ /** Checkpoint sequence number */
46
+ sequenceNumber: string;
47
+ /**
48
+ * Timestamp of the checkpoint - number of milliseconds from the Unix epoch Checkpoint timestamps are
49
+ * monotonic, but not strongly monotonic - subsequent checkpoints can have same timestamp if they
50
+ * originate from the same underlining consensus commit
51
+ */
52
+ timestampMs: string;
53
+ /** Transaction digests */
54
+ transactions: string[];
55
+ /** Validator Signature */
56
+ validatorSignature: string;
57
+ }
58
+ export type CheckpointCommitment = {
59
+ ECMHLiveObjectSetDigest: ECMHLiveObjectSetDigest;
60
+ };
61
+ export type CheckpointId = string | string;
62
+ /** A claim consists of value and index_mod_4. */
63
+ export interface Claim {
64
+ indexMod4: number;
65
+ value: string;
66
+ }
67
+ export interface CoinStruct {
68
+ balance: string;
69
+ coinObjectId: string;
70
+ coinType: string;
71
+ digest: string;
72
+ previousTransaction: string;
73
+ version: string;
74
+ }
75
+ /** RPC representation of the [Committee] type. */
76
+ export interface CommitteeInfo {
77
+ epoch: string;
78
+ validators: [string, string][];
79
+ }
80
+ /** Unlike [enum Signature], [enum CompressedSignature] does not contain public key. */
81
+ export type CompressedSignature = {
82
+ Ed25519: string;
83
+ } | {
84
+ Secp256k1: string;
85
+ } | {
86
+ Secp256r1: string;
87
+ } | {
88
+ ZkLogin: string;
89
+ } | {
90
+ Passkey: string;
91
+ };
92
+ /** Uses an enum to allow for future expansion of the ConsensusDeterminedVersionAssignments. */
93
+ export type ConsensusDeterminedVersionAssignments = {
94
+ CancelledTransactions: [string, [string, string][]][];
95
+ } | {
96
+ CancelledTransactionsV2: [string, [[string, string], string][]][];
97
+ };
98
+ export type HaneulParsedData = {
99
+ dataType: 'moveObject';
100
+ fields: MoveStruct;
101
+ hasPublicTransfer: boolean;
102
+ type: string;
103
+ } | {
104
+ dataType: 'package';
105
+ disassembled: {
106
+ [key: string]: unknown;
107
+ };
108
+ };
109
+ export interface DelegatedStake {
110
+ stakes: StakeObject[];
111
+ /** Staking pool object id. */
112
+ stakingPool: string;
113
+ /** Validator's Address. */
114
+ validatorAddress: string;
115
+ }
116
+ /** Additional rguments supplied to dev inspect beyond what is allowed in today's API. */
117
+ export interface DevInspectArgs {
118
+ /** The gas budget for the transaction. */
119
+ gasBudget?: string | null;
120
+ /** The gas objects used to pay for the transaction. */
121
+ gasObjects?: [string, string, string][] | null;
122
+ /** The sponsor of the gas for the transaction, might be different from the sender. */
123
+ gasSponsor?: string | null;
124
+ /** Whether to return the raw transaction data and effects. */
125
+ showRawTxnDataAndEffects?: boolean | null;
126
+ /** Whether to skip transaction checks for the transaction. */
127
+ skipChecks?: boolean | null;
128
+ }
129
+ /** The response from processing a dev inspect transaction */
130
+ export interface DevInspectResults {
131
+ /**
132
+ * Summary of effects that likely would be generated if the transaction is actually run. Note however,
133
+ * that not all dev-inspect transactions are actually usable as transactions so it might not be
134
+ * possible actually generate these effects from a normal transaction.
135
+ */
136
+ effects: TransactionEffects;
137
+ /** Execution error from executing the transactions */
138
+ error?: string | null;
139
+ /** Events that likely would be generated if the transaction is actually run. */
140
+ events: HaneulEvent[];
141
+ /** The raw effects of the transaction that was dev inspected. */
142
+ rawEffects?: number[];
143
+ /** The raw transaction data that was dev inspected. */
144
+ rawTxnData?: number[];
145
+ /** Execution results (including return values) from executing the transactions */
146
+ results?: SuiExecutionResult[] | null;
147
+ }
148
+ export interface DisplayFieldsResponse {
149
+ data?: {
150
+ [key: string]: string;
151
+ } | null;
152
+ error?: ObjectResponseError | null;
153
+ }
154
+ export interface DryRunTransactionBlockResponse {
155
+ balanceChanges: BalanceChange[];
156
+ effects: TransactionEffects;
157
+ events: HaneulEvent[];
158
+ executionErrorSource?: string | null;
159
+ input: TransactionBlockData;
160
+ objectChanges: HaneulObjectChange[];
161
+ suggestedGasPrice?: string | null;
162
+ }
163
+ export type DynamicFieldInfo = {
164
+ digest: string;
165
+ name: DynamicFieldName;
166
+ objectId: string;
167
+ objectType: string;
168
+ type: DynamicFieldType;
169
+ version: string;
170
+ bcsEncoding: 'base64';
171
+ bcsName: string;
172
+ } | {
173
+ digest: string;
174
+ name: DynamicFieldName;
175
+ objectId: string;
176
+ objectType: string;
177
+ type: DynamicFieldType;
178
+ version: string;
179
+ bcsEncoding: 'base58';
180
+ bcsName: string;
181
+ };
182
+ export interface DynamicFieldName {
183
+ type: string;
184
+ value: unknown;
185
+ }
186
+ export type DynamicFieldType = 'DynamicField' | 'DynamicObject';
187
+ /** The Sha256 digest of an EllipticCurveMultisetHash committing to the live object set. */
188
+ export interface ECMHLiveObjectSetDigest {
189
+ digest: number[];
190
+ }
191
+ export interface EndOfEpochData {
192
+ /** Commitments to epoch specific state (e.g. live object set) */
193
+ epochCommitments: CheckpointCommitment[];
194
+ /**
195
+ * next_epoch_committee is `Some` if and only if the current checkpoint is the last checkpoint of an
196
+ * epoch. Therefore next_epoch_committee can be used to pick the last checkpoint of an epoch, which is
197
+ * often useful to get epoch level summary stats like total gas cost of an epoch, or the total number
198
+ * of transactions from genesis to the end of an epoch. The committee is stored as a vector of
199
+ * validator pub key and stake pairs. The vector should be sorted based on the Committee data
200
+ * structure.
201
+ */
202
+ nextEpochCommittee: [string, string][];
203
+ /**
204
+ * The protocol version that is in effect during the epoch that starts immediately after this
205
+ * checkpoint.
206
+ */
207
+ nextEpochProtocolVersion: string;
208
+ }
209
+ export type HaneulEvent = {
210
+ /**
211
+ * Sequential event ID, ie (transaction seq number, event seq number). 1) Serves as a unique event ID
212
+ * for each fullnode 2) Also serves to sequence events for the purposes of pagination and querying. A
213
+ * higher id is an event seen later by that fullnode. This ID is the "cursor" for event querying.
214
+ */
215
+ id: EventId;
216
+ /** Move package where this event was emitted. */
217
+ packageId: string;
218
+ /** Parsed json value of the event */
219
+ parsedJson: unknown;
220
+ /** Sender's Haneul address. */
221
+ sender: string;
222
+ /** UTC timestamp in milliseconds since epoch (1/1/1970) */
223
+ timestampMs?: string | null;
224
+ /** Move module where this event was emitted. */
225
+ transactionModule: string;
226
+ /** Move event type. */
227
+ type: string;
228
+ bcs: string;
229
+ bcsEncoding: 'base64';
230
+ } | {
231
+ /**
232
+ * Sequential event ID, ie (transaction seq number, event seq number). 1) Serves as a unique event ID
233
+ * for each fullnode 2) Also serves to sequence events for the purposes of pagination and querying. A
234
+ * higher id is an event seen later by that fullnode. This ID is the "cursor" for event querying.
235
+ */
236
+ id: EventId;
237
+ /** Move package where this event was emitted. */
238
+ packageId: string;
239
+ /** Parsed json value of the event */
240
+ parsedJson: unknown;
241
+ /** Sender's Haneul address. */
242
+ sender: string;
243
+ /** UTC timestamp in milliseconds since epoch (1/1/1970) */
244
+ timestampMs?: string | null;
245
+ /** Move module where this event was emitted. */
246
+ transactionModule: string;
247
+ /** Move event type. */
248
+ type: string;
249
+ bcs: string;
250
+ bcsEncoding: 'base58';
251
+ };
252
+ export type HaneulEventFilter =
253
+ /** Return all events. */
254
+ {
255
+ All: [];
256
+ } /** Return events that match any of the given filters. Only supported on event subscriptions. */ | {
257
+ Any: HaneulEventFilter[];
258
+ } /** Query by sender address. */ | {
259
+ Sender: string;
260
+ } /** Return events emitted by the given transaction. */ | {
261
+ Transaction: string;
262
+ } /**
263
+ * Return events emitted in a specified Move module. If the event is defined in Module A but emitted in
264
+ * a tx with Module B, query `MoveModule` by module B returns the event. Query `MoveEventModule` by
265
+ * module A returns the event too.
266
+ */ | {
267
+ MoveModule: {
268
+ /** the module name */
269
+ module: string;
270
+ /** the Move package ID */
271
+ package: string;
272
+ };
273
+ } /**
274
+ * Return events with the given Move event struct name (struct tag). For example, if the event is
275
+ * defined in `0xabcd::MyModule`, and named `Foo`, then the struct tag is `0xabcd::MyModule::Foo`.
276
+ */ | {
277
+ MoveEventType: string;
278
+ } /**
279
+ * Return events with the given Move module name where the event struct is defined. If the event is
280
+ * defined in Module A but emitted in a tx with Module B, query `MoveEventModule` by module A returns
281
+ * the event. Query `MoveModule` by module B returns the event too.
282
+ */ | {
283
+ MoveEventModule: {
284
+ /** the module name */
285
+ module: string;
286
+ /** the Move package ID */
287
+ package: string;
288
+ };
289
+ } /** Return events emitted in [start_time, end_time] interval */ | {
290
+ TimeRange: {
291
+ /** right endpoint of time interval, milliseconds since epoch, exclusive */
292
+ endTime: string;
293
+ /** left endpoint of time interval, milliseconds since epoch, inclusive */
294
+ startTime: string;
295
+ };
296
+ };
297
+ /** Unique ID of a Haneul Event, the ID is a combination of transaction digest and event seq number. */
298
+ export interface EventId {
299
+ eventSeq: string;
300
+ txDigest: string;
301
+ }
302
+ export type ExecuteTransactionRequestType = 'WaitForEffectsCert' | 'WaitForLocalExecution';
303
+ export type ExecutionStatus = {
304
+ status: 'success' | 'failure';
305
+ error?: string;
306
+ };
307
+ /**
308
+ * Summary of the charges in a transaction. Storage is charged independently of computation. There are
309
+ * 3 parts to the storage charges: `storage_cost`: it is the charge of storage at the time the
310
+ * transaction is executed. The cost of storage is the number of bytes of the objects being mutated
311
+ * multiplied by a variable storage cost per byte `storage_rebate`: this is the amount a user gets back
312
+ * when manipulating an object. The `storage_rebate` is the `storage_cost` for an object minus fees.
313
+ * `non_refundable_storage_fee`: not all the value of the object storage cost is given back to user and
314
+ * there is a small fraction that is kept by the system. This value tracks that charge.
315
+ *
316
+ * When looking at a gas cost summary the amount charged to the user is
317
+ * `computation_cost + storage_cost - storage_rebate` and that is the amount that is deducted from the
318
+ * gas coins. `non_refundable_storage_fee` is collected from the objects being mutated/deleted and it
319
+ * is tracked by the system in storage funds.
320
+ *
321
+ * Objects deleted, including the older versions of objects mutated, have the storage field on the
322
+ * objects added up to a pool of "potential rebate". This rebate then is reduced by the "nonrefundable
323
+ * rate" such that:
324
+ * `potential_rebate(storage cost of deleted/mutated objects) = storage_rebate + non_refundable_storage_fee`
325
+ */
326
+ export interface GasCostSummary {
327
+ /** Cost of computation/execution */
328
+ computationCost: string;
329
+ /** The fee for the rebate. The portion of the storage rebate kept by the system. */
330
+ nonRefundableStorageFee: string;
331
+ /** Storage cost, it's the sum of all storage cost for all objects created or mutated. */
332
+ storageCost: string;
333
+ /**
334
+ * The amount of storage cost refunded to the user for all objects deleted or mutated in the
335
+ * transaction.
336
+ */
337
+ storageRebate: string;
338
+ }
339
+ export interface HaneulGasData {
340
+ budget: string;
341
+ owner: string;
342
+ payment: HaneulObjectRef[];
343
+ price: string;
344
+ }
345
+ export interface GetPastObjectRequest {
346
+ /** the ID of the queried object */
347
+ objectId: string;
348
+ /** the version of the queried object. */
349
+ version: string;
350
+ }
351
+ export type InputObjectKind = {
352
+ MovePackage: string;
353
+ } | {
354
+ ImmOrOwnedMoveObject: HaneulObjectRef;
355
+ } | {
356
+ SharedMoveObject: {
357
+ id: string;
358
+ initial_shared_version: string;
359
+ mutable?: boolean;
360
+ };
361
+ };
362
+ export interface MoveCallParams {
363
+ arguments: unknown[];
364
+ function: string;
365
+ module: string;
366
+ packageObjectId: string;
367
+ typeArguments?: string[];
368
+ }
369
+ export type HaneulMoveFunctionArgType = 'Pure' | {
370
+ Object: ObjectValueKind;
371
+ };
372
+ export type MoveStruct = MoveValue[] | {
373
+ fields: {
374
+ [key: string]: MoveValue;
375
+ };
376
+ type: string;
377
+ } | {
378
+ [key: string]: MoveValue;
379
+ };
380
+ export type MoveValue = number | boolean | string | MoveValue[] | string | {
381
+ id: string;
382
+ } | MoveStruct | null | MoveVariant;
383
+ export interface MoveVariant {
384
+ fields: {
385
+ [key: string]: MoveValue;
386
+ };
387
+ type: string;
388
+ variant: string;
389
+ }
390
+ /** The struct that contains signatures and public keys necessary for authenticating a MultiSig. */
391
+ export interface MultiSig {
392
+ /** A bitmap that indicates the position of which public key the signature should be authenticated with. */
393
+ bitmap: number;
394
+ /**
395
+ * The public key encoded with each public key with its signature scheme used along with the
396
+ * corresponding weight.
397
+ */
398
+ multisig_pk: MultiSigPublicKey;
399
+ /** The plain signature encoded with signature scheme. */
400
+ sigs: CompressedSignature[];
401
+ }
402
+ /**
403
+ * Deprecated, use [struct MultiSig] instead. The struct that contains signatures and public keys
404
+ * necessary for authenticating a MultiSigLegacy.
405
+ */
406
+ export interface MultiSigLegacy {
407
+ /** A bitmap that indicates the position of which public key the signature should be authenticated with. */
408
+ bitmap: string;
409
+ /**
410
+ * The public key encoded with each public key with its signature scheme used along with the
411
+ * corresponding weight.
412
+ */
413
+ multisig_pk: MultiSigPublicKeyLegacy;
414
+ /** The plain signature encoded with signature scheme. */
415
+ sigs: CompressedSignature[];
416
+ }
417
+ /** The struct that contains the public key used for authenticating a MultiSig. */
418
+ export interface MultiSigPublicKey {
419
+ /** A list of public key and its corresponding weight. */
420
+ pk_map: [PublicKey, number][];
421
+ /**
422
+ * If the total weight of the public keys corresponding to verified signatures is larger than
423
+ * threshold, the MultiSig is verified.
424
+ */
425
+ threshold: number;
426
+ }
427
+ /**
428
+ * Deprecated, use [struct MultiSigPublicKey] instead. The struct that contains the public key used for
429
+ * authenticating a MultiSig.
430
+ */
431
+ export interface MultiSigPublicKeyLegacy {
432
+ /** A list of public key and its corresponding weight. */
433
+ pk_map: [PublicKey, number][];
434
+ /**
435
+ * If the total weight of the public keys corresponding to verified signatures is larger than
436
+ * threshold, the MultiSig is verified.
437
+ */
438
+ threshold: number;
439
+ }
440
+ /**
441
+ * ObjectChange are derived from the object mutations in the TransactionEffect to provide richer object
442
+ * information.
443
+ */
444
+ export type HaneulObjectChange =
445
+ /** Module published */
446
+ {
447
+ digest: string;
448
+ modules: string[];
449
+ packageId: string;
450
+ type: 'published';
451
+ version: string;
452
+ } /** Transfer objects to new address / wrap in another object */ | {
453
+ digest: string;
454
+ objectId: string;
455
+ objectType: string;
456
+ recipient: ObjectOwner;
457
+ sender: string;
458
+ type: 'transferred';
459
+ version: string;
460
+ } /** Object mutated. */ | {
461
+ digest: string;
462
+ objectId: string;
463
+ objectType: string;
464
+ owner: ObjectOwner;
465
+ previousVersion: string;
466
+ sender: string;
467
+ type: 'mutated';
468
+ version: string;
469
+ } /** Delete object */ | {
470
+ objectId: string;
471
+ objectType: string;
472
+ sender: string;
473
+ type: 'deleted';
474
+ version: string;
475
+ } /** Wrapped object */ | {
476
+ objectId: string;
477
+ objectType: string;
478
+ sender: string;
479
+ type: 'wrapped';
480
+ version: string;
481
+ } /** New object creation */ | {
482
+ digest: string;
483
+ objectId: string;
484
+ objectType: string;
485
+ owner: ObjectOwner;
486
+ sender: string;
487
+ type: 'created';
488
+ version: string;
489
+ };
490
+ export interface HaneulObjectData {
491
+ /**
492
+ * Move object content or package content in BCS, default to be None unless
493
+ * HaneulObjectDataOptions.showBcs is set to true
494
+ */
495
+ bcs?: RawData | null;
496
+ /**
497
+ * Move object content or package content, default to be None unless HaneulObjectDataOptions.showContent
498
+ * is set to true
499
+ */
500
+ content?: HaneulParsedData | null;
501
+ /** Base64 string representing the object digest */
502
+ digest: string;
503
+ /**
504
+ * The Display metadata for frontend UI rendering, default to be None unless
505
+ * HaneulObjectDataOptions.showContent is set to true This can also be None if the struct type does not
506
+ * have Display defined See more details in <https://forums.sui.io/t/nft-object-display-proposal/4872>
507
+ */
508
+ display?: DisplayFieldsResponse | null;
509
+ objectId: string;
510
+ /** The owner of this object. Default to be None unless HaneulObjectDataOptions.showOwner is set to true */
511
+ owner?: ObjectOwner | null;
512
+ /**
513
+ * The digest of the transaction that created or last mutated this object. Default to be None unless
514
+ * HaneulObjectDataOptions.showPreviousTransaction is set to true
515
+ */
516
+ previousTransaction?: string | null;
517
+ /**
518
+ * The amount of SUI we would rebate if this object gets deleted. This number is re-calculated each
519
+ * time the object is mutated based on the present storage gas price.
520
+ */
521
+ storageRebate?: string | null;
522
+ /** The type of the object. Default to be None unless HaneulObjectDataOptions.showType is set to true */
523
+ type?: string | null;
524
+ /** Object version. */
525
+ version: string;
526
+ }
527
+ export interface HaneulObjectDataOptions {
528
+ /** Whether to show the content in BCS format. Default to be False */
529
+ showBcs?: boolean;
530
+ /**
531
+ * Whether to show the content(i.e., package content or Move struct content) of the object. Default to
532
+ * be False
533
+ */
534
+ showContent?: boolean;
535
+ /** Whether to show the Display metadata of the object for frontend rendering. Default to be False */
536
+ showDisplay?: boolean;
537
+ /** Whether to show the owner of the object. Default to be False */
538
+ showOwner?: boolean;
539
+ /** Whether to show the previous transaction digest of the object. Default to be False */
540
+ showPreviousTransaction?: boolean;
541
+ /** Whether to show the storage rebate of the object. Default to be False */
542
+ showStorageRebate?: boolean;
543
+ /** Whether to show the type of the object. Default to be False */
544
+ showType?: boolean;
545
+ }
546
+ export type ObjectRead =
547
+ /** The object exists and is found with this version */
548
+ {
549
+ details: HaneulObjectData;
550
+ status: 'VersionFound';
551
+ } /** The object does not exist */ | {
552
+ details: string;
553
+ status: 'ObjectNotExists';
554
+ } /** The object is found to be deleted with this version */ | {
555
+ details: HaneulObjectRef;
556
+ status: 'ObjectDeleted';
557
+ } /** The object exists but not found with this version */ | {
558
+ details: [string, string];
559
+ status: 'VersionNotFound';
560
+ } /** The asked object version is higher than the latest */ | {
561
+ details: {
562
+ asked_version: string;
563
+ latest_version: string;
564
+ object_id: string;
565
+ };
566
+ status: 'VersionTooHigh';
567
+ };
568
+ export interface HaneulObjectRef {
569
+ /** Base64 string representing the object digest */
570
+ digest: string;
571
+ /** Hex code as string representing the object id */
572
+ objectId: string;
573
+ /** Object version. */
574
+ version: string;
575
+ }
576
+ export type ObjectResponseError = {
577
+ code: 'notExists';
578
+ object_id: string;
579
+ } | {
580
+ code: 'dynamicFieldNotFound';
581
+ parent_object_id: string;
582
+ } | {
583
+ code: 'deleted';
584
+ /** Base64 string representing the object digest */
585
+ digest: string;
586
+ object_id: string;
587
+ /** Object version. */
588
+ version: string;
589
+ } | {
590
+ code: 'unknown';
591
+ } | {
592
+ code: 'displayError';
593
+ error: string;
594
+ };
595
+ export interface HaneulObjectResponseQuery {
596
+ /** If None, no filter will be applied */
597
+ filter?: HaneulObjectDataFilter | null;
598
+ /** config which fields to include in the response, by default only digest is included */
599
+ options?: HaneulObjectDataOptions | null;
600
+ }
601
+ export type ObjectValueKind = 'ByImmutableReference' | 'ByMutableReference' | 'ByValue';
602
+ export interface OwnedObjectRef {
603
+ owner: ObjectOwner;
604
+ reference: HaneulObjectRef;
605
+ }
606
+ export type ObjectOwner =
607
+ /** Object is exclusively owned by a single address, and is mutable. */
608
+ {
609
+ AddressOwner: string;
610
+ } /**
611
+ * Object is exclusively owned by a single object, and is mutable. The object ID is converted to
612
+ * HaneulAddress as HaneulAddress is universal.
613
+ */ | {
614
+ ObjectOwner: string;
615
+ } /** Object is shared, can be used by any address, and is mutable. */ | {
616
+ Shared: {
617
+ /** The version at which the object became shared */
618
+ initial_shared_version: string;
619
+ };
620
+ } | 'Immutable' /** Object is exclusively owned by a single address and sequenced via consensus. */ | {
621
+ ConsensusAddressOwner: {
622
+ owner: string;
623
+ /**
624
+ * The version at which the object most recently became a consensus object. This serves the same
625
+ * function as `initial_shared_version`, except it may change if the object's Owner type changes.
626
+ */
627
+ start_version: string;
628
+ };
629
+ };
630
+ /**
631
+ * `next_cursor` points to the last item in the page; Reading with `next_cursor` will start from the
632
+ * next item after `next_cursor` if `next_cursor` is `Some`, otherwise it will start from the first
633
+ * item.
634
+ */
635
+ export interface PaginatedCheckpoints {
636
+ data: Checkpoint[];
637
+ hasNextPage: boolean;
638
+ nextCursor?: string | null;
639
+ }
640
+ /**
641
+ * `next_cursor` points to the last item in the page; Reading with `next_cursor` will start from the
642
+ * next item after `next_cursor` if `next_cursor` is `Some`, otherwise it will start from the first
643
+ * item.
644
+ */
645
+ export interface PaginatedCoins {
646
+ data: CoinStruct[];
647
+ hasNextPage: boolean;
648
+ nextCursor?: string | null;
649
+ }
650
+ /**
651
+ * `next_cursor` points to the last item in the page; Reading with `next_cursor` will start from the
652
+ * next item after `next_cursor` if `next_cursor` is `Some`, otherwise it will start from the first
653
+ * item.
654
+ */
655
+ export interface PaginatedDynamicFieldInfos {
656
+ data: DynamicFieldInfo[];
657
+ hasNextPage: boolean;
658
+ nextCursor?: string | null;
659
+ }
660
+ /**
661
+ * `next_cursor` points to the last item in the page; Reading with `next_cursor` will start from the
662
+ * next item after `next_cursor` if `next_cursor` is `Some`, otherwise it will start from the first
663
+ * item.
664
+ */
665
+ export interface PaginatedEvents {
666
+ data: HaneulEvent[];
667
+ hasNextPage: boolean;
668
+ nextCursor?: EventId | null;
669
+ }
670
+ /**
671
+ * `next_cursor` points to the last item in the page; Reading with `next_cursor` will start from the
672
+ * next item after `next_cursor` if `next_cursor` is `Some`, otherwise it will start from the first
673
+ * item.
674
+ */
675
+ export interface PaginatedStrings {
676
+ data: string[];
677
+ hasNextPage: boolean;
678
+ nextCursor?: string | null;
679
+ }
680
+ /**
681
+ * `next_cursor` points to the last item in the page; Reading with `next_cursor` will start from the
682
+ * next item after `next_cursor` if `next_cursor` is `Some`, otherwise it will start from the first
683
+ * item.
684
+ */
685
+ export interface PaginatedObjectsResponse {
686
+ data: HaneulObjectResponse[];
687
+ hasNextPage: boolean;
688
+ nextCursor?: string | null;
689
+ }
690
+ /**
691
+ * `next_cursor` points to the last item in the page; Reading with `next_cursor` will start from the
692
+ * next item after `next_cursor` if `next_cursor` is `Some`, otherwise it will start from the first
693
+ * item.
694
+ */
695
+ export interface PaginatedTransactionResponse {
696
+ data: HaneulTransactionBlockResponse[];
697
+ hasNextPage: boolean;
698
+ nextCursor?: string | null;
699
+ }
700
+ /**
701
+ * An passkey authenticator with parsed fields. See field defition below. Can be initialized from
702
+ * [struct RawPasskeyAuthenticator].
703
+ */
704
+ export interface PasskeyAuthenticator {
705
+ /**
706
+ * `authenticatorData` is a bytearray that encodes
707
+ * [Authenticator Data](https://www.w3.org/TR/webauthn-2/#sctn-authenticator-data) structure returned
708
+ * by the authenticator attestation response as is.
709
+ */
710
+ authenticator_data: number[];
711
+ /**
712
+ * `clientDataJSON` contains a JSON-compatible UTF-8 encoded string of the client data which is passed
713
+ * to the authenticator by the client during the authentication request (see
714
+ * [CollectedClientData](https://www.w3.org/TR/webauthn-2/#dictdef-collectedclientdata))
715
+ */
716
+ client_data_json: string;
717
+ }
718
+ export interface ProtocolConfig {
719
+ attributes: {
720
+ [key: string]: ProtocolConfigValue | null;
721
+ };
722
+ featureFlags: {
723
+ [key: string]: boolean;
724
+ };
725
+ maxSupportedProtocolVersion: string;
726
+ minSupportedProtocolVersion: string;
727
+ protocolVersion: string;
728
+ }
729
+ export type ProtocolConfigValue = {
730
+ u16: string;
731
+ } | {
732
+ u32: string;
733
+ } | {
734
+ u64: string;
735
+ } | {
736
+ f64: string;
737
+ } | {
738
+ bool: string;
739
+ };
740
+ export type PublicKey = {
741
+ Ed25519: string;
742
+ } | {
743
+ Secp256k1: string;
744
+ } | {
745
+ Secp256r1: string;
746
+ } | {
747
+ ZkLogin: string;
748
+ } | {
749
+ Passkey: string;
750
+ };
751
+ export type RPCTransactionRequestParams = {
752
+ transferObjectRequestParams: TransferObjectParams;
753
+ } | {
754
+ moveCallRequestParams: MoveCallParams;
755
+ };
756
+ export type RawData = {
757
+ bcsBytes: string;
758
+ dataType: 'moveObject';
759
+ hasPublicTransfer: boolean;
760
+ type: string;
761
+ version: string;
762
+ } | {
763
+ dataType: 'package';
764
+ id: string;
765
+ linkageTable: {
766
+ [key: string]: UpgradeInfo;
767
+ };
768
+ moduleMap: {
769
+ [key: string]: string;
770
+ };
771
+ typeOriginTable: TypeOrigin[];
772
+ version: string;
773
+ };
774
+ export type Signature = {
775
+ Ed25519HaneulSignature: string;
776
+ } | {
777
+ Secp256k1HaneulSignature: string;
778
+ } | {
779
+ Secp256r1HaneulSignature: string;
780
+ };
781
+ export type StakeObject = {
782
+ principal: string;
783
+ stakeActiveEpoch: string;
784
+ stakeRequestEpoch: string;
785
+ /** ID of the StakedSui receipt object. */
786
+ stakedSuiId: string;
787
+ status: 'Pending';
788
+ } | {
789
+ principal: string;
790
+ stakeActiveEpoch: string;
791
+ stakeRequestEpoch: string;
792
+ /** ID of the StakedSui receipt object. */
793
+ stakedSuiId: string;
794
+ estimatedReward: string;
795
+ status: 'Active';
796
+ } | {
797
+ principal: string;
798
+ stakeActiveEpoch: string;
799
+ stakeRequestEpoch: string;
800
+ /** ID of the StakedSui receipt object. */
801
+ stakedSuiId: string;
802
+ status: 'Unstaked';
803
+ };
804
+ export interface SuiActiveJwk {
805
+ epoch: string;
806
+ jwk: SuiJWK;
807
+ jwk_id: SuiJwkId;
808
+ }
809
+ /** An argument to a transaction in a programmable transaction block */
810
+ export type SuiArgument = 'GasCoin' /** One of the input objects or primitive values (from `ProgrammableTransactionBlock` inputs) */ | {
811
+ Input: number;
812
+ } /** The result of another transaction (from `ProgrammableTransactionBlock` transactions) */ | {
813
+ Result: number;
814
+ } /**
815
+ * Like a `Result` but it accesses a nested result. Currently, the only usage of this is to access a
816
+ * value from a Move call with multiple return values.
817
+ */ | {
818
+ NestedResult: [number, number];
819
+ };
820
+ export interface SuiAuthenticatorStateExpire {
821
+ min_epoch: string;
822
+ }
823
+ export type SuiCallArg = {
824
+ type: 'object';
825
+ digest: string;
826
+ objectId: string;
827
+ objectType: 'immOrOwnedObject';
828
+ version: string;
829
+ } | {
830
+ type: 'object';
831
+ initialSharedVersion: string;
832
+ mutable: boolean;
833
+ objectId: string;
834
+ objectType: 'sharedObject';
835
+ } | {
836
+ type: 'object';
837
+ digest: string;
838
+ objectId: string;
839
+ objectType: 'receiving';
840
+ version: string;
841
+ } | {
842
+ type: 'pure';
843
+ value: unknown;
844
+ valueType?: string | null;
845
+ };
846
+ export interface SuiChangeEpoch {
847
+ computation_charge: string;
848
+ epoch: string;
849
+ epoch_start_timestamp_ms: string;
850
+ storage_charge: string;
851
+ storage_rebate: string;
852
+ }
853
+ export interface CoinMetadata {
854
+ /** Number of decimal places the coin uses. */
855
+ decimals: number;
856
+ /** Description of the token */
857
+ description: string;
858
+ /** URL for the token logo */
859
+ iconUrl?: string | null;
860
+ /** Object id for the CoinMetadata object */
861
+ id?: string | null;
862
+ /** Name for the token */
863
+ name: string;
864
+ /** Symbol for the token */
865
+ symbol: string;
866
+ }
867
+ export type SuiEndOfEpochTransactionKind = 'AuthenticatorStateCreate' | 'RandomnessStateCreate' | 'CoinDenyListStateCreate' | 'StoreExecutionTimeObservations' | 'AccumulatorRootCreate' | {
868
+ ChangeEpoch: SuiChangeEpoch;
869
+ } | {
870
+ AuthenticatorStateExpire: SuiAuthenticatorStateExpire;
871
+ } | {
872
+ BridgeStateCreate: string;
873
+ } | {
874
+ BridgeCommitteeUpdate: string;
875
+ };
876
+ export interface SuiExecutionResult {
877
+ /** The value of any arguments that were mutably borrowed. Non-mut borrowed values are not included */
878
+ mutableReferenceOutputs?: [SuiArgument, number[], string][];
879
+ /** The return values from the transaction */
880
+ returnValues?: [number[], string][];
881
+ }
882
+ export interface SuiJWK {
883
+ alg: string;
884
+ e: string;
885
+ kty: string;
886
+ n: string;
887
+ }
888
+ export interface SuiJwkId {
889
+ iss: string;
890
+ kid: string;
891
+ }
892
+ export type SuiMoveAbility = 'Copy' | 'Drop' | 'Store' | 'Key';
893
+ export interface SuiMoveAbilitySet {
894
+ abilities: SuiMoveAbility[];
895
+ }
896
+ export interface SuiMoveAbort {
897
+ error_code?: string | null;
898
+ function?: string | null;
899
+ line?: number | null;
900
+ module_id?: string | null;
901
+ }
902
+ export interface SuiMoveModuleId {
903
+ address: string;
904
+ name: string;
905
+ }
906
+ export interface SuiMoveNormalizedEnum {
907
+ abilities: SuiMoveAbilitySet;
908
+ typeParameters: SuiMoveStructTypeParameter[];
909
+ variantDeclarationOrder?: string[] | null;
910
+ variants: {
911
+ [key: string]: SuiMoveNormalizedField[];
912
+ };
913
+ }
914
+ export interface SuiMoveNormalizedField {
915
+ name: string;
916
+ type: HaneulMoveNormalizedType;
917
+ }
918
+ export interface SuiMoveNormalizedFunction {
919
+ isEntry: boolean;
920
+ parameters: HaneulMoveNormalizedType[];
921
+ return: HaneulMoveNormalizedType[];
922
+ typeParameters: SuiMoveAbilitySet[];
923
+ visibility: SuiMoveVisibility;
924
+ }
925
+ export interface SuiMoveNormalizedModule {
926
+ address: string;
927
+ enums?: {
928
+ [key: string]: SuiMoveNormalizedEnum;
929
+ };
930
+ exposedFunctions: {
931
+ [key: string]: SuiMoveNormalizedFunction;
932
+ };
933
+ fileFormatVersion: number;
934
+ friends: SuiMoveModuleId[];
935
+ name: string;
936
+ structs: {
937
+ [key: string]: SuiMoveNormalizedStruct;
938
+ };
939
+ }
940
+ export interface SuiMoveNormalizedStruct {
941
+ abilities: SuiMoveAbilitySet;
942
+ fields: SuiMoveNormalizedField[];
943
+ typeParameters: SuiMoveStructTypeParameter[];
944
+ }
945
+ export type HaneulMoveNormalizedType = 'Bool' | 'U8' | 'U16' | 'U32' | 'U64' | 'U128' | 'U256' | 'Address' | 'Signer' | {
946
+ Struct: {
947
+ address: string;
948
+ module: string;
949
+ name: string;
950
+ typeArguments: HaneulMoveNormalizedType[];
951
+ };
952
+ } | {
953
+ Vector: HaneulMoveNormalizedType;
954
+ } | {
955
+ TypeParameter: number;
956
+ } | {
957
+ Reference: HaneulMoveNormalizedType;
958
+ } | {
959
+ MutableReference: HaneulMoveNormalizedType;
960
+ };
961
+ export interface SuiMoveStructTypeParameter {
962
+ constraints: SuiMoveAbilitySet;
963
+ isPhantom: boolean;
964
+ }
965
+ export type SuiMoveVisibility = 'Private' | 'Public' | 'Friend';
966
+ export type HaneulObjectDataFilter = {
967
+ MatchAll: HaneulObjectDataFilter[];
968
+ } | {
969
+ MatchAny: HaneulObjectDataFilter[];
970
+ } | {
971
+ MatchNone: HaneulObjectDataFilter[];
972
+ } /** Query by type a specified Package. */ | {
973
+ Package: string;
974
+ } /** Query by type a specified Move module. */ | {
975
+ MoveModule: {
976
+ /** the module name */
977
+ module: string;
978
+ /** the Move package ID */
979
+ package: string;
980
+ };
981
+ } /** Query by type */ | {
982
+ StructType: string;
983
+ } | {
984
+ AddressOwner: string;
985
+ } | {
986
+ ObjectOwner: string;
987
+ } | {
988
+ ObjectId: string;
989
+ } | {
990
+ ObjectIds: string[];
991
+ } | {
992
+ Version: string;
993
+ };
994
+ export interface HaneulObjectResponse {
995
+ data?: HaneulObjectData | null;
996
+ error?: ObjectResponseError | null;
997
+ }
998
+ /**
999
+ * The transaction for calling a Move function, either an entry function or a public function (which
1000
+ * cannot return references).
1001
+ */
1002
+ export interface MoveCallHaneulTransaction {
1003
+ /** The arguments to the function. */
1004
+ arguments?: SuiArgument[];
1005
+ /** The function to be called. */
1006
+ function: string;
1007
+ /** The specific module in the package containing the function. */
1008
+ module: string;
1009
+ /** The package containing the module and function. */
1010
+ package: string;
1011
+ /** The type arguments to the function. */
1012
+ type_arguments?: string[];
1013
+ }
1014
+ /**
1015
+ * This is the JSON-RPC type for the SUI system state object. It flattens all fields to make them
1016
+ * top-level fields such that it as minimum dependencies to the internal data structures of the SUI
1017
+ * system state type.
1018
+ */
1019
+ export interface HaneulSystemStateSummary {
1020
+ /** The list of active validators in the current epoch. */
1021
+ activeValidators: SuiValidatorSummary[];
1022
+ /** Map storing the number of epochs for which each validator has been below the low stake threshold. */
1023
+ atRiskValidators: [string, string][];
1024
+ /** The current epoch ID, starting from 0. */
1025
+ epoch: string;
1026
+ /** The duration of an epoch, in milliseconds. */
1027
+ epochDurationMs: string;
1028
+ /** Unix timestamp of the current epoch start */
1029
+ epochStartTimestampMs: string;
1030
+ /**
1031
+ * ID of the object that maps from a staking pool ID to the inactive validator that has that pool as
1032
+ * its staking pool.
1033
+ */
1034
+ inactivePoolsId: string;
1035
+ /** Number of inactive staking pools. */
1036
+ inactivePoolsSize: string;
1037
+ /**
1038
+ * Maximum number of active validators at any moment. We do not allow the number of validators in any
1039
+ * epoch to go above this.
1040
+ */
1041
+ maxValidatorCount: string;
1042
+ /** Lower-bound on the amount of stake required to become a validator. */
1043
+ minValidatorJoiningStake: string;
1044
+ /** ID of the object that contains the list of new validators that will join at the end of the epoch. */
1045
+ pendingActiveValidatorsId: string;
1046
+ /** Number of new validators that will join at the end of the epoch. */
1047
+ pendingActiveValidatorsSize: string;
1048
+ /** Removal requests from the validators. Each element is an index pointing to `active_validators`. */
1049
+ pendingRemovals: string[];
1050
+ /** The current protocol version, starting from 1. */
1051
+ protocolVersion: string;
1052
+ /** The reference gas price for the current epoch. */
1053
+ referenceGasPrice: string;
1054
+ /**
1055
+ * Whether the system is running in a downgraded safe mode due to a non-recoverable bug. This is set
1056
+ * whenever we failed to execute advance_epoch, and ended up executing advance_epoch_safe_mode. It can
1057
+ * be reset once we are able to successfully execute advance_epoch.
1058
+ */
1059
+ safeMode: boolean;
1060
+ /** Amount of computation rewards accumulated (and not yet distributed) during safe mode. */
1061
+ safeModeComputationRewards: string;
1062
+ /** Amount of non-refundable storage fee accumulated during safe mode. */
1063
+ safeModeNonRefundableStorageFee: string;
1064
+ /** Amount of storage rebates accumulated (and not yet burned) during safe mode. */
1065
+ safeModeStorageRebates: string;
1066
+ /** Amount of storage rewards accumulated (and not yet distributed) during safe mode. */
1067
+ safeModeStorageRewards: string;
1068
+ /** Balance of SUI set aside for stake subsidies that will be drawn down over time. */
1069
+ stakeSubsidyBalance: string;
1070
+ /** The amount of stake subsidy to be drawn down per epoch. This amount decays and decreases over time. */
1071
+ stakeSubsidyCurrentDistributionAmount: string;
1072
+ /**
1073
+ * The rate at which the distribution amount decays at the end of each period. Expressed in basis
1074
+ * points.
1075
+ */
1076
+ stakeSubsidyDecreaseRate: number;
1077
+ /**
1078
+ * This counter may be different from the current epoch number if in some epochs we decide to skip the
1079
+ * subsidy.
1080
+ */
1081
+ stakeSubsidyDistributionCounter: string;
1082
+ /** Number of distributions to occur before the distribution amount decays. */
1083
+ stakeSubsidyPeriodLength: string;
1084
+ /** The starting epoch in which stake subsidies start being paid out */
1085
+ stakeSubsidyStartEpoch: string;
1086
+ /** ID of the object that maps from staking pool's ID to the sui address of a validator. */
1087
+ stakingPoolMappingsId: string;
1088
+ /** Number of staking pool mappings. */
1089
+ stakingPoolMappingsSize: string;
1090
+ /**
1091
+ * The non-refundable portion of the storage fund coming from storage reinvestment, non-refundable
1092
+ * storage rebates and any leftover staking rewards.
1093
+ */
1094
+ storageFundNonRefundableBalance: string;
1095
+ /** The storage rebates of all the objects on-chain stored in the storage fund. */
1096
+ storageFundTotalObjectStorageRebates: string;
1097
+ /** The current version of the system state data structure type. */
1098
+ systemStateVersion: string;
1099
+ /** Total amount of stake from all active validators at the beginning of the epoch. */
1100
+ totalStake: string;
1101
+ /**
1102
+ * ID of the object that stores preactive validators, mapping their addresses to their `Validator`
1103
+ * structs.
1104
+ */
1105
+ validatorCandidatesId: string;
1106
+ /** Number of preactive validators. */
1107
+ validatorCandidatesSize: string;
1108
+ /**
1109
+ * A validator can have stake below `validator_low_stake_threshold` for this many epochs before being
1110
+ * kicked out.
1111
+ */
1112
+ validatorLowStakeGracePeriod: string;
1113
+ /**
1114
+ * Validators with stake amount below `validator_low_stake_threshold` are considered to have low stake
1115
+ * and will be escorted out of the validator set after being below this threshold for more than
1116
+ * `validator_low_stake_grace_period` number of epochs.
1117
+ */
1118
+ validatorLowStakeThreshold: string;
1119
+ /** A map storing the records of validator reporting each other. */
1120
+ validatorReportRecords: [string, string[]][];
1121
+ /**
1122
+ * Validators with stake below `validator_very_low_stake_threshold` will be removed immediately at
1123
+ * epoch change, no grace period.
1124
+ */
1125
+ validatorVeryLowStakeThreshold: string;
1126
+ }
1127
+ /** A single transaction in a programmable transaction block. */
1128
+ export type HaneulTransaction =
1129
+ /** A call to either an entry or a public Move function */
1130
+ {
1131
+ MoveCall: MoveCallHaneulTransaction;
1132
+ } /**
1133
+ * `(Vec<forall T:key+store. T>, address)` It sends n-objects to the specified address. These objects
1134
+ * must have store (public transfer) and either the previous owner must be an address or the object
1135
+ * must be newly created.
1136
+ */ | {
1137
+ TransferObjects: [SuiArgument[], SuiArgument];
1138
+ } /**
1139
+ * `(&mut Coin<T>, Vec<u64>)` -> `Vec<Coin<T>>` It splits off some amounts into a new coins with those
1140
+ * amounts
1141
+ */ | {
1142
+ SplitCoins: [SuiArgument, SuiArgument[]];
1143
+ } /** `(&mut Coin<T>, Vec<Coin<T>>)` It merges n-coins into the first coin */ | {
1144
+ MergeCoins: [SuiArgument, SuiArgument[]];
1145
+ } /**
1146
+ * Publishes a Move package. It takes the package bytes and a list of the package's transitive
1147
+ * dependencies to link against on-chain.
1148
+ */ | {
1149
+ Publish: string[];
1150
+ } /** Upgrades a Move package */ | {
1151
+ Upgrade: [string[], string, SuiArgument];
1152
+ } /**
1153
+ * `forall T: Vec<T> -> vector<T>` Given n-values of the same type, it constructs a vector. For non
1154
+ * objects or an empty vector, the type tag must be specified.
1155
+ */ | {
1156
+ MakeMoveVec: [string | null, SuiArgument[]];
1157
+ };
1158
+ export type HaneulTransactionBlockBuilderMode = 'Commit' | 'DevInspect';
1159
+ /**
1160
+ * This is the JSON-RPC type for the SUI validator. It flattens all inner structures to top-level
1161
+ * fields so that they are decoupled from the internal definitions.
1162
+ */
1163
+ export interface SuiValidatorSummary {
1164
+ commissionRate: string;
1165
+ description: string;
1166
+ /** ID of the exchange rate table object. */
1167
+ exchangeRatesId: string;
1168
+ /** Number of exchange rates in the table. */
1169
+ exchangeRatesSize: string;
1170
+ gasPrice: string;
1171
+ imageUrl: string;
1172
+ name: string;
1173
+ netAddress: string;
1174
+ networkPubkeyBytes: string;
1175
+ nextEpochCommissionRate: string;
1176
+ nextEpochGasPrice: string;
1177
+ nextEpochNetAddress?: string | null;
1178
+ nextEpochNetworkPubkeyBytes?: string | null;
1179
+ nextEpochP2pAddress?: string | null;
1180
+ nextEpochPrimaryAddress?: string | null;
1181
+ nextEpochProofOfPossession?: string | null;
1182
+ nextEpochProtocolPubkeyBytes?: string | null;
1183
+ nextEpochStake: string;
1184
+ nextEpochWorkerAddress?: string | null;
1185
+ nextEpochWorkerPubkeyBytes?: string | null;
1186
+ operationCapId: string;
1187
+ p2pAddress: string;
1188
+ /** Pending pool token withdrawn during the current epoch, emptied at epoch boundaries. */
1189
+ pendingPoolTokenWithdraw: string;
1190
+ /** Pending stake amount for this epoch. */
1191
+ pendingStake: string;
1192
+ /** Pending stake withdrawn during the current epoch, emptied at epoch boundaries. */
1193
+ pendingTotalSuiWithdraw: string;
1194
+ /** Total number of pool tokens issued by the pool. */
1195
+ poolTokenBalance: string;
1196
+ primaryAddress: string;
1197
+ projectUrl: string;
1198
+ proofOfPossessionBytes: string;
1199
+ protocolPubkeyBytes: string;
1200
+ /** The epoch stake rewards will be added here at the end of each epoch. */
1201
+ rewardsPool: string;
1202
+ /** The epoch at which this pool became active. */
1203
+ stakingPoolActivationEpoch?: string | null;
1204
+ /** The epoch at which this staking pool ceased to be active. `None` = {pre-active, active}, */
1205
+ stakingPoolDeactivationEpoch?: string | null;
1206
+ /** ID of the staking pool object. */
1207
+ stakingPoolId: string;
1208
+ /** The total number of SUI tokens in this pool. */
1209
+ stakingPoolSuiBalance: string;
1210
+ suiAddress: string;
1211
+ votingPower: string;
1212
+ workerAddress: string;
1213
+ workerPubkeyBytes: string;
1214
+ }
1215
+ export interface CoinSupply {
1216
+ value: string;
1217
+ }
1218
+ export interface HaneulTransactionBlock {
1219
+ data: TransactionBlockData;
1220
+ txSignatures: string[];
1221
+ }
1222
+ export interface TransactionBlockBytes {
1223
+ /** the gas objects to be used */
1224
+ gas: HaneulObjectRef[];
1225
+ /** objects to be used in this transaction */
1226
+ inputObjects: InputObjectKind[];
1227
+ /** BCS serialized transaction data bytes without its type tag, as base-64 encoded string. */
1228
+ txBytes: string;
1229
+ }
1230
+ export type TransactionBlockData = {
1231
+ gasData: HaneulGasData;
1232
+ messageVersion: 'v1';
1233
+ sender: string;
1234
+ transaction: HaneulTransactionBlockKind;
1235
+ };
1236
+ export type TransactionEffects =
1237
+ /** The response from processing a transaction or a certified transaction */
1238
+ {
1239
+ /** The abort error populated if the transaction failed with an abort code. */
1240
+ abortError?: SuiMoveAbort | null;
1241
+ /** ObjectRef and owner of new objects created. */
1242
+ created?: OwnedObjectRef[];
1243
+ /** Object Refs of objects now deleted (the old refs). */
1244
+ deleted?: HaneulObjectRef[];
1245
+ /** The set of transaction digests this transaction depends on. */
1246
+ dependencies?: string[];
1247
+ /**
1248
+ * The digest of the events emitted during execution, can be None if the transaction does not emit any
1249
+ * event.
1250
+ */
1251
+ eventsDigest?: string | null;
1252
+ /** The epoch when this transaction was executed. */
1253
+ executedEpoch: string;
1254
+ /**
1255
+ * The updated gas object reference. Have a dedicated field for convenient access. It's also included
1256
+ * in mutated.
1257
+ */
1258
+ gasObject: OwnedObjectRef;
1259
+ gasUsed: GasCostSummary;
1260
+ messageVersion: 'v1';
1261
+ /**
1262
+ * The version that every modified (mutated or deleted) object had before it was modified by this
1263
+ * transaction.
1264
+ */
1265
+ modifiedAtVersions?: TransactionBlockEffectsModifiedAtVersions[];
1266
+ /** ObjectRef and owner of mutated objects, including gas object. */
1267
+ mutated?: OwnedObjectRef[];
1268
+ /**
1269
+ * The object references of the shared objects used in this transaction. Empty if no shared objects
1270
+ * were used.
1271
+ */
1272
+ sharedObjects?: HaneulObjectRef[];
1273
+ /** The status of the execution */
1274
+ status: ExecutionStatus;
1275
+ /** The transaction digest */
1276
+ transactionDigest: string;
1277
+ /**
1278
+ * ObjectRef and owner of objects that are unwrapped in this transaction. Unwrapped objects are objects
1279
+ * that were wrapped into other objects in the past, and just got extracted out.
1280
+ */
1281
+ unwrapped?: OwnedObjectRef[];
1282
+ /** Object refs of objects previously wrapped in other objects but now deleted. */
1283
+ unwrappedThenDeleted?: HaneulObjectRef[];
1284
+ /** Object refs of objects now wrapped in other objects. */
1285
+ wrapped?: HaneulObjectRef[];
1286
+ };
1287
+ export interface TransactionBlockEffectsModifiedAtVersions {
1288
+ objectId: string;
1289
+ sequenceNumber: string;
1290
+ }
1291
+ export type HaneulTransactionBlockKind =
1292
+ /** A system transaction that will update epoch information on-chain. */
1293
+ {
1294
+ computation_charge: string;
1295
+ epoch: string;
1296
+ epoch_start_timestamp_ms: string;
1297
+ kind: 'ChangeEpoch';
1298
+ storage_charge: string;
1299
+ storage_rebate: string;
1300
+ } /** A system transaction used for initializing the initial state of the chain. */ | {
1301
+ kind: 'Genesis';
1302
+ objects: string[];
1303
+ } /** A system transaction marking the start of a series of transactions scheduled as part of a checkpoint */ | {
1304
+ commit_timestamp_ms: string;
1305
+ epoch: string;
1306
+ kind: 'ConsensusCommitPrologue';
1307
+ round: string;
1308
+ } /** A series of transactions where the results of one transaction can be used in future transactions */ | {
1309
+ /** Input objects or primitive values */
1310
+ inputs: SuiCallArg[];
1311
+ kind: 'ProgrammableTransaction';
1312
+ /**
1313
+ * The transactions to be executed sequentially. A failure in any transaction will result in the
1314
+ * failure of the entire programmable transaction block.
1315
+ */
1316
+ transactions: HaneulTransaction[];
1317
+ } /** A transaction which updates global authenticator state */ | {
1318
+ epoch: string;
1319
+ kind: 'AuthenticatorStateUpdate';
1320
+ new_active_jwks: SuiActiveJwk[];
1321
+ round: string;
1322
+ } /** A transaction which updates global randomness state */ | {
1323
+ epoch: string;
1324
+ kind: 'RandomnessStateUpdate';
1325
+ random_bytes: number[];
1326
+ randomness_round: string;
1327
+ } /** The transaction which occurs only at the end of the epoch */ | {
1328
+ kind: 'EndOfEpochTransaction';
1329
+ transactions: SuiEndOfEpochTransactionKind[];
1330
+ } | {
1331
+ commit_timestamp_ms: string;
1332
+ consensus_commit_digest: string;
1333
+ epoch: string;
1334
+ kind: 'ConsensusCommitPrologueV2';
1335
+ round: string;
1336
+ } | {
1337
+ commit_timestamp_ms: string;
1338
+ consensus_commit_digest: string;
1339
+ consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments;
1340
+ epoch: string;
1341
+ kind: 'ConsensusCommitPrologueV3';
1342
+ round: string;
1343
+ sub_dag_index?: string | null;
1344
+ } | {
1345
+ additional_state_digest: string;
1346
+ commit_timestamp_ms: string;
1347
+ consensus_commit_digest: string;
1348
+ consensus_determined_version_assignments: ConsensusDeterminedVersionAssignments;
1349
+ epoch: string;
1350
+ kind: 'ConsensusCommitPrologueV4';
1351
+ round: string;
1352
+ sub_dag_index?: string | null;
1353
+ } /** A series of commands where the results of one command can be used in future commands */ | {
1354
+ /** Input objects or primitive values */
1355
+ inputs: SuiCallArg[];
1356
+ kind: 'ProgrammableSystemTransaction';
1357
+ /**
1358
+ * The transactions to be executed sequentially. A failure in any transaction will result in the
1359
+ * failure of the entire programmable transaction block.
1360
+ */
1361
+ transactions: HaneulTransaction[];
1362
+ };
1363
+ export interface HaneulTransactionBlockResponse {
1364
+ balanceChanges?: BalanceChange[] | null;
1365
+ /**
1366
+ * The checkpoint number when this transaction was included and hence finalized. This is only returned
1367
+ * in the read api, not in the transaction execution api.
1368
+ */
1369
+ checkpoint?: string | null;
1370
+ confirmedLocalExecution?: boolean | null;
1371
+ digest: string;
1372
+ effects?: TransactionEffects | null;
1373
+ errors?: string[];
1374
+ events?: HaneulEvent[] | null;
1375
+ objectChanges?: HaneulObjectChange[] | null;
1376
+ rawEffects?: number[];
1377
+ /**
1378
+ * BCS encoded [SenderSignedData] that includes input object references returns empty array if
1379
+ * `show_raw_transaction` is false
1380
+ */
1381
+ rawTransaction?: string;
1382
+ timestampMs?: string | null;
1383
+ /** Transaction input data */
1384
+ transaction?: HaneulTransactionBlock | null;
1385
+ }
1386
+ export interface HaneulTransactionBlockResponseOptions {
1387
+ /** Whether to show balance_changes. Default to be False */
1388
+ showBalanceChanges?: boolean;
1389
+ /** Whether to show transaction effects. Default to be False */
1390
+ showEffects?: boolean;
1391
+ /** Whether to show transaction events. Default to be False */
1392
+ showEvents?: boolean;
1393
+ /** Whether to show transaction input data. Default to be False */
1394
+ showInput?: boolean;
1395
+ /** Whether to show object_changes. Default to be False */
1396
+ showObjectChanges?: boolean;
1397
+ /** Whether to show raw transaction effects. Default to be False */
1398
+ showRawEffects?: boolean;
1399
+ /** Whether to show bcs-encoded transaction input data */
1400
+ showRawInput?: boolean;
1401
+ }
1402
+ export interface HaneulTransactionBlockResponseQuery {
1403
+ /** If None, no filter will be applied */
1404
+ filter?: TransactionFilter | null;
1405
+ /** config which fields to include in the response, by default only digest is included */
1406
+ options?: HaneulTransactionBlockResponseOptions | null;
1407
+ }
1408
+ export type TransactionFilter =
1409
+ /** CURRENTLY NOT SUPPORTED. Query by checkpoint. */
1410
+ {
1411
+ Checkpoint: string;
1412
+ } /** Query by move function. */ | {
1413
+ MoveFunction: {
1414
+ function?: string | null;
1415
+ module?: string | null;
1416
+ package: string;
1417
+ };
1418
+ } /** Query by input object. */ | {
1419
+ InputObject: string;
1420
+ } /** Query by changed object, including created, mutated and unwrapped objects. */ | {
1421
+ ChangedObject: string;
1422
+ } /** Query for transactions that touch this object. */ | {
1423
+ AffectedObject: string;
1424
+ } /** Query by sender address. */ | {
1425
+ FromAddress: string;
1426
+ } /** Query by recipient address. */ | {
1427
+ ToAddress: string;
1428
+ } /** Query by sender and recipient address. */ | {
1429
+ FromAndToAddress: {
1430
+ from: string;
1431
+ to: string;
1432
+ };
1433
+ } /** CURRENTLY NOT SUPPORTED. Query txs that have a given address as sender or recipient. */ | {
1434
+ FromOrToAddress: {
1435
+ addr: string;
1436
+ };
1437
+ } /** Query by transaction kind */ | {
1438
+ TransactionKind: string;
1439
+ } /** Query transactions of any given kind in the input. */ | {
1440
+ TransactionKindIn: string[];
1441
+ };
1442
+ export interface TransferObjectParams {
1443
+ objectId: string;
1444
+ recipient: string;
1445
+ }
1446
+ /** Identifies a struct and the module it was defined in */
1447
+ export interface TypeOrigin {
1448
+ datatype_name: string;
1449
+ module_name: string;
1450
+ package: string;
1451
+ }
1452
+ /** Upgraded package info for the linkage table */
1453
+ export interface UpgradeInfo {
1454
+ /** ID of the upgraded packages */
1455
+ upgraded_id: string;
1456
+ /** Version of the upgraded package */
1457
+ upgraded_version: string;
1458
+ }
1459
+ export interface ValidatorApy {
1460
+ address: string;
1461
+ apy: number;
1462
+ }
1463
+ export interface ValidatorsApy {
1464
+ apys: ValidatorApy[];
1465
+ epoch: string;
1466
+ }
1467
+ /** An zk login authenticator with all the necessary fields. */
1468
+ export interface ZkLoginAuthenticator {
1469
+ inputs: ZkLoginInputs;
1470
+ maxEpoch: string;
1471
+ userSignature: Signature;
1472
+ }
1473
+ /** All inputs required for the zk login proof verification and other public inputs. */
1474
+ export interface ZkLoginInputs {
1475
+ addressSeed: string;
1476
+ headerBase64: string;
1477
+ issBase64Details: Claim;
1478
+ proofPoints: ZkLoginProof;
1479
+ }
1480
+ export type ZkLoginIntentScope = 'TransactionData' | 'PersonalMessage';
1481
+ /** The struct for zk login proof. */
1482
+ export interface ZkLoginProof {
1483
+ a: string[];
1484
+ b: string[][];
1485
+ c: string[];
1486
+ }
1487
+ export interface ZkLoginVerifyResult {
1488
+ /** The errors field captures any verification error */
1489
+ errors: string[];
1490
+ /** The boolean result of the verification. If true, errors should be empty. */
1491
+ success: boolean;
1492
+ }