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