@mysten/sui 1.42.0 → 1.43.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 (424) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/bcs/bcs.d.ts +47 -111
  3. package/dist/cjs/bcs/bcs.js +17 -17
  4. package/dist/cjs/bcs/bcs.js.map +2 -2
  5. package/dist/cjs/bcs/effects.d.ts +2 -6
  6. package/dist/cjs/bcs/effects.js +1 -1
  7. package/dist/cjs/bcs/effects.js.map +2 -2
  8. package/dist/cjs/bcs/index.d.ts +49 -117
  9. package/dist/cjs/bcs/type-tag-serializer.d.ts +1 -0
  10. package/dist/cjs/bcs/type-tag-serializer.js +5 -1
  11. package/dist/cjs/bcs/type-tag-serializer.js.map +2 -2
  12. package/dist/cjs/cryptography/intent.js +1 -1
  13. package/dist/cjs/cryptography/intent.js.map +2 -2
  14. package/dist/cjs/cryptography/keypair.js +1 -1
  15. package/dist/cjs/cryptography/keypair.js.map +2 -2
  16. package/dist/cjs/cryptography/publickey.js +1 -1
  17. package/dist/cjs/cryptography/publickey.js.map +2 -2
  18. package/dist/cjs/cryptography/signature.d.ts +2 -2
  19. package/dist/cjs/experimental/client.js +0 -4
  20. package/dist/cjs/experimental/client.js.map +2 -2
  21. package/dist/cjs/experimental/types.d.ts +1 -7
  22. package/dist/cjs/experimental/types.js.map +1 -1
  23. package/dist/cjs/graphql/generated/queries.d.ts +1 -1
  24. package/dist/cjs/graphql/generated/queries.js.map +1 -1
  25. package/dist/cjs/grpc/core.d.ts +3 -1
  26. package/dist/cjs/grpc/core.js +5 -3
  27. package/dist/cjs/grpc/core.js.map +2 -2
  28. package/dist/cjs/grpc/proto/google/protobuf/any.d.ts +6 -6
  29. package/dist/cjs/grpc/proto/google/protobuf/any.js +20 -20
  30. package/dist/cjs/grpc/proto/google/protobuf/any.js.map +2 -2
  31. package/dist/cjs/grpc/proto/google/protobuf/duration.d.ts +4 -4
  32. package/dist/cjs/grpc/proto/google/protobuf/duration.js +8 -12
  33. package/dist/cjs/grpc/proto/google/protobuf/duration.js.map +2 -2
  34. package/dist/cjs/grpc/proto/google/protobuf/empty.d.ts +1 -1
  35. package/dist/cjs/grpc/proto/google/protobuf/empty.js.map +2 -2
  36. package/dist/cjs/grpc/proto/google/protobuf/field_mask.d.ts +4 -4
  37. package/dist/cjs/grpc/proto/google/protobuf/field_mask.js +8 -7
  38. package/dist/cjs/grpc/proto/google/protobuf/field_mask.js.map +2 -2
  39. package/dist/cjs/grpc/proto/google/protobuf/struct.d.ts +10 -10
  40. package/dist/cjs/grpc/proto/google/protobuf/struct.js +29 -17
  41. package/dist/cjs/grpc/proto/google/protobuf/struct.js.map +2 -2
  42. package/dist/cjs/grpc/proto/google/protobuf/timestamp.d.ts +4 -4
  43. package/dist/cjs/grpc/proto/google/protobuf/timestamp.js +21 -18
  44. package/dist/cjs/grpc/proto/google/protobuf/timestamp.js.map +2 -2
  45. package/dist/cjs/grpc/proto/google/rpc/error_details.d.ts +2 -2
  46. package/dist/cjs/grpc/proto/google/rpc/error_details.js +40 -11
  47. package/dist/cjs/grpc/proto/google/rpc/error_details.js.map +2 -2
  48. package/dist/cjs/grpc/proto/google/rpc/status.d.ts +2 -2
  49. package/dist/cjs/grpc/proto/google/rpc/status.js +1 -1
  50. package/dist/cjs/grpc/proto/google/rpc/status.js.map +2 -2
  51. package/dist/cjs/grpc/proto/sui/rpc/v2/argument.d.ts +1 -1
  52. package/dist/cjs/grpc/proto/sui/rpc/v2/argument.js +7 -1
  53. package/dist/cjs/grpc/proto/sui/rpc/v2/argument.js.map +2 -2
  54. package/dist/cjs/grpc/proto/sui/rpc/v2/balance_change.d.ts +1 -1
  55. package/dist/cjs/grpc/proto/sui/rpc/v2/balance_change.js.map +2 -2
  56. package/dist/cjs/grpc/proto/sui/rpc/v2/bcs.d.ts +1 -1
  57. package/dist/cjs/grpc/proto/sui/rpc/v2/bcs.js.map +2 -2
  58. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.d.ts +6 -6
  59. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.js +12 -7
  60. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.js.map +2 -2
  61. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.d.ts +3 -3
  62. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.js +16 -4
  63. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.js.map +2 -2
  64. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.d.ts +5 -5
  65. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.js +35 -13
  66. package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.js.map +2 -2
  67. package/dist/cjs/grpc/proto/sui/rpc/v2/effects.d.ts +6 -6
  68. package/dist/cjs/grpc/proto/sui/rpc/v2/effects.js +65 -19
  69. package/dist/cjs/grpc/proto/sui/rpc/v2/effects.js.map +2 -2
  70. package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.d.ts +5 -5
  71. package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.js +4 -8
  72. package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.js.map +2 -2
  73. package/dist/cjs/grpc/proto/sui/rpc/v2/error_reason.js.map +2 -2
  74. package/dist/cjs/grpc/proto/sui/rpc/v2/event.d.ts +3 -3
  75. package/dist/cjs/grpc/proto/sui/rpc/v2/event.js +2 -2
  76. package/dist/cjs/grpc/proto/sui/rpc/v2/event.js.map +2 -2
  77. package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.d.ts +8 -8
  78. package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.js +21 -10
  79. package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.js.map +2 -2
  80. package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.d.ts +12 -12
  81. package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.js +75 -17
  82. package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.js.map +2 -2
  83. package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.d.ts +1 -1
  84. package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.js +0 -4
  85. package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.js.map +2 -2
  86. package/dist/cjs/grpc/proto/sui/rpc/v2/input.d.ts +2 -2
  87. package/dist/cjs/grpc/proto/sui/rpc/v2/input.js +8 -3
  88. package/dist/cjs/grpc/proto/sui/rpc/v2/input.js.map +2 -2
  89. package/dist/cjs/grpc/proto/sui/rpc/v2/jwk.d.ts +1 -1
  90. package/dist/cjs/grpc/proto/sui/rpc/v2/jwk.js.map +2 -2
  91. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +18 -18
  92. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.js +50 -8
  93. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.js.map +2 -2
  94. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.d.ts +15 -15
  95. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.js +41 -20
  96. package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.js.map +2 -2
  97. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.d.ts +1 -1
  98. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.js +126 -20
  99. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.js.map +2 -2
  100. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +12 -12
  101. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.js +29 -5
  102. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.js.map +2 -2
  103. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.d.ts +5 -5
  104. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.js +16 -6
  105. package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.js.map +2 -2
  106. package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.client.d.ts +8 -8
  107. package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.client.js +15 -3
  108. package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.client.js.map +2 -2
  109. package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.d.ts +3 -3
  110. package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.js +18 -7
  111. package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.js.map +2 -2
  112. package/dist/cjs/grpc/proto/sui/rpc/v2/object.d.ts +5 -5
  113. package/dist/cjs/grpc/proto/sui/rpc/v2/object.js +4 -8
  114. package/dist/cjs/grpc/proto/sui/rpc/v2/object.js.map +2 -2
  115. package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.d.ts +1 -1
  116. package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.js +0 -1
  117. package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.js.map +2 -2
  118. package/dist/cjs/grpc/proto/sui/rpc/v2/owner.d.ts +1 -1
  119. package/dist/cjs/grpc/proto/sui/rpc/v2/owner.js +7 -2
  120. package/dist/cjs/grpc/proto/sui/rpc/v2/owner.js.map +2 -2
  121. package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.d.ts +1 -1
  122. package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.js +22 -11
  123. package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.js.map +2 -2
  124. package/dist/cjs/grpc/proto/sui/rpc/v2/signature.d.ts +8 -8
  125. package/dist/cjs/grpc/proto/sui/rpc/v2/signature.js +73 -17
  126. package/dist/cjs/grpc/proto/sui/rpc/v2/signature.js.map +2 -2
  127. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_scheme.js.map +2 -2
  128. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.ts +6 -6
  129. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +8 -2
  130. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.js.map +2 -2
  131. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.d.ts +5 -5
  132. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.js +7 -6
  133. package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.js.map +2 -2
  134. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.d.ts +14 -14
  135. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.js +36 -6
  136. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.js.map +2 -2
  137. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.d.ts +5 -5
  138. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.js +60 -14
  139. package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.js.map +2 -2
  140. package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.d.ts +6 -6
  141. package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.js +8 -2
  142. package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.js.map +2 -2
  143. package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.d.ts +4 -4
  144. package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.js +9 -4
  145. package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.js.map +2 -2
  146. package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.d.ts +1 -1
  147. package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.js +26 -59
  148. package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.js.map +2 -2
  149. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.d.ts +29 -29
  150. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.js +210 -71
  151. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.js.map +2 -2
  152. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +8 -8
  153. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +15 -3
  154. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js.map +2 -2
  155. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +9 -9
  156. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.js +62 -16
  157. package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.js.map +2 -2
  158. package/dist/cjs/jsonRpc/client.d.ts +2 -6
  159. package/dist/cjs/jsonRpc/client.js +0 -8
  160. package/dist/cjs/jsonRpc/client.js.map +2 -2
  161. package/dist/cjs/keypairs/passkey/publickey.d.ts +1 -1
  162. package/dist/cjs/multisig/publickey.d.ts +10 -10
  163. package/dist/cjs/multisig/publickey.js +2 -2
  164. package/dist/cjs/multisig/publickey.js.map +2 -2
  165. package/dist/cjs/transactions/TransactionData.d.ts +1 -0
  166. package/dist/cjs/transactions/TransactionData.js +71 -0
  167. package/dist/cjs/transactions/TransactionData.js.map +3 -3
  168. package/dist/cjs/transactions/serializer.js +1 -1
  169. package/dist/cjs/transactions/serializer.js.map +2 -2
  170. package/dist/cjs/utils/index.d.ts +1 -0
  171. package/dist/cjs/utils/index.js +2 -0
  172. package/dist/cjs/utils/index.js.map +2 -2
  173. package/dist/cjs/version.d.ts +2 -2
  174. package/dist/cjs/version.js +2 -2
  175. package/dist/cjs/version.js.map +1 -1
  176. package/dist/cjs/zklogin/bcs.d.ts +1 -3
  177. package/dist/cjs/zklogin/bcs.js +1 -1
  178. package/dist/cjs/zklogin/bcs.js.map +2 -2
  179. package/dist/cjs/zklogin/publickey.d.ts +1 -1
  180. package/dist/cjs/zklogin/signature.d.ts +1 -1
  181. package/dist/esm/bcs/bcs.d.ts +47 -111
  182. package/dist/esm/bcs/bcs.js +17 -17
  183. package/dist/esm/bcs/bcs.js.map +2 -2
  184. package/dist/esm/bcs/effects.d.ts +2 -6
  185. package/dist/esm/bcs/effects.js +1 -1
  186. package/dist/esm/bcs/effects.js.map +2 -2
  187. package/dist/esm/bcs/index.d.ts +49 -117
  188. package/dist/esm/bcs/type-tag-serializer.d.ts +1 -0
  189. package/dist/esm/bcs/type-tag-serializer.js +5 -1
  190. package/dist/esm/bcs/type-tag-serializer.js.map +2 -2
  191. package/dist/esm/cryptography/intent.js +1 -1
  192. package/dist/esm/cryptography/intent.js.map +2 -2
  193. package/dist/esm/cryptography/keypair.js +1 -1
  194. package/dist/esm/cryptography/keypair.js.map +2 -2
  195. package/dist/esm/cryptography/publickey.js +1 -1
  196. package/dist/esm/cryptography/publickey.js.map +2 -2
  197. package/dist/esm/cryptography/signature.d.ts +2 -2
  198. package/dist/esm/experimental/client.js +0 -4
  199. package/dist/esm/experimental/client.js.map +2 -2
  200. package/dist/esm/experimental/types.d.ts +1 -7
  201. package/dist/esm/graphql/generated/queries.d.ts +1 -1
  202. package/dist/esm/graphql/generated/queries.js.map +1 -1
  203. package/dist/esm/grpc/core.d.ts +3 -1
  204. package/dist/esm/grpc/core.js +5 -3
  205. package/dist/esm/grpc/core.js.map +2 -2
  206. package/dist/esm/grpc/proto/google/protobuf/any.d.ts +6 -6
  207. package/dist/esm/grpc/proto/google/protobuf/any.js +20 -20
  208. package/dist/esm/grpc/proto/google/protobuf/any.js.map +2 -2
  209. package/dist/esm/grpc/proto/google/protobuf/duration.d.ts +4 -4
  210. package/dist/esm/grpc/proto/google/protobuf/duration.js +8 -12
  211. package/dist/esm/grpc/proto/google/protobuf/duration.js.map +2 -2
  212. package/dist/esm/grpc/proto/google/protobuf/empty.d.ts +1 -1
  213. package/dist/esm/grpc/proto/google/protobuf/empty.js.map +2 -2
  214. package/dist/esm/grpc/proto/google/protobuf/field_mask.d.ts +4 -4
  215. package/dist/esm/grpc/proto/google/protobuf/field_mask.js +8 -7
  216. package/dist/esm/grpc/proto/google/protobuf/field_mask.js.map +2 -2
  217. package/dist/esm/grpc/proto/google/protobuf/struct.d.ts +10 -10
  218. package/dist/esm/grpc/proto/google/protobuf/struct.js +29 -17
  219. package/dist/esm/grpc/proto/google/protobuf/struct.js.map +2 -2
  220. package/dist/esm/grpc/proto/google/protobuf/timestamp.d.ts +4 -4
  221. package/dist/esm/grpc/proto/google/protobuf/timestamp.js +21 -18
  222. package/dist/esm/grpc/proto/google/protobuf/timestamp.js.map +2 -2
  223. package/dist/esm/grpc/proto/google/rpc/error_details.d.ts +2 -2
  224. package/dist/esm/grpc/proto/google/rpc/error_details.js +40 -11
  225. package/dist/esm/grpc/proto/google/rpc/error_details.js.map +2 -2
  226. package/dist/esm/grpc/proto/google/rpc/status.d.ts +2 -2
  227. package/dist/esm/grpc/proto/google/rpc/status.js +1 -1
  228. package/dist/esm/grpc/proto/google/rpc/status.js.map +2 -2
  229. package/dist/esm/grpc/proto/sui/rpc/v2/argument.d.ts +1 -1
  230. package/dist/esm/grpc/proto/sui/rpc/v2/argument.js +7 -1
  231. package/dist/esm/grpc/proto/sui/rpc/v2/argument.js.map +2 -2
  232. package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.d.ts +1 -1
  233. package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.js.map +2 -2
  234. package/dist/esm/grpc/proto/sui/rpc/v2/bcs.d.ts +1 -1
  235. package/dist/esm/grpc/proto/sui/rpc/v2/bcs.js.map +2 -2
  236. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.d.ts +6 -6
  237. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.js +12 -7
  238. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.js.map +2 -2
  239. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.d.ts +3 -3
  240. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.js +16 -4
  241. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.js.map +2 -2
  242. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.d.ts +5 -5
  243. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.js +35 -13
  244. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.js.map +2 -2
  245. package/dist/esm/grpc/proto/sui/rpc/v2/effects.d.ts +6 -6
  246. package/dist/esm/grpc/proto/sui/rpc/v2/effects.js +65 -19
  247. package/dist/esm/grpc/proto/sui/rpc/v2/effects.js.map +2 -2
  248. package/dist/esm/grpc/proto/sui/rpc/v2/epoch.d.ts +5 -5
  249. package/dist/esm/grpc/proto/sui/rpc/v2/epoch.js +4 -8
  250. package/dist/esm/grpc/proto/sui/rpc/v2/epoch.js.map +2 -2
  251. package/dist/esm/grpc/proto/sui/rpc/v2/error_reason.js.map +2 -2
  252. package/dist/esm/grpc/proto/sui/rpc/v2/event.d.ts +3 -3
  253. package/dist/esm/grpc/proto/sui/rpc/v2/event.js +2 -2
  254. package/dist/esm/grpc/proto/sui/rpc/v2/event.js.map +2 -2
  255. package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.d.ts +8 -8
  256. package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.js +21 -10
  257. package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.js.map +2 -2
  258. package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.d.ts +12 -12
  259. package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.js +75 -17
  260. package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.js.map +2 -2
  261. package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.d.ts +1 -1
  262. package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.js +0 -4
  263. package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.js.map +2 -2
  264. package/dist/esm/grpc/proto/sui/rpc/v2/input.d.ts +2 -2
  265. package/dist/esm/grpc/proto/sui/rpc/v2/input.js +8 -3
  266. package/dist/esm/grpc/proto/sui/rpc/v2/input.js.map +2 -2
  267. package/dist/esm/grpc/proto/sui/rpc/v2/jwk.d.ts +1 -1
  268. package/dist/esm/grpc/proto/sui/rpc/v2/jwk.js.map +2 -2
  269. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +18 -18
  270. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.js +50 -8
  271. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.js.map +2 -2
  272. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.d.ts +15 -15
  273. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.js +41 -20
  274. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.js.map +2 -2
  275. package/dist/esm/grpc/proto/sui/rpc/v2/move_package.d.ts +1 -1
  276. package/dist/esm/grpc/proto/sui/rpc/v2/move_package.js +126 -20
  277. package/dist/esm/grpc/proto/sui/rpc/v2/move_package.js.map +2 -2
  278. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +12 -12
  279. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.js +29 -5
  280. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.js.map +2 -2
  281. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.d.ts +5 -5
  282. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.js +16 -6
  283. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.js.map +2 -2
  284. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.d.ts +8 -8
  285. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.js +15 -3
  286. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.js.map +2 -2
  287. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.d.ts +3 -3
  288. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.js +18 -7
  289. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.js.map +2 -2
  290. package/dist/esm/grpc/proto/sui/rpc/v2/object.d.ts +5 -5
  291. package/dist/esm/grpc/proto/sui/rpc/v2/object.js +4 -8
  292. package/dist/esm/grpc/proto/sui/rpc/v2/object.js.map +2 -2
  293. package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.d.ts +1 -1
  294. package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.js +0 -1
  295. package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.js.map +2 -2
  296. package/dist/esm/grpc/proto/sui/rpc/v2/owner.d.ts +1 -1
  297. package/dist/esm/grpc/proto/sui/rpc/v2/owner.js +7 -2
  298. package/dist/esm/grpc/proto/sui/rpc/v2/owner.js.map +2 -2
  299. package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.d.ts +1 -1
  300. package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.js +22 -11
  301. package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.js.map +2 -2
  302. package/dist/esm/grpc/proto/sui/rpc/v2/signature.d.ts +8 -8
  303. package/dist/esm/grpc/proto/sui/rpc/v2/signature.js +73 -17
  304. package/dist/esm/grpc/proto/sui/rpc/v2/signature.js.map +2 -2
  305. package/dist/esm/grpc/proto/sui/rpc/v2/signature_scheme.js.map +2 -2
  306. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.ts +6 -6
  307. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +8 -2
  308. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.js.map +2 -2
  309. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.d.ts +5 -5
  310. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.js +7 -6
  311. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.js.map +2 -2
  312. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.d.ts +14 -14
  313. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.js +36 -6
  314. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.js.map +2 -2
  315. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.d.ts +5 -5
  316. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.js +60 -14
  317. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.js.map +2 -2
  318. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.d.ts +6 -6
  319. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.js +8 -2
  320. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.js.map +2 -2
  321. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.d.ts +4 -4
  322. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.js +9 -4
  323. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.js.map +2 -2
  324. package/dist/esm/grpc/proto/sui/rpc/v2/system_state.d.ts +1 -1
  325. package/dist/esm/grpc/proto/sui/rpc/v2/system_state.js +26 -59
  326. package/dist/esm/grpc/proto/sui/rpc/v2/system_state.js.map +2 -2
  327. package/dist/esm/grpc/proto/sui/rpc/v2/transaction.d.ts +29 -29
  328. package/dist/esm/grpc/proto/sui/rpc/v2/transaction.js +210 -71
  329. package/dist/esm/grpc/proto/sui/rpc/v2/transaction.js.map +2 -2
  330. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +8 -8
  331. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +15 -3
  332. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js.map +2 -2
  333. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +9 -9
  334. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.js +62 -16
  335. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.js.map +2 -2
  336. package/dist/esm/jsonRpc/client.d.ts +2 -6
  337. package/dist/esm/jsonRpc/client.js +0 -8
  338. package/dist/esm/jsonRpc/client.js.map +2 -2
  339. package/dist/esm/keypairs/passkey/publickey.d.ts +1 -1
  340. package/dist/esm/multisig/publickey.d.ts +10 -10
  341. package/dist/esm/multisig/publickey.js +2 -2
  342. package/dist/esm/multisig/publickey.js.map +2 -2
  343. package/dist/esm/transactions/TransactionData.d.ts +1 -0
  344. package/dist/esm/transactions/TransactionData.js +71 -0
  345. package/dist/esm/transactions/TransactionData.js.map +3 -3
  346. package/dist/esm/transactions/serializer.js +1 -1
  347. package/dist/esm/transactions/serializer.js.map +2 -2
  348. package/dist/esm/utils/index.d.ts +1 -0
  349. package/dist/esm/utils/index.js +2 -0
  350. package/dist/esm/utils/index.js.map +2 -2
  351. package/dist/esm/version.d.ts +2 -2
  352. package/dist/esm/version.js +2 -2
  353. package/dist/esm/version.js.map +1 -1
  354. package/dist/esm/zklogin/bcs.d.ts +1 -3
  355. package/dist/esm/zklogin/bcs.js +1 -1
  356. package/dist/esm/zklogin/bcs.js.map +2 -2
  357. package/dist/esm/zklogin/publickey.d.ts +1 -1
  358. package/dist/esm/zklogin/signature.d.ts +1 -1
  359. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  360. package/dist/tsconfig.tsbuildinfo +1 -1
  361. package/package.json +2 -2
  362. package/src/bcs/bcs.ts +17 -17
  363. package/src/bcs/effects.ts +1 -1
  364. package/src/bcs/type-tag-serializer.ts +4 -0
  365. package/src/cryptography/intent.ts +1 -1
  366. package/src/cryptography/keypair.ts +1 -1
  367. package/src/cryptography/publickey.ts +1 -1
  368. package/src/experimental/client.ts +0 -4
  369. package/src/experimental/types.ts +4 -17
  370. package/src/graphql/generated/queries.ts +1 -1
  371. package/src/grpc/core.ts +28 -8
  372. package/src/grpc/proto/google/protobuf/any.ts +159 -144
  373. package/src/grpc/proto/google/protobuf/duration.ts +77 -74
  374. package/src/grpc/proto/google/protobuf/empty.ts +5 -6
  375. package/src/grpc/proto/google/protobuf/field_mask.ts +59 -47
  376. package/src/grpc/proto/google/protobuf/struct.ts +223 -201
  377. package/src/grpc/proto/google/protobuf/timestamp.ts +121 -100
  378. package/src/grpc/proto/google/rpc/error_details.ts +388 -352
  379. package/src/grpc/proto/google/rpc/status.ts +32 -32
  380. package/src/grpc/proto/sui/rpc/v2/argument.ts +60 -54
  381. package/src/grpc/proto/sui/rpc/v2/balance_change.ts +26 -26
  382. package/src/grpc/proto/sui/rpc/v2/bcs.ts +19 -19
  383. package/src/grpc/proto/sui/rpc/v2/checkpoint.ts +79 -66
  384. package/src/grpc/proto/sui/rpc/v2/checkpoint_contents.ts +72 -60
  385. package/src/grpc/proto/sui/rpc/v2/checkpoint_summary.ts +219 -158
  386. package/src/grpc/proto/sui/rpc/v2/effects.ts +418 -318
  387. package/src/grpc/proto/sui/rpc/v2/epoch.ts +90 -62
  388. package/src/grpc/proto/sui/rpc/v2/error_reason.ts +12 -12
  389. package/src/grpc/proto/sui/rpc/v2/event.ts +76 -76
  390. package/src/grpc/proto/sui/rpc/v2/executed_transaction.ts +99 -80
  391. package/src/grpc/proto/sui/rpc/v2/execution_status.ts +888 -755
  392. package/src/grpc/proto/sui/rpc/v2/gas_cost_summary.ts +62 -34
  393. package/src/grpc/proto/sui/rpc/v2/input.ts +102 -89
  394. package/src/grpc/proto/sui/rpc/v2/jwk.ts +51 -51
  395. package/src/grpc/proto/sui/rpc/v2/ledger_service.client.ts +196 -106
  396. package/src/grpc/proto/sui/rpc/v2/ledger_service.ts +420 -328
  397. package/src/grpc/proto/sui/rpc/v2/move_package.ts +608 -486
  398. package/src/grpc/proto/sui/rpc/v2/move_package_service.client.ts +114 -63
  399. package/src/grpc/proto/sui/rpc/v2/move_package_service.ts +190 -172
  400. package/src/grpc/proto/sui/rpc/v2/name_service.client.ts +62 -37
  401. package/src/grpc/proto/sui/rpc/v2/name_service.ts +123 -112
  402. package/src/grpc/proto/sui/rpc/v2/object.ts +147 -120
  403. package/src/grpc/proto/sui/rpc/v2/object_reference.ts +33 -26
  404. package/src/grpc/proto/sui/rpc/v2/owner.ts +61 -48
  405. package/src/grpc/proto/sui/rpc/v2/protocol_config.ts +43 -24
  406. package/src/grpc/proto/sui/rpc/v2/signature.ts +596 -503
  407. package/src/grpc/proto/sui/rpc/v2/signature_scheme.ts +28 -28
  408. package/src/grpc/proto/sui/rpc/v2/signature_verification_service.client.ts +43 -29
  409. package/src/grpc/proto/sui/rpc/v2/signature_verification_service.ts +68 -67
  410. package/src/grpc/proto/sui/rpc/v2/state_service.client.ts +140 -76
  411. package/src/grpc/proto/sui/rpc/v2/state_service.ts +642 -573
  412. package/src/grpc/proto/sui/rpc/v2/subscription_service.client.ts +60 -48
  413. package/src/grpc/proto/sui/rpc/v2/subscription_service.ts +50 -37
  414. package/src/grpc/proto/sui/rpc/v2/system_state.ts +1055 -689
  415. package/src/grpc/proto/sui/rpc/v2/transaction.ts +1535 -1110
  416. package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.client.ts +65 -38
  417. package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.ts +185 -139
  418. package/src/jsonRpc/client.ts +2 -17
  419. package/src/multisig/publickey.ts +14 -14
  420. package/src/transactions/TransactionData.ts +100 -1
  421. package/src/transactions/serializer.ts +1 -1
  422. package/src/utils/index.ts +1 -0
  423. package/src/version.ts +2 -2
  424. package/src/zklogin/bcs.ts +1 -1
@@ -2,6 +2,8 @@ import type { Experimental_CoreClientOptions, Experimental_SuiClientTypes } from
2
2
  import { Experimental_CoreClient } from '../experimental/index.js';
3
3
  import type { SuiGrpcClient } from './client.js';
4
4
  import type { TransactionEffects } from './proto/sui/rpc/v2/effects.js';
5
+ import type { BuildTransactionOptions } from '../transactions/index.js';
6
+ import { TransactionDataBuilder } from '../transactions/index.js';
5
7
  export interface GrpcCoreClientOptions extends Experimental_CoreClientOptions {
6
8
  client: SuiGrpcClient;
7
9
  }
@@ -20,7 +22,7 @@ export declare class GrpcCoreClient extends Experimental_CoreClient {
20
22
  getDynamicFields(options: Experimental_SuiClientTypes.GetDynamicFieldsOptions): Promise<Experimental_SuiClientTypes.GetDynamicFieldsResponse>;
21
23
  verifyZkLoginSignature(options: Experimental_SuiClientTypes.VerifyZkLoginSignatureOptions): Promise<Experimental_SuiClientTypes.ZkLoginVerifyResponse>;
22
24
  getMoveFunction(options: Experimental_SuiClientTypes.GetMoveFunctionOptions): Promise<Experimental_SuiClientTypes.GetMoveFunctionResponse>;
23
- resolveTransactionPlugin(): never;
25
+ resolveTransactionPlugin(): (_transactionData: TransactionDataBuilder, _options: BuildTransactionOptions, _next: () => Promise<void>) => Promise<never>;
24
26
  }
25
27
  export declare function parseTransactionEffects({ effects, }: {
26
28
  effects: TransactionEffects | undefined;
@@ -113,7 +113,7 @@ class GrpcCoreClient extends import_experimental.Experimental_CoreClient {
113
113
  digest: object.digest,
114
114
  // TODO: List owned objects doesn't return content right now
115
115
  get content() {
116
- return Promise.reject(
116
+ return object.bcs?.value ? Promise.resolve(object.bcs.value) : Promise.reject(
117
117
  new Error("GRPC does not return object contents when listing owned objects")
118
118
  );
119
119
  },
@@ -154,7 +154,7 @@ class GrpcCoreClient extends import_experimental.Experimental_CoreClient {
154
154
  digest: object.digest,
155
155
  // TODO: List owned objects doesn't return content right now
156
156
  get content() {
157
- return Promise.reject(
157
+ return object.bcs?.value ? Promise.resolve(object.bcs.value) : Promise.reject(
158
158
  new Error("GRPC does not return object contents when listing owned objects")
159
159
  );
160
160
  },
@@ -349,7 +349,9 @@ class GrpcCoreClient extends import_experimental.Experimental_CoreClient {
349
349
  };
350
350
  }
351
351
  resolveTransactionPlugin() {
352
- throw new Error("GRPC client does not support transaction resolution yet");
352
+ return async function resolveTransactionData(_transactionData, _options, _next) {
353
+ throw new Error("Transaction resolution is not supported with the GRPC client");
354
+ };
353
355
  }
354
356
  }
355
357
  _client = new WeakMap();
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/grpc/core.ts"],
4
- "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n\tExperimental_CoreClientOptions,\n\tExperimental_SuiClientTypes,\n} from '../experimental/index.js';\nimport { Experimental_CoreClient } from '../experimental/index.js';\nimport type { SuiGrpcClient } from './client.js';\nimport type { Owner } from './proto/sui/rpc/v2/owner.js';\nimport { Owner_OwnerKind } from './proto/sui/rpc/v2/owner.js';\nimport { chunk, fromBase64, toBase64 } from '@mysten/utils';\nimport type { ExecutedTransaction } from './proto/sui/rpc/v2/executed_transaction.js';\nimport type { TransactionEffects } from './proto/sui/rpc/v2/effects.js';\nimport { UnchangedConsensusObject_UnchangedConsensusObjectKind } from './proto/sui/rpc/v2/effects.js';\nimport {\n\tChangedObject_IdOperation,\n\tChangedObject_InputObjectState,\n\tChangedObject_OutputObjectState,\n} from './proto/sui/rpc/v2/effects.js';\nimport { TransactionDataBuilder } from '../transactions/index.js';\nimport { bcs } from '../bcs/index.js';\nimport type { OpenSignature, OpenSignatureBody } from './proto/sui/rpc/v2/move_package.js';\nimport {\n\tAbility,\n\tFunctionDescriptor_Visibility,\n\tOpenSignature_Reference,\n\tOpenSignatureBody_Type,\n} from './proto/sui/rpc/v2/move_package.js';\nexport interface GrpcCoreClientOptions extends Experimental_CoreClientOptions {\n\tclient: SuiGrpcClient;\n}\nexport class GrpcCoreClient extends Experimental_CoreClient {\n\t#client: SuiGrpcClient;\n\tconstructor({ client, ...options }: GrpcCoreClientOptions) {\n\t\tsuper(options);\n\t\tthis.#client = client;\n\t}\n\n\tasync getObjects(\n\t\toptions: Experimental_SuiClientTypes.GetObjectsOptions,\n\t): Promise<Experimental_SuiClientTypes.GetObjectsResponse> {\n\t\tconst batches = chunk(options.objectIds, 50);\n\t\tconst results: Experimental_SuiClientTypes.GetObjectsResponse['objects'] = [];\n\n\t\tfor (const batch of batches) {\n\t\t\tconst response = await this.#client.ledgerService.batchGetObjects({\n\t\t\t\trequests: batch.map((id) => ({ objectId: id })),\n\t\t\t\treadMask: {\n\t\t\t\t\tpaths: [\n\t\t\t\t\t\t'owner',\n\t\t\t\t\t\t'object_type',\n\t\t\t\t\t\t'bcs',\n\t\t\t\t\t\t'digest',\n\t\t\t\t\t\t'version',\n\t\t\t\t\t\t'object_id',\n\t\t\t\t\t\t'previous_transaction',\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t});\n\n\t\t\tresults.push(\n\t\t\t\t...response.response.objects.map(\n\t\t\t\t\t(object): Experimental_SuiClientTypes.ObjectResponse | Error => {\n\t\t\t\t\t\tif (object.result.oneofKind === 'error') {\n\t\t\t\t\t\t\t// TODO: improve error handling\n\t\t\t\t\t\t\treturn new Error(object.result.error.message);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (object.result.oneofKind !== 'object') {\n\t\t\t\t\t\t\treturn new Error('Unexpected result type');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tid: object.result.object.objectId!,\n\t\t\t\t\t\t\tversion: object.result.object.version?.toString()!,\n\t\t\t\t\t\t\tdigest: object.result.object.digest!,\n\t\t\t\t\t\t\t// TODO: bcs content is not returned in all cases\n\t\t\t\t\t\t\tcontent: Promise.resolve(object.result.object.bcs?.value!),\n\t\t\t\t\t\t\towner: mapOwner(object.result.object.owner)!,\n\t\t\t\t\t\t\ttype: object.result.object.objectType!,\n\t\t\t\t\t\t\tpreviousTransaction: object.result.object.previousTransaction ?? null,\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\treturn {\n\t\t\tobjects: results,\n\t\t};\n\t}\n\tasync getOwnedObjects(\n\t\toptions: Experimental_SuiClientTypes.GetOwnedObjectsOptions,\n\t): Promise<Experimental_SuiClientTypes.GetOwnedObjectsResponse> {\n\t\tconst response = await this.#client.stateService.listOwnedObjects({\n\t\t\towner: options.address,\n\t\t\tobjectType: options.type\n\t\t\t\t? (await this.mvr.resolveType({ type: options.type })).type\n\t\t\t\t: undefined,\n\t\t\tpageToken: options.cursor ? fromBase64(options.cursor) : undefined,\n\t\t\treadMask: {\n\t\t\t\tpaths: [\n\t\t\t\t\t'owner',\n\t\t\t\t\t'object_type',\n\t\t\t\t\t'bcs',\n\t\t\t\t\t'digest',\n\t\t\t\t\t'version',\n\t\t\t\t\t'object_id',\n\t\t\t\t\t'previous_transaction',\n\t\t\t\t],\n\t\t\t},\n\t\t});\n\n\t\tconst objects = response.response.objects.map(\n\t\t\t(object): Experimental_SuiClientTypes.ObjectResponse => ({\n\t\t\t\tid: object.objectId!,\n\t\t\t\tversion: object.version?.toString()!,\n\t\t\t\tdigest: object.digest!,\n\t\t\t\t// TODO: List owned objects doesn't return content right now\n\t\t\t\tget content() {\n\t\t\t\t\treturn Promise.reject(\n\t\t\t\t\t\tnew Error('GRPC does not return object contents when listing owned objects'),\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\towner: mapOwner(object.owner)!,\n\t\t\t\ttype: object.objectType!,\n\t\t\t\tpreviousTransaction: object.previousTransaction ?? null,\n\t\t\t}),\n\t\t);\n\n\t\treturn {\n\t\t\tobjects,\n\t\t\tcursor: response.response.nextPageToken ? toBase64(response.response.nextPageToken) : null,\n\t\t\thasNextPage: response.response.nextPageToken !== undefined,\n\t\t};\n\t}\n\tasync getCoins(\n\t\toptions: Experimental_SuiClientTypes.GetCoinsOptions,\n\t): Promise<Experimental_SuiClientTypes.GetCoinsResponse> {\n\t\tconst response = await this.#client.stateService.listOwnedObjects({\n\t\t\towner: options.address,\n\t\t\tobjectType: `0x2::coin::Coin<${(await this.mvr.resolveType({ type: options.coinType })).type}>`,\n\t\t\tpageToken: options.cursor ? fromBase64(options.cursor) : undefined,\n\t\t\treadMask: {\n\t\t\t\tpaths: [\n\t\t\t\t\t'owner',\n\t\t\t\t\t'object_type',\n\t\t\t\t\t'bcs',\n\t\t\t\t\t'digest',\n\t\t\t\t\t'version',\n\t\t\t\t\t'object_id',\n\t\t\t\t\t'balance',\n\t\t\t\t\t'previous_transaction',\n\t\t\t\t],\n\t\t\t},\n\t\t});\n\n\t\treturn {\n\t\t\tobjects: response.response.objects.map(\n\t\t\t\t(object): Experimental_SuiClientTypes.CoinResponse => ({\n\t\t\t\t\tid: object.objectId!,\n\t\t\t\t\tversion: object.version?.toString()!,\n\t\t\t\t\tdigest: object.digest!,\n\t\t\t\t\t// TODO: List owned objects doesn't return content right now\n\t\t\t\t\tget content() {\n\t\t\t\t\t\treturn Promise.reject(\n\t\t\t\t\t\t\tnew Error('GRPC does not return object contents when listing owned objects'),\n\t\t\t\t\t\t);\n\t\t\t\t\t},\n\t\t\t\t\towner: mapOwner(object.owner)!,\n\t\t\t\t\ttype: object.objectType!,\n\t\t\t\t\tbalance: object.balance?.toString()!,\n\t\t\t\t\tpreviousTransaction: object.previousTransaction ?? null,\n\t\t\t\t}),\n\t\t\t),\n\t\t\tcursor: response.response.nextPageToken ? toBase64(response.response.nextPageToken) : null,\n\t\t\thasNextPage: response.response.nextPageToken !== undefined,\n\t\t};\n\t}\n\n\tasync getBalance(\n\t\toptions: Experimental_SuiClientTypes.GetBalanceOptions,\n\t): Promise<Experimental_SuiClientTypes.GetBalanceResponse> {\n\t\tconst result = await this.#client.stateService.getBalance({\n\t\t\towner: options.address,\n\t\t\tcoinType: (await this.mvr.resolveType({ type: options.coinType })).type,\n\t\t});\n\n\t\treturn {\n\t\t\tbalance: {\n\t\t\t\tbalance: result.response.balance?.balance?.toString() ?? '0',\n\t\t\t\tcoinType: result.response.balance?.coinType ?? options.coinType,\n\t\t\t},\n\t\t};\n\t}\n\n\tasync getAllBalances(\n\t\toptions: Experimental_SuiClientTypes.GetAllBalancesOptions,\n\t): Promise<Experimental_SuiClientTypes.GetAllBalancesResponse> {\n\t\tconst result = await this.#client.stateService.listBalances({\n\t\t\towner: options.address,\n\t\t\tpageToken: options.cursor ? fromBase64(options.cursor) : undefined,\n\t\t\tpageSize: options.limit,\n\t\t});\n\n\t\treturn {\n\t\t\thasNextPage: !!result.response.nextPageToken,\n\t\t\tcursor: result.response.nextPageToken ? toBase64(result.response.nextPageToken) : null,\n\t\t\tbalances: result.response.balances.map((balance) => ({\n\t\t\t\tbalance: balance.balance?.toString() ?? '0',\n\t\t\t\tcoinType: balance.coinType!,\n\t\t\t})),\n\t\t};\n\t}\n\tasync getTransaction(\n\t\toptions: Experimental_SuiClientTypes.GetTransactionOptions,\n\t): Promise<Experimental_SuiClientTypes.GetTransactionResponse> {\n\t\tconst { response } = await this.#client.ledgerService.getTransaction({\n\t\t\tdigest: options.digest,\n\t\t\treadMask: {\n\t\t\t\tpaths: ['digest', 'transaction', 'effects', 'signatures', 'balance_changes'],\n\t\t\t},\n\t\t});\n\n\t\treturn {\n\t\t\ttransaction: parseTransaction(response.transaction!),\n\t\t};\n\t}\n\tasync executeTransaction(\n\t\toptions: Experimental_SuiClientTypes.ExecuteTransactionOptions,\n\t): Promise<Experimental_SuiClientTypes.ExecuteTransactionResponse> {\n\t\tconst { response } = await this.#client.transactionExecutionService.executeTransaction({\n\t\t\ttransaction: {\n\t\t\t\tbcs: {\n\t\t\t\t\tvalue: options.transaction,\n\t\t\t\t},\n\t\t\t},\n\t\t\tsignatures: options.signatures.map((signature) => ({\n\t\t\t\tbcs: {\n\t\t\t\t\tvalue: fromBase64(signature),\n\t\t\t\t},\n\t\t\t\tsignature: {\n\t\t\t\t\toneofKind: undefined,\n\t\t\t\t},\n\t\t\t})),\n\t\t\treadMask: {\n\t\t\t\tpaths: [\n\t\t\t\t\t'transaction.digest',\n\t\t\t\t\t'transaction.transaction',\n\t\t\t\t\t'transaction.effects',\n\t\t\t\t\t'transaction.signatures',\n\t\t\t\t\t'transaction.balance_changes',\n\t\t\t\t],\n\t\t\t},\n\t\t});\n\t\treturn {\n\t\t\ttransaction: parseTransaction(response.transaction!),\n\t\t};\n\t}\n\tasync dryRunTransaction(\n\t\toptions: Experimental_SuiClientTypes.DryRunTransactionOptions,\n\t): Promise<Experimental_SuiClientTypes.DryRunTransactionResponse> {\n\t\tconst { response } = await this.#client.transactionExecutionService.simulateTransaction({\n\t\t\ttransaction: {\n\t\t\t\tbcs: {\n\t\t\t\t\tvalue: options.transaction,\n\t\t\t\t},\n\t\t\t},\n\t\t\treadMask: {\n\t\t\t\tpaths: [\n\t\t\t\t\t'transaction.digest',\n\t\t\t\t\t'transaction.transaction',\n\t\t\t\t\t'transaction.effects',\n\t\t\t\t\t'transaction.signatures',\n\t\t\t\t\t'transaction.balance_changes',\n\t\t\t\t],\n\t\t\t},\n\t\t});\n\n\t\treturn {\n\t\t\ttransaction: parseTransaction(response.transaction!),\n\t\t};\n\t}\n\tasync getReferenceGasPrice(): Promise<Experimental_SuiClientTypes.GetReferenceGasPriceResponse> {\n\t\tconst response = await this.#client.ledgerService.getEpoch({});\n\n\t\treturn {\n\t\t\treferenceGasPrice: response.response.epoch?.referenceGasPrice?.toString()!,\n\t\t};\n\t}\n\n\tasync getDynamicFields(\n\t\toptions: Experimental_SuiClientTypes.GetDynamicFieldsOptions,\n\t): Promise<Experimental_SuiClientTypes.GetDynamicFieldsResponse> {\n\t\tconst response = await this.#client.stateService.listDynamicFields({\n\t\t\tparent: options.parentId,\n\t\t\tpageToken: options.cursor ? fromBase64(options.cursor) : undefined,\n\t\t});\n\n\t\treturn {\n\t\t\tdynamicFields: response.response.dynamicFields.map((field) => ({\n\t\t\t\tid: field.fieldId!,\n\t\t\t\tname: {\n\t\t\t\t\ttype: field.name?.name!,\n\t\t\t\t\tbcs: field.name?.value!,\n\t\t\t\t},\n\t\t\t\ttype: field.fieldObject\n\t\t\t\t\t? `0x2::dynamic_field::Field<0x2::dynamic_object_field::Wrapper<${field.name?.name!}>,0x2::object::ID>`\n\t\t\t\t\t: `0x2::dynamic_field::Field<${field.name?.value!},${field.valueType!}>`,\n\t\t\t})),\n\t\t\tcursor: response.response.nextPageToken ? toBase64(response.response.nextPageToken) : null,\n\t\t\thasNextPage: response.response.nextPageToken !== undefined,\n\t\t};\n\t}\n\n\tasync verifyZkLoginSignature(\n\t\toptions: Experimental_SuiClientTypes.VerifyZkLoginSignatureOptions,\n\t): Promise<Experimental_SuiClientTypes.ZkLoginVerifyResponse> {\n\t\tconst { response } = await this.#client.signatureVerificationService.verifySignature({\n\t\t\tmessage: {\n\t\t\t\tname: options.intentScope,\n\t\t\t\tvalue: fromBase64(options.bytes),\n\t\t\t},\n\t\t\tsignature: {\n\t\t\t\tbcs: {\n\t\t\t\t\tvalue: fromBase64(options.signature),\n\t\t\t\t},\n\t\t\t\tsignature: {\n\t\t\t\t\toneofKind: undefined,\n\t\t\t\t},\n\t\t\t},\n\t\t\tjwks: [],\n\t\t});\n\n\t\treturn {\n\t\t\tsuccess: response.isValid ?? false,\n\t\t\terrors: response.reason ? [response.reason] : [],\n\t\t};\n\t}\n\n\tasync getMoveFunction(\n\t\toptions: Experimental_SuiClientTypes.GetMoveFunctionOptions,\n\t): Promise<Experimental_SuiClientTypes.GetMoveFunctionResponse> {\n\t\tconst { response } = await this.#client.movePackageService.getFunction({\n\t\t\tpackageId: (await this.mvr.resolvePackage({ package: options.packageId })).package,\n\t\t\tmoduleName: options.moduleName,\n\t\t\tname: options.name,\n\t\t});\n\n\t\tlet visibility: 'public' | 'private' | 'friend' | 'unknown' = 'unknown';\n\n\t\tswitch (response.function?.visibility) {\n\t\t\tcase FunctionDescriptor_Visibility.PUBLIC:\n\t\t\t\tvisibility = 'public';\n\t\t\t\tbreak;\n\t\t\tcase FunctionDescriptor_Visibility.PRIVATE:\n\t\t\t\tvisibility = 'private';\n\t\t\t\tbreak;\n\t\t\tcase FunctionDescriptor_Visibility.FRIEND:\n\t\t\t\tvisibility = 'friend';\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn {\n\t\t\tfunction: {\n\t\t\t\tpackageId: options.packageId,\n\t\t\t\tmoduleName: options.moduleName,\n\t\t\t\tname: response.function?.name!,\n\t\t\t\tvisibility,\n\t\t\t\tisEntry: response.function?.isEntry ?? false,\n\t\t\t\ttypeParameters:\n\t\t\t\t\tresponse.function?.typeParameters?.map(({ constraints }) => ({\n\t\t\t\t\t\tisPhantom: false,\n\t\t\t\t\t\tconstraints:\n\t\t\t\t\t\t\tconstraints.map((constraint) => {\n\t\t\t\t\t\t\t\tswitch (constraint) {\n\t\t\t\t\t\t\t\t\tcase Ability.COPY:\n\t\t\t\t\t\t\t\t\t\treturn 'copy';\n\t\t\t\t\t\t\t\t\tcase Ability.DROP:\n\t\t\t\t\t\t\t\t\t\treturn 'drop';\n\t\t\t\t\t\t\t\t\tcase Ability.STORE:\n\t\t\t\t\t\t\t\t\t\treturn 'store';\n\t\t\t\t\t\t\t\t\tcase Ability.KEY:\n\t\t\t\t\t\t\t\t\t\treturn 'key';\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\treturn 'unknown';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}) ?? [],\n\t\t\t\t\t})) ?? [],\n\t\t\t\tparameters:\n\t\t\t\t\tresponse.function?.parameters?.map((param) => parseNormalizedSuiMoveType(param)) ?? [],\n\t\t\t\treturns: response.function?.returns?.map((ret) => parseNormalizedSuiMoveType(ret)) ?? [],\n\t\t\t},\n\t\t};\n\t}\n\n\tresolveTransactionPlugin(): never {\n\t\tthrow new Error('GRPC client does not support transaction resolution yet');\n\t}\n}\n\nfunction mapOwner(owner: Owner | null | undefined): Experimental_SuiClientTypes.ObjectOwner | null {\n\tif (!owner) {\n\t\treturn null;\n\t}\n\tif (owner.kind === Owner_OwnerKind.IMMUTABLE) {\n\t\treturn {\n\t\t\t$kind: 'Immutable',\n\t\t\tImmutable: true,\n\t\t};\n\t}\n\tif (owner.kind === Owner_OwnerKind.ADDRESS) {\n\t\treturn {\n\t\t\tAddressOwner: owner.address!,\n\t\t\t$kind: 'AddressOwner',\n\t\t};\n\t}\n\tif (owner.kind === Owner_OwnerKind.OBJECT) {\n\t\treturn {\n\t\t\t$kind: 'ObjectOwner',\n\t\t\tObjectOwner: owner.address!,\n\t\t};\n\t}\n\n\tif (owner.kind === Owner_OwnerKind.SHARED) {\n\t\tif (owner.address) {\n\t\t\treturn {\n\t\t\t\t$kind: 'ConsensusAddressOwner',\n\t\t\t\tConsensusAddressOwner: {\n\t\t\t\t\towner: owner.address,\n\t\t\t\t\tstartVersion: owner.version?.toString()!,\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t$kind: 'Shared',\n\t\t\tShared: {\n\t\t\t\tinitialSharedVersion: owner.version?.toString()!,\n\t\t\t},\n\t\t};\n\t}\n\n\tthrow new Error('Unknown owner kind');\n}\n\nfunction mapIdOperation(\n\toperation: ChangedObject_IdOperation | undefined,\n): null | 'Created' | 'Deleted' | 'Unknown' | 'None' {\n\tif (operation == null) {\n\t\treturn null;\n\t}\n\tswitch (operation) {\n\t\tcase ChangedObject_IdOperation.CREATED:\n\t\t\treturn 'Created';\n\t\tcase ChangedObject_IdOperation.DELETED:\n\t\t\treturn 'Deleted';\n\t\tcase ChangedObject_IdOperation.NONE:\n\t\tcase ChangedObject_IdOperation.ID_OPERATION_UNKNOWN:\n\t\t\treturn 'None';\n\t\tdefault:\n\t\t\toperation satisfies never;\n\t\t\treturn 'Unknown';\n\t}\n}\n\nfunction mapInputObjectState(\n\tstate: ChangedObject_InputObjectState | undefined,\n): null | 'Exists' | 'DoesNotExist' | 'Unknown' {\n\tif (state == null) {\n\t\treturn null;\n\t}\n\tswitch (state) {\n\t\tcase ChangedObject_InputObjectState.EXISTS:\n\t\t\treturn 'Exists';\n\t\tcase ChangedObject_InputObjectState.DOES_NOT_EXIST:\n\t\t\treturn 'DoesNotExist';\n\t\tcase ChangedObject_InputObjectState.UNKNOWN:\n\t\t\treturn 'Unknown';\n\t\tdefault:\n\t\t\tstate satisfies never;\n\t\t\treturn 'Unknown';\n\t}\n}\n\nfunction mapOutputObjectState(\n\tstate: ChangedObject_OutputObjectState | undefined,\n): null | 'ObjectWrite' | 'PackageWrite' | 'DoesNotExist' | 'Unknown' {\n\tif (state == null) {\n\t\treturn null;\n\t}\n\tswitch (state) {\n\t\tcase ChangedObject_OutputObjectState.OBJECT_WRITE:\n\t\t\treturn 'ObjectWrite';\n\t\tcase ChangedObject_OutputObjectState.PACKAGE_WRITE:\n\t\t\treturn 'PackageWrite';\n\t\tcase ChangedObject_OutputObjectState.DOES_NOT_EXIST:\n\t\t\treturn 'DoesNotExist';\n\t\tcase ChangedObject_OutputObjectState.UNKNOWN:\n\t\t\treturn 'Unknown';\n\t\tdefault:\n\t\t\tstate satisfies never;\n\t\t\treturn 'Unknown';\n\t}\n}\n\nfunction mapUnchangedConsensusObjectKind(\n\tkind: UnchangedConsensusObject_UnchangedConsensusObjectKind | undefined,\n): null | Experimental_SuiClientTypes.UnchangedConsensusObject['kind'] {\n\tif (kind == null) {\n\t\treturn null;\n\t}\n\tswitch (kind) {\n\t\tcase UnchangedConsensusObject_UnchangedConsensusObjectKind.UNCHANGED_CONSENSUS_OBJECT_KIND_UNKNOWN:\n\t\t\treturn 'Unknown';\n\t\tcase UnchangedConsensusObject_UnchangedConsensusObjectKind.READ_ONLY_ROOT:\n\t\t\treturn 'ReadOnlyRoot';\n\t\tcase UnchangedConsensusObject_UnchangedConsensusObjectKind.MUTATE_CONSENSUS_STREAM_ENDED:\n\t\t\treturn 'MutateConsensusStreamEnded';\n\t\tcase UnchangedConsensusObject_UnchangedConsensusObjectKind.READ_CONSENSUS_STREAM_ENDED:\n\t\t\treturn 'ReadConsensusStreamEnded';\n\t\tcase UnchangedConsensusObject_UnchangedConsensusObjectKind.CANCELED:\n\t\t\treturn 'Cancelled';\n\t\tcase UnchangedConsensusObject_UnchangedConsensusObjectKind.PER_EPOCH_CONFIG:\n\t\t\treturn 'PerEpochConfig';\n\t\tdefault:\n\t\t\tkind satisfies never;\n\t\t\treturn 'Unknown';\n\t}\n}\n\nexport function parseTransactionEffects({\n\teffects,\n}: {\n\teffects: TransactionEffects | undefined;\n}): Experimental_SuiClientTypes.TransactionEffects | null {\n\tif (!effects) {\n\t\treturn null;\n\t}\n\n\tconst changedObjects = effects.changedObjects.map(\n\t\t(change): Experimental_SuiClientTypes.ChangedObject => {\n\t\t\treturn {\n\t\t\t\tid: change.objectId!,\n\t\t\t\tinputState: mapInputObjectState(change.inputState)!,\n\t\t\t\tinputVersion: change.inputVersion?.toString() ?? null,\n\t\t\t\tinputDigest: change.inputDigest ?? null,\n\t\t\t\tinputOwner: mapOwner(change.inputOwner),\n\t\t\t\toutputState: mapOutputObjectState(change.outputState)!,\n\t\t\t\toutputVersion: change.outputVersion?.toString() ?? null,\n\t\t\t\toutputDigest: change.outputDigest ?? null,\n\t\t\t\toutputOwner: mapOwner(change.outputOwner),\n\t\t\t\tidOperation: mapIdOperation(change.idOperation)!,\n\t\t\t};\n\t\t},\n\t);\n\n\treturn {\n\t\tbcs: effects.bcs?.value!,\n\t\tdigest: effects.digest!,\n\t\tversion: 2,\n\t\tstatus: effects.status?.success\n\t\t\t? {\n\t\t\t\t\tsuccess: true,\n\t\t\t\t\terror: null,\n\t\t\t\t}\n\t\t\t: {\n\t\t\t\t\tsuccess: false,\n\t\t\t\t\t// TODO: parse errors properly\n\t\t\t\t\terror: JSON.stringify(effects.status?.error),\n\t\t\t\t},\n\t\tgasUsed: {\n\t\t\tcomputationCost: effects.gasUsed?.computationCost?.toString()!,\n\t\t\tstorageCost: effects.gasUsed?.storageCost?.toString()!,\n\t\t\tstorageRebate: effects.gasUsed?.storageRebate?.toString()!,\n\t\t\tnonRefundableStorageFee: effects.gasUsed?.nonRefundableStorageFee?.toString()!,\n\t\t},\n\t\ttransactionDigest: effects.transactionDigest!,\n\t\tgasObject: {\n\t\t\tid: effects.gasObject?.objectId!,\n\t\t\tinputState: mapInputObjectState(effects.gasObject?.inputState)!,\n\t\t\tinputVersion: effects.gasObject?.inputVersion?.toString() ?? null,\n\t\t\tinputDigest: effects.gasObject?.inputDigest ?? null,\n\t\t\tinputOwner: mapOwner(effects.gasObject?.inputOwner),\n\t\t\toutputState: mapOutputObjectState(effects.gasObject?.outputState)!,\n\t\t\toutputVersion: effects.gasObject?.outputVersion?.toString() ?? null,\n\t\t\toutputDigest: effects.gasObject?.outputDigest ?? null,\n\t\t\toutputOwner: mapOwner(effects.gasObject?.outputOwner),\n\t\t\tidOperation: mapIdOperation(effects.gasObject?.idOperation)!,\n\t\t},\n\t\teventsDigest: effects.eventsDigest ?? null,\n\t\tdependencies: effects.dependencies,\n\t\tlamportVersion: effects.lamportVersion?.toString() ?? null,\n\t\tchangedObjects,\n\t\tunchangedConsensusObjects: effects.unchangedConsensusObjects.map(\n\t\t\t(object): Experimental_SuiClientTypes.UnchangedConsensusObject => {\n\t\t\t\treturn {\n\t\t\t\t\tkind: mapUnchangedConsensusObjectKind(object.kind)!,\n\t\t\t\t\t// TODO: we are inconsistent about id vs objectId\n\t\t\t\t\tobjectId: object.objectId!,\n\t\t\t\t\tversion: object.version?.toString() ?? null,\n\t\t\t\t\tdigest: object.digest ?? null,\n\t\t\t\t};\n\t\t\t},\n\t\t),\n\t\tauxiliaryDataDigest: effects.auxiliaryDataDigest ?? null,\n\t};\n}\n\nfunction parseTransaction(\n\ttransaction: ExecutedTransaction,\n): Experimental_SuiClientTypes.TransactionResponse {\n\tconst parsedTx = bcs.SenderSignedData.parse(transaction.transaction?.bcs?.value!)[0];\n\tconst bytes = bcs.TransactionData.serialize(parsedTx.intentMessage.value).toBytes();\n\tconst data = TransactionDataBuilder.restore({\n\t\tversion: 2,\n\t\tsender: parsedTx.intentMessage.value.V1.sender,\n\t\texpiration: parsedTx.intentMessage.value.V1.expiration,\n\t\tgasData: parsedTx.intentMessage.value.V1.gasData,\n\t\tinputs: parsedTx.intentMessage.value.V1.kind.ProgrammableTransaction!.inputs,\n\t\tcommands: parsedTx.intentMessage.value.V1.kind.ProgrammableTransaction!.commands,\n\t});\n\n\tconst objectTypes: Record<string, string> = {};\n\ttransaction.objects?.objects.forEach((object) => {\n\t\tif (object.objectId && object.objectType) {\n\t\t\tobjectTypes[object.objectId] = object.objectType;\n\t\t}\n\t});\n\n\tconst effects = parseTransactionEffects({\n\t\teffects: transaction.effects,\n\t})!;\n\n\treturn {\n\t\tdigest: transaction.digest!,\n\t\tepoch: transaction.effects?.epoch?.toString() ?? null,\n\t\teffects,\n\t\tobjectTypes: Promise.resolve(objectTypes),\n\t\ttransaction: {\n\t\t\tgasData: data.gasData,\n\t\t\tsender: data.sender,\n\t\t\texpiration: data.expiration,\n\t\t\tcommands: data.commands,\n\t\t\tinputs: data.inputs,\n\t\t\tversion: data.version,\n\t\t\tbcs: bytes,\n\t\t},\n\t\tsignatures: parsedTx.txSignatures,\n\t\tbalanceChanges:\n\t\t\ttransaction.balanceChanges?.map((change) => ({\n\t\t\t\tcoinType: change.coinType!,\n\t\t\t\taddress: change.address!,\n\t\t\t\tamount: change.amount!,\n\t\t\t})) ?? [],\n\t};\n}\n\nfunction parseNormalizedSuiMoveType(\n\ttype: OpenSignature,\n): Experimental_SuiClientTypes.OpenSignature {\n\tlet reference: 'mutable' | 'immutable' | null = null;\n\n\tif (type.reference === OpenSignature_Reference.IMMUTABLE) {\n\t\treference = 'immutable';\n\t} else if (type.reference === OpenSignature_Reference.MUTABLE) {\n\t\treference = 'mutable';\n\t}\n\n\treturn {\n\t\treference,\n\t\tbody: parseNormalizedSuiMoveTypeBody(type.body!),\n\t};\n}\n\nfunction parseNormalizedSuiMoveTypeBody(\n\ttype: OpenSignatureBody,\n): Experimental_SuiClientTypes.OpenSignatureBody {\n\tswitch (type.type) {\n\t\tcase OpenSignatureBody_Type.TYPE_UNKNOWN:\n\t\t\treturn { $kind: 'unknown' };\n\t\tcase OpenSignatureBody_Type.ADDRESS:\n\t\t\treturn { $kind: 'address' };\n\t\tcase OpenSignatureBody_Type.BOOL:\n\t\t\treturn { $kind: 'bool' };\n\t\tcase OpenSignatureBody_Type.U8:\n\t\t\treturn { $kind: 'u8' };\n\t\tcase OpenSignatureBody_Type.U16:\n\t\t\treturn { $kind: 'u16' };\n\t\tcase OpenSignatureBody_Type.U32:\n\t\t\treturn { $kind: 'u32' };\n\t\tcase OpenSignatureBody_Type.U64:\n\t\t\treturn { $kind: 'u64' };\n\t\tcase OpenSignatureBody_Type.U128:\n\t\t\treturn { $kind: 'u128' };\n\t\tcase OpenSignatureBody_Type.U256:\n\t\t\treturn { $kind: 'u256' };\n\t\tcase OpenSignatureBody_Type.VECTOR:\n\t\t\treturn {\n\t\t\t\t$kind: 'vector',\n\t\t\t\tvector: parseNormalizedSuiMoveTypeBody(type.typeParameterInstantiation[0]),\n\t\t\t};\n\t\tcase OpenSignatureBody_Type.DATATYPE:\n\t\t\treturn {\n\t\t\t\t$kind: 'datatype',\n\t\t\t\tdatatype: {\n\t\t\t\t\ttypeName: type.typeName!,\n\t\t\t\t\ttypeParameters: type.typeParameterInstantiation.map((t) =>\n\t\t\t\t\t\tparseNormalizedSuiMoveTypeBody(t),\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t};\n\t\tcase OpenSignatureBody_Type.TYPE_PARAMETER:\n\t\t\treturn {\n\t\t\t\t$kind: 'typeParameter',\n\t\t\t\tindex: type.typeParameter!,\n\t\t\t};\n\t\tdefault:\n\t\t\treturn { $kind: 'unknown' };\n\t}\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,0BAAwC;AAGxC,mBAAgC;AAChC,mBAA4C;AAG5C,qBAAsE;AACtE,IAAAA,kBAIO;AACP,0BAAuC;AACvC,iBAAoB;AAEpB,0BAKO;AA5BP;AAgCO,MAAM,uBAAuB,4CAAwB;AAAA,EAE3D,YAAY,EAAE,QAAQ,GAAG,QAAQ,GAA0B;AAC1D,UAAM,OAAO;AAFd;AAGC,uBAAK,SAAU;AAAA,EAChB;AAAA,EAEA,MAAM,WACL,SAC0D;AAC1D,UAAM,cAAU,oBAAM,QAAQ,WAAW,EAAE;AAC3C,UAAM,UAAqE,CAAC;AAE5E,eAAW,SAAS,SAAS;AAC5B,YAAM,WAAW,MAAM,mBAAK,SAAQ,cAAc,gBAAgB;AAAA,QACjE,UAAU,MAAM,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,EAAE;AAAA,QAC9C,UAAU;AAAA,UACT,OAAO;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,Y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D,KAAK,2CAAuB;AAC3B,aAAO;AAAA,QACN,OAAO;AAAA,QACP,OAAO,KAAK;AAAA,MACb;AAAA,IACD;AACC,aAAO,EAAE,OAAO,UAAU;AAAA,EAC5B;AACD;",
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n\tExperimental_CoreClientOptions,\n\tExperimental_SuiClientTypes,\n} from '../experimental/index.js';\nimport { Experimental_CoreClient } from '../experimental/index.js';\nimport type { SuiGrpcClient } from './client.js';\nimport type { Owner } from './proto/sui/rpc/v2/owner.js';\nimport { Owner_OwnerKind } from './proto/sui/rpc/v2/owner.js';\nimport { chunk, fromBase64, toBase64 } from '@mysten/utils';\nimport type { ExecutedTransaction } from './proto/sui/rpc/v2/executed_transaction.js';\nimport type { TransactionEffects } from './proto/sui/rpc/v2/effects.js';\nimport { UnchangedConsensusObject_UnchangedConsensusObjectKind } from './proto/sui/rpc/v2/effects.js';\nimport {\n\tChangedObject_IdOperation,\n\tChangedObject_InputObjectState,\n\tChangedObject_OutputObjectState,\n} from './proto/sui/rpc/v2/effects.js';\nimport type { BuildTransactionOptions } from '../transactions/index.js';\nimport { TransactionDataBuilder } from '../transactions/index.js';\nimport { bcs } from '../bcs/index.js';\nimport type { OpenSignature, OpenSignatureBody } from './proto/sui/rpc/v2/move_package.js';\nimport {\n\tAbility,\n\tFunctionDescriptor_Visibility,\n\tOpenSignature_Reference,\n\tOpenSignatureBody_Type,\n} from './proto/sui/rpc/v2/move_package.js';\nexport interface GrpcCoreClientOptions extends Experimental_CoreClientOptions {\n\tclient: SuiGrpcClient;\n}\nexport class GrpcCoreClient extends Experimental_CoreClient {\n\t#client: SuiGrpcClient;\n\tconstructor({ client, ...options }: GrpcCoreClientOptions) {\n\t\tsuper(options);\n\t\tthis.#client = client;\n\t}\n\n\tasync getObjects(\n\t\toptions: Experimental_SuiClientTypes.GetObjectsOptions,\n\t): Promise<Experimental_SuiClientTypes.GetObjectsResponse> {\n\t\tconst batches = chunk(options.objectIds, 50);\n\t\tconst results: Experimental_SuiClientTypes.GetObjectsResponse['objects'] = [];\n\n\t\tfor (const batch of batches) {\n\t\t\tconst response = await this.#client.ledgerService.batchGetObjects({\n\t\t\t\trequests: batch.map((id) => ({ objectId: id })),\n\t\t\t\treadMask: {\n\t\t\t\t\tpaths: [\n\t\t\t\t\t\t'owner',\n\t\t\t\t\t\t'object_type',\n\t\t\t\t\t\t'bcs',\n\t\t\t\t\t\t'digest',\n\t\t\t\t\t\t'version',\n\t\t\t\t\t\t'object_id',\n\t\t\t\t\t\t'previous_transaction',\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t});\n\n\t\t\tresults.push(\n\t\t\t\t...response.response.objects.map(\n\t\t\t\t\t(object): Experimental_SuiClientTypes.ObjectResponse | Error => {\n\t\t\t\t\t\tif (object.result.oneofKind === 'error') {\n\t\t\t\t\t\t\t// TODO: improve error handling\n\t\t\t\t\t\t\treturn new Error(object.result.error.message);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (object.result.oneofKind !== 'object') {\n\t\t\t\t\t\t\treturn new Error('Unexpected result type');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tid: object.result.object.objectId!,\n\t\t\t\t\t\t\tversion: object.result.object.version?.toString()!,\n\t\t\t\t\t\t\tdigest: object.result.object.digest!,\n\t\t\t\t\t\t\t// TODO: bcs content is not returned in all cases\n\t\t\t\t\t\t\tcontent: Promise.resolve(object.result.object.bcs?.value!),\n\t\t\t\t\t\t\towner: mapOwner(object.result.object.owner)!,\n\t\t\t\t\t\t\ttype: object.result.object.objectType!,\n\t\t\t\t\t\t\tpreviousTransaction: object.result.object.previousTransaction ?? null,\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\treturn {\n\t\t\tobjects: results,\n\t\t};\n\t}\n\tasync getOwnedObjects(\n\t\toptions: Experimental_SuiClientTypes.GetOwnedObjectsOptions,\n\t): Promise<Experimental_SuiClientTypes.GetOwnedObjectsResponse> {\n\t\tconst response = await this.#client.stateService.listOwnedObjects({\n\t\t\towner: options.address,\n\t\t\tobjectType: options.type\n\t\t\t\t? (await this.mvr.resolveType({ type: options.type })).type\n\t\t\t\t: undefined,\n\t\t\tpageToken: options.cursor ? fromBase64(options.cursor) : undefined,\n\t\t\treadMask: {\n\t\t\t\tpaths: [\n\t\t\t\t\t'owner',\n\t\t\t\t\t'object_type',\n\t\t\t\t\t'bcs',\n\t\t\t\t\t'digest',\n\t\t\t\t\t'version',\n\t\t\t\t\t'object_id',\n\t\t\t\t\t'previous_transaction',\n\t\t\t\t],\n\t\t\t},\n\t\t});\n\n\t\tconst objects = response.response.objects.map(\n\t\t\t(object): Experimental_SuiClientTypes.ObjectResponse => ({\n\t\t\t\tid: object.objectId!,\n\t\t\t\tversion: object.version?.toString()!,\n\t\t\t\tdigest: object.digest!,\n\t\t\t\t// TODO: List owned objects doesn't return content right now\n\t\t\t\tget content() {\n\t\t\t\t\treturn object.bcs?.value\n\t\t\t\t\t\t? Promise.resolve(object.bcs.value)\n\t\t\t\t\t\t: Promise.reject(\n\t\t\t\t\t\t\t\tnew Error('GRPC does not return object contents when listing owned objects'),\n\t\t\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\towner: mapOwner(object.owner)!,\n\t\t\t\ttype: object.objectType!,\n\t\t\t\tpreviousTransaction: object.previousTransaction ?? null,\n\t\t\t}),\n\t\t);\n\n\t\treturn {\n\t\t\tobjects,\n\t\t\tcursor: response.response.nextPageToken ? toBase64(response.response.nextPageToken) : null,\n\t\t\thasNextPage: response.response.nextPageToken !== undefined,\n\t\t};\n\t}\n\tasync getCoins(\n\t\toptions: Experimental_SuiClientTypes.GetCoinsOptions,\n\t): Promise<Experimental_SuiClientTypes.GetCoinsResponse> {\n\t\tconst response = await this.#client.stateService.listOwnedObjects({\n\t\t\towner: options.address,\n\t\t\tobjectType: `0x2::coin::Coin<${(await this.mvr.resolveType({ type: options.coinType })).type}>`,\n\t\t\tpageToken: options.cursor ? fromBase64(options.cursor) : undefined,\n\t\t\treadMask: {\n\t\t\t\tpaths: [\n\t\t\t\t\t'owner',\n\t\t\t\t\t'object_type',\n\t\t\t\t\t'bcs',\n\t\t\t\t\t'digest',\n\t\t\t\t\t'version',\n\t\t\t\t\t'object_id',\n\t\t\t\t\t'balance',\n\t\t\t\t\t'previous_transaction',\n\t\t\t\t],\n\t\t\t},\n\t\t});\n\n\t\treturn {\n\t\t\tobjects: response.response.objects.map(\n\t\t\t\t(object): Experimental_SuiClientTypes.CoinResponse => ({\n\t\t\t\t\tid: object.objectId!,\n\t\t\t\t\tversion: object.version?.toString()!,\n\t\t\t\t\tdigest: object.digest!,\n\t\t\t\t\t// TODO: List owned objects doesn't return content right now\n\t\t\t\t\tget content() {\n\t\t\t\t\t\treturn object.bcs?.value\n\t\t\t\t\t\t\t? Promise.resolve(object.bcs.value)\n\t\t\t\t\t\t\t: Promise.reject(\n\t\t\t\t\t\t\t\t\tnew Error('GRPC does not return object contents when listing owned objects'),\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t},\n\t\t\t\t\towner: mapOwner(object.owner)!,\n\t\t\t\t\ttype: object.objectType!,\n\t\t\t\t\tbalance: object.balance?.toString()!,\n\t\t\t\t\tpreviousTransaction: object.previousTransaction ?? null,\n\t\t\t\t}),\n\t\t\t),\n\t\t\tcursor: response.response.nextPageToken ? toBase64(response.response.nextPageToken) : null,\n\t\t\thasNextPage: response.response.nextPageToken !== undefined,\n\t\t};\n\t}\n\n\tasync getBalance(\n\t\toptions: Experimental_SuiClientTypes.GetBalanceOptions,\n\t): Promise<Experimental_SuiClientTypes.GetBalanceResponse> {\n\t\tconst result = await this.#client.stateService.getBalance({\n\t\t\towner: options.address,\n\t\t\tcoinType: (await this.mvr.resolveType({ type: options.coinType })).type,\n\t\t});\n\n\t\treturn {\n\t\t\tbalance: {\n\t\t\t\tbalance: result.response.balance?.balance?.toString() ?? '0',\n\t\t\t\tcoinType: result.response.balance?.coinType ?? options.coinType,\n\t\t\t},\n\t\t};\n\t}\n\n\tasync getAllBalances(\n\t\toptions: Experimental_SuiClientTypes.GetAllBalancesOptions,\n\t): Promise<Experimental_SuiClientTypes.GetAllBalancesResponse> {\n\t\tconst result = await this.#client.stateService.listBalances({\n\t\t\towner: options.address,\n\t\t\tpageToken: options.cursor ? fromBase64(options.cursor) : undefined,\n\t\t\tpageSize: options.limit,\n\t\t});\n\n\t\treturn {\n\t\t\thasNextPage: !!result.response.nextPageToken,\n\t\t\tcursor: result.response.nextPageToken ? toBase64(result.response.nextPageToken) : null,\n\t\t\tbalances: result.response.balances.map((balance) => ({\n\t\t\t\tbalance: balance.balance?.toString() ?? '0',\n\t\t\t\tcoinType: balance.coinType!,\n\t\t\t})),\n\t\t};\n\t}\n\tasync getTransaction(\n\t\toptions: Experimental_SuiClientTypes.GetTransactionOptions,\n\t): Promise<Experimental_SuiClientTypes.GetTransactionResponse> {\n\t\tconst { response } = await this.#client.ledgerService.getTransaction({\n\t\t\tdigest: options.digest,\n\t\t\treadMask: {\n\t\t\t\tpaths: ['digest', 'transaction', 'effects', 'signatures', 'balance_changes'],\n\t\t\t},\n\t\t});\n\n\t\treturn {\n\t\t\ttransaction: parseTransaction(response.transaction!),\n\t\t};\n\t}\n\tasync executeTransaction(\n\t\toptions: Experimental_SuiClientTypes.ExecuteTransactionOptions,\n\t): Promise<Experimental_SuiClientTypes.ExecuteTransactionResponse> {\n\t\tconst { response } = await this.#client.transactionExecutionService.executeTransaction({\n\t\t\ttransaction: {\n\t\t\t\tbcs: {\n\t\t\t\t\tvalue: options.transaction,\n\t\t\t\t},\n\t\t\t},\n\t\t\tsignatures: options.signatures.map((signature) => ({\n\t\t\t\tbcs: {\n\t\t\t\t\tvalue: fromBase64(signature),\n\t\t\t\t},\n\t\t\t\tsignature: {\n\t\t\t\t\toneofKind: undefined,\n\t\t\t\t},\n\t\t\t})),\n\t\t\treadMask: {\n\t\t\t\tpaths: [\n\t\t\t\t\t'transaction.digest',\n\t\t\t\t\t'transaction.transaction',\n\t\t\t\t\t'transaction.effects',\n\t\t\t\t\t'transaction.signatures',\n\t\t\t\t\t'transaction.balance_changes',\n\t\t\t\t],\n\t\t\t},\n\t\t});\n\t\treturn {\n\t\t\ttransaction: parseTransaction(response.transaction!),\n\t\t};\n\t}\n\tasync dryRunTransaction(\n\t\toptions: Experimental_SuiClientTypes.DryRunTransactionOptions,\n\t): Promise<Experimental_SuiClientTypes.DryRunTransactionResponse> {\n\t\tconst { response } = await this.#client.transactionExecutionService.simulateTransaction({\n\t\t\ttransaction: {\n\t\t\t\tbcs: {\n\t\t\t\t\tvalue: options.transaction,\n\t\t\t\t},\n\t\t\t},\n\t\t\treadMask: {\n\t\t\t\tpaths: [\n\t\t\t\t\t'transaction.digest',\n\t\t\t\t\t'transaction.transaction',\n\t\t\t\t\t'transaction.effects',\n\t\t\t\t\t'transaction.signatures',\n\t\t\t\t\t'transaction.balance_changes',\n\t\t\t\t],\n\t\t\t},\n\t\t});\n\n\t\treturn {\n\t\t\ttransaction: parseTransaction(response.transaction!),\n\t\t};\n\t}\n\tasync getReferenceGasPrice(): Promise<Experimental_SuiClientTypes.GetReferenceGasPriceResponse> {\n\t\tconst response = await this.#client.ledgerService.getEpoch({});\n\n\t\treturn {\n\t\t\treferenceGasPrice: response.response.epoch?.referenceGasPrice?.toString()!,\n\t\t};\n\t}\n\n\tasync getDynamicFields(\n\t\toptions: Experimental_SuiClientTypes.GetDynamicFieldsOptions,\n\t): Promise<Experimental_SuiClientTypes.GetDynamicFieldsResponse> {\n\t\tconst response = await this.#client.stateService.listDynamicFields({\n\t\t\tparent: options.parentId,\n\t\t\tpageToken: options.cursor ? fromBase64(options.cursor) : undefined,\n\t\t});\n\n\t\treturn {\n\t\t\tdynamicFields: response.response.dynamicFields.map((field) => ({\n\t\t\t\tid: field.fieldId!,\n\t\t\t\tname: {\n\t\t\t\t\ttype: field.name?.name!,\n\t\t\t\t\tbcs: field.name?.value!,\n\t\t\t\t},\n\t\t\t\ttype: field.fieldObject\n\t\t\t\t\t? `0x2::dynamic_field::Field<0x2::dynamic_object_field::Wrapper<${field.name?.name!}>,0x2::object::ID>`\n\t\t\t\t\t: `0x2::dynamic_field::Field<${field.name?.value!},${field.valueType!}>`,\n\t\t\t})),\n\t\t\tcursor: response.response.nextPageToken ? toBase64(response.response.nextPageToken) : null,\n\t\t\thasNextPage: response.response.nextPageToken !== undefined,\n\t\t};\n\t}\n\n\tasync verifyZkLoginSignature(\n\t\toptions: Experimental_SuiClientTypes.VerifyZkLoginSignatureOptions,\n\t): Promise<Experimental_SuiClientTypes.ZkLoginVerifyResponse> {\n\t\tconst { response } = await this.#client.signatureVerificationService.verifySignature({\n\t\t\tmessage: {\n\t\t\t\tname: options.intentScope,\n\t\t\t\tvalue: fromBase64(options.bytes),\n\t\t\t},\n\t\t\tsignature: {\n\t\t\t\tbcs: {\n\t\t\t\t\tvalue: fromBase64(options.signature),\n\t\t\t\t},\n\t\t\t\tsignature: {\n\t\t\t\t\toneofKind: undefined,\n\t\t\t\t},\n\t\t\t},\n\t\t\tjwks: [],\n\t\t});\n\n\t\treturn {\n\t\t\tsuccess: response.isValid ?? false,\n\t\t\terrors: response.reason ? [response.reason] : [],\n\t\t};\n\t}\n\n\tasync getMoveFunction(\n\t\toptions: Experimental_SuiClientTypes.GetMoveFunctionOptions,\n\t): Promise<Experimental_SuiClientTypes.GetMoveFunctionResponse> {\n\t\tconst { response } = await this.#client.movePackageService.getFunction({\n\t\t\tpackageId: (await this.mvr.resolvePackage({ package: options.packageId })).package,\n\t\t\tmoduleName: options.moduleName,\n\t\t\tname: options.name,\n\t\t});\n\n\t\tlet visibility: 'public' | 'private' | 'friend' | 'unknown' = 'unknown';\n\n\t\tswitch (response.function?.visibility) {\n\t\t\tcase FunctionDescriptor_Visibility.PUBLIC:\n\t\t\t\tvisibility = 'public';\n\t\t\t\tbreak;\n\t\t\tcase FunctionDescriptor_Visibility.PRIVATE:\n\t\t\t\tvisibility = 'private';\n\t\t\t\tbreak;\n\t\t\tcase FunctionDescriptor_Visibility.FRIEND:\n\t\t\t\tvisibility = 'friend';\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn {\n\t\t\tfunction: {\n\t\t\t\tpackageId: options.packageId,\n\t\t\t\tmoduleName: options.moduleName,\n\t\t\t\tname: response.function?.name!,\n\t\t\t\tvisibility,\n\t\t\t\tisEntry: response.function?.isEntry ?? false,\n\t\t\t\ttypeParameters:\n\t\t\t\t\tresponse.function?.typeParameters?.map(({ constraints }) => ({\n\t\t\t\t\t\tisPhantom: false,\n\t\t\t\t\t\tconstraints:\n\t\t\t\t\t\t\tconstraints.map((constraint) => {\n\t\t\t\t\t\t\t\tswitch (constraint) {\n\t\t\t\t\t\t\t\t\tcase Ability.COPY:\n\t\t\t\t\t\t\t\t\t\treturn 'copy';\n\t\t\t\t\t\t\t\t\tcase Ability.DROP:\n\t\t\t\t\t\t\t\t\t\treturn 'drop';\n\t\t\t\t\t\t\t\t\tcase Ability.STORE:\n\t\t\t\t\t\t\t\t\t\treturn 'store';\n\t\t\t\t\t\t\t\t\tcase Ability.KEY:\n\t\t\t\t\t\t\t\t\t\treturn 'key';\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\treturn 'unknown';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}) ?? [],\n\t\t\t\t\t})) ?? [],\n\t\t\t\tparameters:\n\t\t\t\t\tresponse.function?.parameters?.map((param) => parseNormalizedSuiMoveType(param)) ?? [],\n\t\t\t\treturns: response.function?.returns?.map((ret) => parseNormalizedSuiMoveType(ret)) ?? [],\n\t\t\t},\n\t\t};\n\t}\n\n\tresolveTransactionPlugin() {\n\t\t// const client = this.#client;\n\t\treturn async function resolveTransactionData(\n\t\t\t_transactionData: TransactionDataBuilder,\n\t\t\t_options: BuildTransactionOptions,\n\t\t\t_next: () => Promise<void>,\n\t\t) {\n\t\t\tthrow new Error('Transaction resolution is not supported with the GRPC client');\n\n\t\t\t// const result = await client.liveDataService.simulateTransaction({\n\t\t\t// \ttransaction: transactionFromData(transactionData)\n\t\t\t// })\n\t\t\t// const resolvedData = dataFromSimulate(result)\n\t\t\t// transactionData.applyResolvedData(resolvedData);\n\n\t\t\t// return await next();\n\t\t};\n\t}\n}\n\nfunction mapOwner(owner: Owner | null | undefined): Experimental_SuiClientTypes.ObjectOwner | null {\n\tif (!owner) {\n\t\treturn null;\n\t}\n\tif (owner.kind === Owner_OwnerKind.IMMUTABLE) {\n\t\treturn {\n\t\t\t$kind: 'Immutable',\n\t\t\tImmutable: true,\n\t\t};\n\t}\n\tif (owner.kind === Owner_OwnerKind.ADDRESS) {\n\t\treturn {\n\t\t\tAddressOwner: owner.address!,\n\t\t\t$kind: 'AddressOwner',\n\t\t};\n\t}\n\tif (owner.kind === Owner_OwnerKind.OBJECT) {\n\t\treturn {\n\t\t\t$kind: 'ObjectOwner',\n\t\t\tObjectOwner: owner.address!,\n\t\t};\n\t}\n\n\tif (owner.kind === Owner_OwnerKind.SHARED) {\n\t\tif (owner.address) {\n\t\t\treturn {\n\t\t\t\t$kind: 'ConsensusAddressOwner',\n\t\t\t\tConsensusAddressOwner: {\n\t\t\t\t\towner: owner.address,\n\t\t\t\t\tstartVersion: owner.version?.toString()!,\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\t$kind: 'Shared',\n\t\t\tShared: {\n\t\t\t\tinitialSharedVersion: owner.version?.toString()!,\n\t\t\t},\n\t\t};\n\t}\n\n\tthrow new Error('Unknown owner kind');\n}\n\nfunction mapIdOperation(\n\toperation: ChangedObject_IdOperation | undefined,\n): null | 'Created' | 'Deleted' | 'Unknown' | 'None' {\n\tif (operation == null) {\n\t\treturn null;\n\t}\n\tswitch (operation) {\n\t\tcase ChangedObject_IdOperation.CREATED:\n\t\t\treturn 'Created';\n\t\tcase ChangedObject_IdOperation.DELETED:\n\t\t\treturn 'Deleted';\n\t\tcase ChangedObject_IdOperation.NONE:\n\t\tcase ChangedObject_IdOperation.ID_OPERATION_UNKNOWN:\n\t\t\treturn 'None';\n\t\tdefault:\n\t\t\toperation satisfies never;\n\t\t\treturn 'Unknown';\n\t}\n}\n\nfunction mapInputObjectState(\n\tstate: ChangedObject_InputObjectState | undefined,\n): null | 'Exists' | 'DoesNotExist' | 'Unknown' {\n\tif (state == null) {\n\t\treturn null;\n\t}\n\tswitch (state) {\n\t\tcase ChangedObject_InputObjectState.EXISTS:\n\t\t\treturn 'Exists';\n\t\tcase ChangedObject_InputObjectState.DOES_NOT_EXIST:\n\t\t\treturn 'DoesNotExist';\n\t\tcase ChangedObject_InputObjectState.UNKNOWN:\n\t\t\treturn 'Unknown';\n\t\tdefault:\n\t\t\tstate satisfies never;\n\t\t\treturn 'Unknown';\n\t}\n}\n\nfunction mapOutputObjectState(\n\tstate: ChangedObject_OutputObjectState | undefined,\n): null | 'ObjectWrite' | 'PackageWrite' | 'DoesNotExist' | 'Unknown' {\n\tif (state == null) {\n\t\treturn null;\n\t}\n\tswitch (state) {\n\t\tcase ChangedObject_OutputObjectState.OBJECT_WRITE:\n\t\t\treturn 'ObjectWrite';\n\t\tcase ChangedObject_OutputObjectState.PACKAGE_WRITE:\n\t\t\treturn 'PackageWrite';\n\t\tcase ChangedObject_OutputObjectState.DOES_NOT_EXIST:\n\t\t\treturn 'DoesNotExist';\n\t\tcase ChangedObject_OutputObjectState.UNKNOWN:\n\t\t\treturn 'Unknown';\n\t\tdefault:\n\t\t\tstate satisfies never;\n\t\t\treturn 'Unknown';\n\t}\n}\n\nfunction mapUnchangedConsensusObjectKind(\n\tkind: UnchangedConsensusObject_UnchangedConsensusObjectKind | undefined,\n): null | Experimental_SuiClientTypes.UnchangedConsensusObject['kind'] {\n\tif (kind == null) {\n\t\treturn null;\n\t}\n\tswitch (kind) {\n\t\tcase UnchangedConsensusObject_UnchangedConsensusObjectKind.UNCHANGED_CONSENSUS_OBJECT_KIND_UNKNOWN:\n\t\t\treturn 'Unknown';\n\t\tcase UnchangedConsensusObject_UnchangedConsensusObjectKind.READ_ONLY_ROOT:\n\t\t\treturn 'ReadOnlyRoot';\n\t\tcase UnchangedConsensusObject_UnchangedConsensusObjectKind.MUTATE_CONSENSUS_STREAM_ENDED:\n\t\t\treturn 'MutateConsensusStreamEnded';\n\t\tcase UnchangedConsensusObject_UnchangedConsensusObjectKind.READ_CONSENSUS_STREAM_ENDED:\n\t\t\treturn 'ReadConsensusStreamEnded';\n\t\tcase UnchangedConsensusObject_UnchangedConsensusObjectKind.CANCELED:\n\t\t\treturn 'Cancelled';\n\t\tcase UnchangedConsensusObject_UnchangedConsensusObjectKind.PER_EPOCH_CONFIG:\n\t\t\treturn 'PerEpochConfig';\n\t\tdefault:\n\t\t\tkind satisfies never;\n\t\t\treturn 'Unknown';\n\t}\n}\n\nexport function parseTransactionEffects({\n\teffects,\n}: {\n\teffects: TransactionEffects | undefined;\n}): Experimental_SuiClientTypes.TransactionEffects | null {\n\tif (!effects) {\n\t\treturn null;\n\t}\n\n\tconst changedObjects = effects.changedObjects.map(\n\t\t(change): Experimental_SuiClientTypes.ChangedObject => {\n\t\t\treturn {\n\t\t\t\tid: change.objectId!,\n\t\t\t\tinputState: mapInputObjectState(change.inputState)!,\n\t\t\t\tinputVersion: change.inputVersion?.toString() ?? null,\n\t\t\t\tinputDigest: change.inputDigest ?? null,\n\t\t\t\tinputOwner: mapOwner(change.inputOwner),\n\t\t\t\toutputState: mapOutputObjectState(change.outputState)!,\n\t\t\t\toutputVersion: change.outputVersion?.toString() ?? null,\n\t\t\t\toutputDigest: change.outputDigest ?? null,\n\t\t\t\toutputOwner: mapOwner(change.outputOwner),\n\t\t\t\tidOperation: mapIdOperation(change.idOperation)!,\n\t\t\t};\n\t\t},\n\t);\n\n\treturn {\n\t\tbcs: effects.bcs?.value!,\n\t\tdigest: effects.digest!,\n\t\tversion: 2,\n\t\tstatus: effects.status?.success\n\t\t\t? {\n\t\t\t\t\tsuccess: true,\n\t\t\t\t\terror: null,\n\t\t\t\t}\n\t\t\t: {\n\t\t\t\t\tsuccess: false,\n\t\t\t\t\t// TODO: parse errors properly\n\t\t\t\t\terror: JSON.stringify(effects.status?.error),\n\t\t\t\t},\n\t\tgasUsed: {\n\t\t\tcomputationCost: effects.gasUsed?.computationCost?.toString()!,\n\t\t\tstorageCost: effects.gasUsed?.storageCost?.toString()!,\n\t\t\tstorageRebate: effects.gasUsed?.storageRebate?.toString()!,\n\t\t\tnonRefundableStorageFee: effects.gasUsed?.nonRefundableStorageFee?.toString()!,\n\t\t},\n\t\ttransactionDigest: effects.transactionDigest!,\n\t\tgasObject: {\n\t\t\tid: effects.gasObject?.objectId!,\n\t\t\tinputState: mapInputObjectState(effects.gasObject?.inputState)!,\n\t\t\tinputVersion: effects.gasObject?.inputVersion?.toString() ?? null,\n\t\t\tinputDigest: effects.gasObject?.inputDigest ?? null,\n\t\t\tinputOwner: mapOwner(effects.gasObject?.inputOwner),\n\t\t\toutputState: mapOutputObjectState(effects.gasObject?.outputState)!,\n\t\t\toutputVersion: effects.gasObject?.outputVersion?.toString() ?? null,\n\t\t\toutputDigest: effects.gasObject?.outputDigest ?? null,\n\t\t\toutputOwner: mapOwner(effects.gasObject?.outputOwner),\n\t\t\tidOperation: mapIdOperation(effects.gasObject?.idOperation)!,\n\t\t},\n\t\teventsDigest: effects.eventsDigest ?? null,\n\t\tdependencies: effects.dependencies,\n\t\tlamportVersion: effects.lamportVersion?.toString() ?? null,\n\t\tchangedObjects,\n\t\tunchangedConsensusObjects: effects.unchangedConsensusObjects.map(\n\t\t\t(object): Experimental_SuiClientTypes.UnchangedConsensusObject => {\n\t\t\t\treturn {\n\t\t\t\t\tkind: mapUnchangedConsensusObjectKind(object.kind)!,\n\t\t\t\t\t// TODO: we are inconsistent about id vs objectId\n\t\t\t\t\tobjectId: object.objectId!,\n\t\t\t\t\tversion: object.version?.toString() ?? null,\n\t\t\t\t\tdigest: object.digest ?? null,\n\t\t\t\t};\n\t\t\t},\n\t\t),\n\t\tauxiliaryDataDigest: effects.auxiliaryDataDigest ?? null,\n\t};\n}\n\nfunction parseTransaction(\n\ttransaction: ExecutedTransaction,\n): Experimental_SuiClientTypes.TransactionResponse {\n\tconst parsedTx = bcs.SenderSignedData.parse(transaction.transaction?.bcs?.value!)[0];\n\tconst bytes = bcs.TransactionData.serialize(parsedTx.intentMessage.value).toBytes();\n\tconst data = TransactionDataBuilder.restore({\n\t\tversion: 2,\n\t\tsender: parsedTx.intentMessage.value.V1.sender,\n\t\texpiration: parsedTx.intentMessage.value.V1.expiration,\n\t\tgasData: parsedTx.intentMessage.value.V1.gasData,\n\t\tinputs: parsedTx.intentMessage.value.V1.kind.ProgrammableTransaction!.inputs,\n\t\tcommands: parsedTx.intentMessage.value.V1.kind.ProgrammableTransaction!.commands,\n\t});\n\n\tconst objectTypes: Record<string, string> = {};\n\ttransaction.objects?.objects.forEach((object) => {\n\t\tif (object.objectId && object.objectType) {\n\t\t\tobjectTypes[object.objectId] = object.objectType;\n\t\t}\n\t});\n\n\tconst effects = parseTransactionEffects({\n\t\teffects: transaction.effects,\n\t})!;\n\n\treturn {\n\t\tdigest: transaction.digest!,\n\t\tepoch: transaction.effects?.epoch?.toString() ?? null,\n\t\teffects,\n\t\tobjectTypes: Promise.resolve(objectTypes),\n\t\ttransaction: {\n\t\t\tgasData: data.gasData,\n\t\t\tsender: data.sender,\n\t\t\texpiration: data.expiration,\n\t\t\tcommands: data.commands,\n\t\t\tinputs: data.inputs,\n\t\t\tversion: data.version,\n\t\t\tbcs: bytes,\n\t\t},\n\t\tsignatures: parsedTx.txSignatures,\n\t\tbalanceChanges:\n\t\t\ttransaction.balanceChanges?.map((change) => ({\n\t\t\t\tcoinType: change.coinType!,\n\t\t\t\taddress: change.address!,\n\t\t\t\tamount: change.amount!,\n\t\t\t})) ?? [],\n\t};\n}\n\nfunction parseNormalizedSuiMoveType(\n\ttype: OpenSignature,\n): Experimental_SuiClientTypes.OpenSignature {\n\tlet reference: 'mutable' | 'immutable' | null = null;\n\n\tif (type.reference === OpenSignature_Reference.IMMUTABLE) {\n\t\treference = 'immutable';\n\t} else if (type.reference === OpenSignature_Reference.MUTABLE) {\n\t\treference = 'mutable';\n\t}\n\n\treturn {\n\t\treference,\n\t\tbody: parseNormalizedSuiMoveTypeBody(type.body!),\n\t};\n}\n\nfunction parseNormalizedSuiMoveTypeBody(\n\ttype: OpenSignatureBody,\n): Experimental_SuiClientTypes.OpenSignatureBody {\n\tswitch (type.type) {\n\t\tcase OpenSignatureBody_Type.TYPE_UNKNOWN:\n\t\t\treturn { $kind: 'unknown' };\n\t\tcase OpenSignatureBody_Type.ADDRESS:\n\t\t\treturn { $kind: 'address' };\n\t\tcase OpenSignatureBody_Type.BOOL:\n\t\t\treturn { $kind: 'bool' };\n\t\tcase OpenSignatureBody_Type.U8:\n\t\t\treturn { $kind: 'u8' };\n\t\tcase OpenSignatureBody_Type.U16:\n\t\t\treturn { $kind: 'u16' };\n\t\tcase OpenSignatureBody_Type.U32:\n\t\t\treturn { $kind: 'u32' };\n\t\tcase OpenSignatureBody_Type.U64:\n\t\t\treturn { $kind: 'u64' };\n\t\tcase OpenSignatureBody_Type.U128:\n\t\t\treturn { $kind: 'u128' };\n\t\tcase OpenSignatureBody_Type.U256:\n\t\t\treturn { $kind: 'u256' };\n\t\tcase OpenSignatureBody_Type.VECTOR:\n\t\t\treturn {\n\t\t\t\t$kind: 'vector',\n\t\t\t\tvector: parseNormalizedSuiMoveTypeBody(type.typeParameterInstantiation[0]),\n\t\t\t};\n\t\tcase OpenSignatureBody_Type.DATATYPE:\n\t\t\treturn {\n\t\t\t\t$kind: 'datatype',\n\t\t\t\tdatatype: {\n\t\t\t\t\ttypeName: type.typeName!,\n\t\t\t\t\ttypeParameters: type.typeParameterInstantiation.map((t) =>\n\t\t\t\t\t\tparseNormalizedSuiMoveTypeBody(t),\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t};\n\t\tcase O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-ts/runtime";
2
- import type { JsonReadOptions } from "@protobuf-ts/runtime";
3
- import type { JsonWriteOptions } from "@protobuf-ts/runtime";
4
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
5
- import type { IMessageType } from "@protobuf-ts/runtime";
6
- import { MessageType } from "@protobuf-ts/runtime";
1
+ import type { JsonValue } from '@protobuf-ts/runtime';
2
+ import type { JsonReadOptions } from '@protobuf-ts/runtime';
3
+ import type { JsonWriteOptions } from '@protobuf-ts/runtime';
4
+ import type { BinaryReadOptions } from '@protobuf-ts/runtime';
5
+ import type { IMessageType } from '@protobuf-ts/runtime';
6
+ import { MessageType } from '@protobuf-ts/runtime';
7
7
  /**
8
8
  * `Any` contains an arbitrary serialized protocol buffer message along with a
9
9
  * URL that describes the type of the serialized message.
@@ -60,15 +60,16 @@ class Any$Type extends import_runtime4.MessageType {
60
60
  */
61
61
  unpack(any, type, options) {
62
62
  if (!this.contains(any, type))
63
- throw new Error("Cannot unpack google.protobuf.Any with typeUrl '" + any.typeUrl + "' as " + type.typeName + ".");
63
+ throw new Error(
64
+ "Cannot unpack google.protobuf.Any with typeUrl '" + any.typeUrl + "' as " + type.typeName + "."
65
+ );
64
66
  return type.fromBinary(any.value, options);
65
67
  }
66
68
  /**
67
69
  * Does the given `Any` contain a packed message of the given type?
68
70
  */
69
71
  contains(any, type) {
70
- if (!any.typeUrl.length)
71
- return false;
72
+ if (!any.typeUrl.length) return false;
72
73
  let wants = typeof type == "string" ? type : type.typeName;
73
74
  let has = this.typeUrlToName(any.typeUrl);
74
75
  return wants === has;
@@ -83,29 +84,32 @@ class Any$Type extends import_runtime4.MessageType {
83
84
  * `google.protobuf.Any` from JSON format.
84
85
  */
85
86
  internalJsonWrite(any, options) {
86
- if (any.typeUrl === "")
87
- return {};
87
+ if (any.typeUrl === "") return {};
88
88
  let typeName = this.typeUrlToName(any.typeUrl);
89
89
  let opt = (0, import_runtime3.jsonWriteOptions)(options);
90
90
  let type = opt.typeRegistry?.find((t) => t.typeName === typeName);
91
91
  if (!type)
92
- throw new globalThis.Error("Unable to convert google.protobuf.Any with typeUrl '" + any.typeUrl + "' to JSON. The specified type " + typeName + " is not available in the type registry.");
92
+ throw new globalThis.Error(
93
+ "Unable to convert google.protobuf.Any with typeUrl '" + any.typeUrl + "' to JSON. The specified type " + typeName + " is not available in the type registry."
94
+ );
93
95
  let value = type.fromBinary(any.value, { readUnknownField: false });
94
96
  let json = type.internalJsonWrite(value, opt);
95
- if (typeName.startsWith("google.protobuf.") || !(0, import_runtime.isJsonObject)(json))
96
- json = { value: json };
97
+ if (typeName.startsWith("google.protobuf.") || !(0, import_runtime.isJsonObject)(json)) json = { value: json };
97
98
  json["@type"] = any.typeUrl;
98
99
  return json;
99
100
  }
100
101
  internalJsonRead(json, options, target) {
101
102
  if (!(0, import_runtime.isJsonObject)(json))
102
- throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON " + (0, import_runtime2.typeofJsonValue)(json) + ".");
103
- if (typeof json["@type"] != "string" || json["@type"] == "")
104
- return this.create();
103
+ throw new globalThis.Error(
104
+ "Unable to parse google.protobuf.Any from JSON " + (0, import_runtime2.typeofJsonValue)(json) + "."
105
+ );
106
+ if (typeof json["@type"] != "string" || json["@type"] == "") return this.create();
105
107
  let typeName = this.typeUrlToName(json["@type"]);
106
108
  let type = options?.typeRegistry?.find((t) => t.typeName == typeName);
107
109
  if (!type)
108
- throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON. The specified type " + typeName + " is not available in the type registry.");
110
+ throw new globalThis.Error(
111
+ "Unable to parse google.protobuf.Any from JSON. The specified type " + typeName + " is not available in the type registry."
112
+ );
109
113
  let value;
110
114
  if (typeName.startsWith("google.protobuf.") && json.hasOwnProperty("value"))
111
115
  value = type.fromJson(json["value"], options);
@@ -114,24 +118,20 @@ class Any$Type extends import_runtime4.MessageType {
114
118
  delete copy["@type"];
115
119
  value = type.fromJson(copy, options);
116
120
  }
117
- if (target === void 0)
118
- target = this.create();
121
+ if (target === void 0) target = this.create();
119
122
  target.typeUrl = json["@type"];
120
123
  target.value = type.toBinary(value);
121
124
  return target;
122
125
  }
123
126
  typeNameToUrl(name) {
124
- if (!name.length)
125
- throw new Error("invalid type name: " + name);
127
+ if (!name.length) throw new Error("invalid type name: " + name);
126
128
  return "type.googleapis.com/" + name;
127
129
  }
128
130
  typeUrlToName(url) {
129
- if (!url.length)
130
- throw new Error("invalid type url: " + url);
131
+ if (!url.length) throw new Error("invalid type url: " + url);
131
132
  let slash = url.lastIndexOf("/");
132
133
  let name = slash > 0 ? url.substring(slash + 1) : url;
133
- if (!name.length)
134
- throw new Error("invalid type url: " + url);
134
+ if (!name.length) throw new Error("invalid type url: " + url);
135
135
  return name;
136
136
  }
137
137
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../src/grpc/proto/google/protobuf/any.ts"],
4
- "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/any.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { isJsonObject } from \"@protobuf-ts/runtime\";\nimport { typeofJsonValue } from \"@protobuf-ts/runtime\";\nimport type { JsonValue } from \"@protobuf-ts/runtime\";\nimport { jsonWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { JsonReadOptions } from \"@protobuf-ts/runtime\";\nimport type { JsonWriteOptions } from \"@protobuf-ts/runtime\";\nimport type { BinaryReadOptions } from \"@protobuf-ts/runtime\";\nimport type { IMessageType } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * `Any` contains an arbitrary serialized protocol buffer message along with a\n * URL that describes the type of the serialized message.\n *\n * Protobuf library provides support to pack/unpack Any values in the form\n * of utility functions or additional generated methods of the Any type.\n *\n * Example 1: Pack and unpack a message in C++.\n *\n * Foo foo = ...;\n * Any any;\n * any.PackFrom(foo);\n * ...\n * if (any.UnpackTo(&foo)) {\n * ...\n * }\n *\n * Example 2: Pack and unpack a message in Java.\n *\n * Foo foo = ...;\n * Any any = Any.pack(foo);\n * ...\n * if (any.is(Foo.class)) {\n * foo = any.unpack(Foo.class);\n * }\n * // or ...\n * if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n * foo = any.unpack(Foo.getDefaultInstance());\n * }\n *\n * Example 3: Pack and unpack a message in Python.\n *\n * foo = Foo(...)\n * any = Any()\n * any.Pack(foo)\n * ...\n * if any.Is(Foo.DESCRIPTOR):\n * any.Unpack(foo)\n * ...\n *\n * Example 4: Pack and unpack a message in Go\n *\n * foo := &pb.Foo{...}\n * any, err := anypb.New(foo)\n * if err != nil {\n * ...\n * }\n * ...\n * foo := &pb.Foo{}\n * if err := any.UnmarshalTo(foo); err != nil {\n * ...\n * }\n *\n * The pack methods provided by protobuf library will by default use\n * 'type.googleapis.com/full.type.name' as the type URL and the unpack\n * methods only use the fully qualified type name after the last '/'\n * in the type URL, for example \"foo.bar.com/x/y.z\" will yield type\n * name \"y.z\".\n *\n * JSON\n * ====\n * The JSON representation of an `Any` value uses the regular\n * representation of the deserialized, embedded message, with an\n * additional field `@type` which contains the type URL. Example:\n *\n * package google.profile;\n * message Person {\n * string first_name = 1;\n * string last_name = 2;\n * }\n *\n * {\n * \"@type\": \"type.googleapis.com/google.profile.Person\",\n * \"firstName\": <string>,\n * \"lastName\": <string>\n * }\n *\n * If the embedded message type is well-known and has a custom JSON\n * representation, that representation will be embedded adding a field\n * `value` which holds the custom JSON in addition to the `@type`\n * field. Example (for message [google.protobuf.Duration][]):\n *\n * {\n * \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n * \"value\": \"1.212s\"\n * }\n *\n *\n * @generated from protobuf message google.protobuf.Any\n */\nexport interface Any {\n /**\n * A URL/resource name that uniquely identifies the type of the serialized\n * protocol buffer message. This string must contain at least\n * one \"/\" character. The last segment of the URL's path must represent\n * the fully qualified name of the type (as in\n * `path/google.protobuf.Duration`). The name should be in a canonical form\n * (e.g., leading \".\" is not accepted).\n *\n * In practice, teams usually precompile into the binary all types that they\n * expect it to use in the context of Any. However, for URLs which use the\n * scheme `http`, `https`, or no scheme, one can optionally set up a type\n * server that maps type URLs to message definitions as follows:\n *\n * * If no scheme is provided, `https` is assumed.\n * * An HTTP GET on the URL must yield a [google.protobuf.Type][]\n * value in binary format, or produce an error.\n * * Applications are allowed to cache lookup results based on the\n * URL, or have them precompiled into a binary to avoid any\n * lookup. Therefore, binary compatibility needs to be preserved\n * on changes to types. (Use versioned type names to manage\n * breaking changes.)\n *\n * Note: this functionality is not currently available in the official\n * protobuf release, and it is not used for type URLs beginning with\n * type.googleapis.com. As of May 2023, there are no widely used type server\n * implementations and no plans to implement one.\n *\n * Schemes other than `http`, `https` (or the empty scheme) might be\n * used with implementation specific semantics.\n *\n *\n * @generated from protobuf field: string type_url = 1;\n */\n typeUrl: string;\n /**\n * Must be a valid serialized protocol buffer of the above specified type.\n *\n * @generated from protobuf field: bytes value = 2;\n */\n value: Uint8Array;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Any$Type extends MessageType<Any> {\n constructor() {\n super(\"google.protobuf.Any\", [\n { no: 1, name: \"type_url\", kind: \"scalar\", T: 9 /*ScalarType.STRING*/ },\n { no: 2, name: \"value\", kind: \"scalar\", T: 12 /*ScalarType.BYTES*/ }\n ]);\n }\n /**\n * Pack the message into a new `Any`.\n *\n * Uses 'type.googleapis.com/full.type.name' as the type URL.\n */\n pack<T extends object>(message: T, type: IMessageType<T>): Any {\n return {\n typeUrl: this.typeNameToUrl(type.typeName), value: type.toBinary(message),\n };\n }\n /**\n * Unpack the message from the `Any`.\n */\n unpack<T extends object>(any: Any, type: IMessageType<T>, options?: Partial<BinaryReadOptions>): T {\n if (!this.contains(any, type))\n throw new Error(\"Cannot unpack google.protobuf.Any with typeUrl '\" + any.typeUrl + \"' as \" + type.typeName + \".\");\n return type.fromBinary(any.value, options);\n }\n /**\n * Does the given `Any` contain a packed message of the given type?\n */\n contains(any: Any, type: IMessageType<any> | string): boolean {\n if (!any.typeUrl.length)\n return false;\n let wants = typeof type == \"string\" ? type : type.typeName;\n let has = this.typeUrlToName(any.typeUrl);\n return wants === has;\n }\n /**\n * Convert the message to canonical JSON value.\n *\n * You have to provide the `typeRegistry` option so that the\n * packed message can be converted to JSON.\n *\n * The `typeRegistry` option is also required to read\n * `google.protobuf.Any` from JSON format.\n */\n internalJsonWrite(any: Any, options: JsonWriteOptions): JsonValue {\n if (any.typeUrl === \"\")\n return {};\n let typeName = this.typeUrlToName(any.typeUrl);\n let opt = jsonWriteOptions(options);\n let type = opt.typeRegistry?.find(t => t.typeName === typeName);\n if (!type)\n throw new globalThis.Error(\"Unable to convert google.protobuf.Any with typeUrl '\" + any.typeUrl + \"' to JSON. The specified type \" + typeName + \" is not available in the type registry.\");\n let value = type.fromBinary(any.value, { readUnknownField: false });\n let json = type.internalJsonWrite(value, opt);\n if (typeName.startsWith(\"google.protobuf.\") || !isJsonObject(json))\n json = { value: json };\n json[\"@type\"] = any.typeUrl;\n return json;\n }\n internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Any): Any {\n if (!isJsonObject(json))\n throw new globalThis.Error(\"Unable to parse google.protobuf.Any from JSON \" + typeofJsonValue(json) + \".\");\n if (typeof json[\"@type\"] != \"string\" || json[\"@type\"] == \"\")\n return this.create();\n let typeName = this.typeUrlToName(json[\"@type\"]);\n let type = options?.typeRegistry?.find(t => t.typeName == typeName);\n if (!type)\n throw new globalThis.Error(\"Unable to parse google.protobuf.Any from JSON. The specified type \" + typeName + \" is not available in the type registry.\");\n let value;\n if (typeName.startsWith(\"google.protobuf.\") && json.hasOwnProperty(\"value\"))\n value = type.fromJson(json[\"value\"], options);\n else {\n let copy = Object.assign({}, json);\n delete copy[\"@type\"];\n value = type.fromJson(copy, options);\n }\n if (target === undefined)\n target = this.create();\n target.typeUrl = json[\"@type\"];\n target.value = type.toBinary(value);\n return target;\n }\n typeNameToUrl(name: string): string {\n if (!name.length)\n throw new Error(\"invalid type name: \" + name);\n return \"type.googleapis.com/\" + name;\n }\n typeUrlToName(url: string): string {\n if (!url.length)\n throw new Error(\"invalid type url: \" + url);\n let slash = url.lastIndexOf(\"/\");\n let name = slash > 0 ? url.substring(slash + 1) : url;\n if (!name.length)\n throw new Error(\"invalid type url: \" + url);\n return name;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Any\n */\nexport const Any = new Any$Type();\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCA,qBAA6B;AAC7B,IAAAA,kBAAgC;AAEhC,IAAAA,kBAAiC;AAKjC,IAAAA,kBAA4B;AAsI5B,MAAM,iBAAiB,4BAAiB;AAAA,EACpC,cAAc;AACV,UAAM,uBAAuB;AAAA,MACzB;AAAA,QAAE,IAAI;AAAA,QAAG,MAAM;AAAA,QAAY,MAAM;AAAA,QAAU,GAAG;AAAA;AAAA,MAAwB;AAAA,MACtE;AAAA,QAAE,IAAI;AAAA,QAAG,MAAM;AAAA,QAAS,MAAM;AAAA,QAAU,GAAG;AAAA;AAAA,MAAwB;AAAA,IACvE,CAAC;AAAA,EACL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,KAAuB,SAAY,MAA4B;AAC3D,WAAO;AAAA,MACH,SAAS,KAAK,cAAc,KAAK,QAAQ;AAAA,MAAG,OAAO,KAAK,SAAS,OAAO;AAAA,IAC5E;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA,EAIA,OAAyB,KAAU,MAAuB,SAAyC;AAC/F,QAAI,CAAC,KAAK,SAAS,KAAK,IAAI;AACxB,YAAM,IAAI,MAAM,qDAAqD,IAAI,UAAU,UAAU,KAAK,WAAW,GAAG;AACpH,WAAO,KAAK,WAAW,IAAI,OAAO,OAAO;AAAA,EAC7C;AAAA;AAAA;AAAA;AAAA,EAIA,SAAS,KAAU,MAA2C;AAC1D,QAAI,CAAC,IAAI,QAAQ;AACb,aAAO;AACX,QAAI,QAAQ,OAAO,QAAQ,WAAW,OAAO,KAAK;AAClD,QAAI,MAAM,KAAK,cAAc,IAAI,OAAO;AACxC,WAAO,UAAU;AAAA,EACrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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QAAI,WAAW;AACX,eAAS,KAAK,OAAO;AACzB,WAAO,UAAU,KAAK,OAAO;AAC7B,WAAO,QAAQ,KAAK,SAAS,KAAK;AAClC,WAAO;AAAA,EACX;AAAA,EACA,cAAc,MAAsB;AAChC,QAAI,CAAC,KAAK;AACN,YAAM,IAAI,MAAM,wBAAwB,IAAI;AAChD,WAAO,yBAAyB;AAAA,EACpC;AAAA,EACA,cAAc,KAAqB;AAC/B,QAAI,CAAC,IAAI;AACL,YAAM,IAAI,MAAM,uBAAuB,GAAG;AAC9C,QAAI,QAAQ,IAAI,YAAY,GAAG;AAC/B,QAAI,OAAO,QAAQ,IAAI,IAAI,UAAU,QAAQ,CAAC,IAAI;AAClD,QAAI,CAAC,KAAK;AACN,YAAM,IAAI,MAAM,uBAAuB,GAAG;AAC9C,WAAO;AAAA,EACX;AACJ;AAIO,MAAM,MAAM,IAAI,SAAS;",
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/any.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { isJsonObject } from '@protobuf-ts/runtime';\nimport { typeofJsonValue } from '@protobuf-ts/runtime';\nimport type { JsonValue } from '@protobuf-ts/runtime';\nimport { jsonWriteOptions } from '@protobuf-ts/runtime';\nimport type { JsonReadOptions } from '@protobuf-ts/runtime';\nimport type { JsonWriteOptions } from '@protobuf-ts/runtime';\nimport type { BinaryReadOptions } from '@protobuf-ts/runtime';\nimport type { IMessageType } from '@protobuf-ts/runtime';\nimport { MessageType } from '@protobuf-ts/runtime';\n/**\n * `Any` contains an arbitrary serialized protocol buffer message along with a\n * URL that describes the type of the serialized message.\n *\n * Protobuf library provides support to pack/unpack Any values in the form\n * of utility functions or additional generated methods of the Any type.\n *\n * Example 1: Pack and unpack a message in C++.\n *\n * Foo foo = ...;\n * Any any;\n * any.PackFrom(foo);\n * ...\n * if (any.UnpackTo(&foo)) {\n * ...\n * }\n *\n * Example 2: Pack and unpack a message in Java.\n *\n * Foo foo = ...;\n * Any any = Any.pack(foo);\n * ...\n * if (any.is(Foo.class)) {\n * foo = any.unpack(Foo.class);\n * }\n * // or ...\n * if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n * foo = any.unpack(Foo.getDefaultInstance());\n * }\n *\n * Example 3: Pack and unpack a message in Python.\n *\n * foo = Foo(...)\n * any = Any()\n * any.Pack(foo)\n * ...\n * if any.Is(Foo.DESCRIPTOR):\n * any.Unpack(foo)\n * ...\n *\n * Example 4: Pack and unpack a message in Go\n *\n * foo := &pb.Foo{...}\n * any, err := anypb.New(foo)\n * if err != nil {\n * ...\n * }\n * ...\n * foo := &pb.Foo{}\n * if err := any.UnmarshalTo(foo); err != nil {\n * ...\n * }\n *\n * The pack methods provided by protobuf library will by default use\n * 'type.googleapis.com/full.type.name' as the type URL and the unpack\n * methods only use the fully qualified type name after the last '/'\n * in the type URL, for example \"foo.bar.com/x/y.z\" will yield type\n * name \"y.z\".\n *\n * JSON\n * ====\n * The JSON representation of an `Any` value uses the regular\n * representation of the deserialized, embedded message, with an\n * additional field `@type` which contains the type URL. Example:\n *\n * package google.profile;\n * message Person {\n * string first_name = 1;\n * string last_name = 2;\n * }\n *\n * {\n * \"@type\": \"type.googleapis.com/google.profile.Person\",\n * \"firstName\": <string>,\n * \"lastName\": <string>\n * }\n *\n * If the embedded message type is well-known and has a custom JSON\n * representation, that representation will be embedded adding a field\n * `value` which holds the custom JSON in addition to the `@type`\n * field. Example (for message [google.protobuf.Duration][]):\n *\n * {\n * \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n * \"value\": \"1.212s\"\n * }\n *\n *\n * @generated from protobuf message google.protobuf.Any\n */\nexport interface Any {\n\t/**\n\t * A URL/resource name that uniquely identifies the type of the serialized\n\t * protocol buffer message. This string must contain at least\n\t * one \"/\" character. The last segment of the URL's path must represent\n\t * the fully qualified name of the type (as in\n\t * `path/google.protobuf.Duration`). The name should be in a canonical form\n\t * (e.g., leading \".\" is not accepted).\n\t *\n\t * In practice, teams usually precompile into the binary all types that they\n\t * expect it to use in the context of Any. However, for URLs which use the\n\t * scheme `http`, `https`, or no scheme, one can optionally set up a type\n\t * server that maps type URLs to message definitions as follows:\n\t *\n\t * * If no scheme is provided, `https` is assumed.\n\t * * An HTTP GET on the URL must yield a [google.protobuf.Type][]\n\t * value in binary format, or produce an error.\n\t * * Applications are allowed to cache lookup results based on the\n\t * URL, or have them precompiled into a binary to avoid any\n\t * lookup. Therefore, binary compatibility needs to be preserved\n\t * on changes to types. (Use versioned type names to manage\n\t * breaking changes.)\n\t *\n\t * Note: this functionality is not currently available in the official\n\t * protobuf release, and it is not used for type URLs beginning with\n\t * type.googleapis.com. As of May 2023, there are no widely used type server\n\t * implementations and no plans to implement one.\n\t *\n\t * Schemes other than `http`, `https` (or the empty scheme) might be\n\t * used with implementation specific semantics.\n\t *\n\t *\n\t * @generated from protobuf field: string type_url = 1;\n\t */\n\ttypeUrl: string;\n\t/**\n\t * Must be a valid serialized protocol buffer of the above specified type.\n\t *\n\t * @generated from protobuf field: bytes value = 2;\n\t */\n\tvalue: Uint8Array;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Any$Type extends MessageType<Any> {\n\tconstructor() {\n\t\tsuper('google.protobuf.Any', [\n\t\t\t{ no: 1, name: 'type_url', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'value', kind: 'scalar', T: 12 /*ScalarType.BYTES*/ },\n\t\t]);\n\t}\n\t/**\n\t * Pack the message into a new `Any`.\n\t *\n\t * Uses 'type.googleapis.com/full.type.name' as the type URL.\n\t */\n\tpack<T extends object>(message: T, type: IMessageType<T>): Any {\n\t\treturn {\n\t\t\ttypeUrl: this.typeNameToUrl(type.typeName),\n\t\t\tvalue: type.toBinary(message),\n\t\t};\n\t}\n\t/**\n\t * Unpack the message from the `Any`.\n\t */\n\tunpack<T extends object>(\n\t\tany: Any,\n\t\ttype: IMessageType<T>,\n\t\toptions?: Partial<BinaryReadOptions>,\n\t): T {\n\t\tif (!this.contains(any, type))\n\t\t\tthrow new Error(\n\t\t\t\t\"Cannot unpack google.protobuf.Any with typeUrl '\" +\n\t\t\t\t\tany.typeUrl +\n\t\t\t\t\t\"' as \" +\n\t\t\t\t\ttype.typeName +\n\t\t\t\t\t'.',\n\t\t\t);\n\t\treturn type.fromBinary(any.value, options);\n\t}\n\t/**\n\t * Does the given `Any` contain a packed message of the given type?\n\t */\n\tcontains(any: Any, type: IMessageType<any> | string): boolean {\n\t\tif (!any.typeUrl.length) return false;\n\t\tlet wants = typeof type == 'string' ? type : type.typeName;\n\t\tlet has = this.typeUrlToName(any.typeUrl);\n\t\treturn wants === has;\n\t}\n\t/**\n\t * Convert the message to canonical JSON value.\n\t *\n\t * You have to provide the `typeRegistry` option so that the\n\t * packed message can be converted to JSON.\n\t *\n\t * The `typeRegistry` option is also required to read\n\t * `google.protobuf.Any` from JSON format.\n\t */\n\tinternalJsonWrite(any: Any, options: JsonWriteOptions): JsonValue {\n\t\tif (any.typeUrl === '') return {};\n\t\tlet typeName = this.typeUrlToName(any.typeUrl);\n\t\tlet opt = jsonWriteOptions(options);\n\t\tlet type = opt.typeRegistry?.find((t) => t.typeName === typeName);\n\t\tif (!type)\n\t\t\tthrow new globalThis.Error(\n\t\t\t\t\"Unable to convert google.protobuf.Any with typeUrl '\" +\n\t\t\t\t\tany.typeUrl +\n\t\t\t\t\t\"' to JSON. The specified type \" +\n\t\t\t\t\ttypeName +\n\t\t\t\t\t' is not available in the type registry.',\n\t\t\t);\n\t\tlet value = type.fromBinary(any.value, { readUnknownField: false });\n\t\tlet json = type.internalJsonWrite(value, opt);\n\t\tif (typeName.startsWith('google.protobuf.') || !isJsonObject(json)) json = { value: json };\n\t\tjson['@type'] = any.typeUrl;\n\t\treturn json;\n\t}\n\tinternalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Any): Any {\n\t\tif (!isJsonObject(json))\n\t\t\tthrow new globalThis.Error(\n\t\t\t\t'Unable to parse google.protobuf.Any from JSON ' + typeofJsonValue(json) + '.',\n\t\t\t);\n\t\tif (typeof json['@type'] != 'string' || json['@type'] == '') return this.create();\n\t\tlet typeName = this.typeUrlToName(json['@type']);\n\t\tlet type = options?.typeRegistry?.find((t) => t.typeName == typeName);\n\t\tif (!type)\n\t\t\tthrow new globalThis.Error(\n\t\t\t\t'Unable to parse google.protobuf.Any from JSON. The specified type ' +\n\t\t\t\t\ttypeName +\n\t\t\t\t\t' is not available in the type registry.',\n\t\t\t);\n\t\tlet value;\n\t\tif (typeName.startsWith('google.protobuf.') && json.hasOwnProperty('value'))\n\t\t\tvalue = type.fromJson(json['value'], options);\n\t\telse {\n\t\t\tlet copy = Object.assign({}, json);\n\t\t\tdelete copy['@type'];\n\t\t\tvalue = type.fromJson(copy, options);\n\t\t}\n\t\tif (target === undefined) target = this.create();\n\t\ttarget.typeUrl = json['@type'];\n\t\ttarget.value = type.toBinary(value);\n\t\treturn target;\n\t}\n\ttypeNameToUrl(name: string): string {\n\t\tif (!name.length) throw new Error('invalid type name: ' + name);\n\t\treturn 'type.googleapis.com/' + name;\n\t}\n\ttypeUrlToName(url: string): string {\n\t\tif (!url.length) throw new Error('invalid type url: ' + url);\n\t\tlet slash = url.lastIndexOf('/');\n\t\tlet name = slash > 0 ? url.substring(slash + 1) : url;\n\t\tif (!name.length) throw new Error('invalid type url: ' + url);\n\t\treturn name;\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Any\n */\nexport const Any = new Any$Type();\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCA,qBAA6B;AAC7B,IAAAA,kBAAgC;AAEhC,IAAAA,kBAAiC;AAKjC,IAAAA,kBAA4B;AAsI5B,MAAM,iBAAiB,4BAAiB;AAAA,EACvC,cAAc;AACb,UAAM,uBAAuB;AAAA,MAC5B;AAAA,QAAE,IAAI;AAAA,QAAG,MAAM;AAAA,QAAY,MAAM;AAAA,QAAU,GAAG;AAAA;AAAA,MAAwB;AAAA,MACtE;AAAA,QAAE,IAAI;AAAA,QAAG,MAAM;AAAA,QAAS,MAAM;AAAA,QAAU,GAAG;AAAA;AAAA,M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D,WAAO;AAAA,EACR;AACD;AAIO,MAAM,MAAM,IAAI,SAAS;",
6
6
  "names": ["import_runtime"]
7
7
  }
@@ -1,7 +1,7 @@
1
- import type { JsonValue } from "@protobuf-ts/runtime";
2
- import type { JsonReadOptions } from "@protobuf-ts/runtime";
3
- import type { JsonWriteOptions } from "@protobuf-ts/runtime";
4
- import { MessageType } from "@protobuf-ts/runtime";
1
+ import type { JsonValue } from '@protobuf-ts/runtime';
2
+ import type { JsonReadOptions } from '@protobuf-ts/runtime';
3
+ import type { JsonWriteOptions } from '@protobuf-ts/runtime';
4
+ import { MessageType } from '@protobuf-ts/runtime';
5
5
  /**
6
6
  * A Duration represents a signed, fixed-length span of time represented
7
7
  * as a count of seconds and fractions of seconds at nanosecond
@@ -33,7 +33,6 @@ class Duration$Type extends import_runtime3.MessageType {
33
33
  kind: "scalar",
34
34
  T: 3,
35
35
  L: 0
36
- /*LongType.BIGINT*/
37
36
  },
38
37
  {
39
38
  no: 2,
@@ -49,18 +48,14 @@ class Duration$Type extends import_runtime3.MessageType {
49
48
  */
50
49
  internalJsonWrite(message, options) {
51
50
  let s = import_runtime2.PbLong.from(message.seconds).toNumber();
52
- if (s > 315576e6 || s < -315576e6)
53
- throw new Error("Duration value out of range.");
51
+ if (s > 315576e6 || s < -315576e6) throw new Error("Duration value out of range.");
54
52
  let text = message.seconds.toString();
55
- if (s === 0 && message.nanos < 0)
56
- text = "-" + text;
53
+ if (s === 0 && message.nanos < 0) text = "-" + text;
57
54
  if (message.nanos !== 0) {
58
55
  let nanosStr = Math.abs(message.nanos).toString();
59
56
  nanosStr = "0".repeat(9 - nanosStr.length) + nanosStr;
60
- if (nanosStr.substring(3) === "000000")
61
- nanosStr = nanosStr.substring(0, 3);
62
- else if (nanosStr.substring(6) === "000")
63
- nanosStr = nanosStr.substring(0, 6);
57
+ if (nanosStr.substring(3) === "000000") nanosStr = nanosStr.substring(0, 3);
58
+ else if (nanosStr.substring(6) === "000") nanosStr = nanosStr.substring(0, 6);
64
59
  text += "." + nanosStr;
65
60
  }
66
61
  return text + "s";
@@ -70,12 +65,13 @@ class Duration$Type extends import_runtime3.MessageType {
70
65
  */
71
66
  internalJsonRead(json, options, target) {
72
67
  if (typeof json !== "string")
73
- throw new Error("Unable to parse Duration from JSON " + (0, import_runtime.typeofJsonValue)(json) + ". Expected string.");
68
+ throw new Error(
69
+ "Unable to parse Duration from JSON " + (0, import_runtime.typeofJsonValue)(json) + ". Expected string."
70
+ );
74
71
  let match = json.match(/^(-?)([0-9]+)(?:\.([0-9]+))?s/);
75
72
  if (match === null)
76
73
  throw new Error("Unable to parse Duration from JSON string. Invalid format.");
77
- if (!target)
78
- target = this.create();
74
+ if (!target) target = this.create();
79
75
  let [, sign, secs, nanos] = match;
80
76
  let longSeconds = import_runtime2.PbLong.from(sign + secs);
81
77
  if (longSeconds.toNumber() > 315576e6 || longSeconds.toNumber() < -315576e6)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../src/grpc/proto/google/protobuf/duration.ts"],
4
- "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/duration.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { typeofJsonValue } from \"@protobuf-ts/runtime\";\nimport type { JsonValue } from \"@protobuf-ts/runtime\";\nimport type { JsonReadOptions } from \"@protobuf-ts/runtime\";\nimport type { JsonWriteOptions } from \"@protobuf-ts/runtime\";\nimport { PbLong } from \"@protobuf-ts/runtime\";\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * A Duration represents a signed, fixed-length span of time represented\n * as a count of seconds and fractions of seconds at nanosecond\n * resolution. It is independent of any calendar and concepts like \"day\"\n * or \"month\". It is related to Timestamp in that the difference between\n * two Timestamp values is a Duration and it can be added or subtracted\n * from a Timestamp. Range is approximately +-10,000 years.\n *\n * # Examples\n *\n * Example 1: Compute Duration from two Timestamps in pseudo code.\n *\n * Timestamp start = ...;\n * Timestamp end = ...;\n * Duration duration = ...;\n *\n * duration.seconds = end.seconds - start.seconds;\n * duration.nanos = end.nanos - start.nanos;\n *\n * if (duration.seconds < 0 && duration.nanos > 0) {\n * duration.seconds += 1;\n * duration.nanos -= 1000000000;\n * } else if (duration.seconds > 0 && duration.nanos < 0) {\n * duration.seconds -= 1;\n * duration.nanos += 1000000000;\n * }\n *\n * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.\n *\n * Timestamp start = ...;\n * Duration duration = ...;\n * Timestamp end = ...;\n *\n * end.seconds = start.seconds + duration.seconds;\n * end.nanos = start.nanos + duration.nanos;\n *\n * if (end.nanos < 0) {\n * end.seconds -= 1;\n * end.nanos += 1000000000;\n * } else if (end.nanos >= 1000000000) {\n * end.seconds += 1;\n * end.nanos -= 1000000000;\n * }\n *\n * Example 3: Compute Duration from datetime.timedelta in Python.\n *\n * td = datetime.timedelta(days=3, minutes=10)\n * duration = Duration()\n * duration.FromTimedelta(td)\n *\n * # JSON Mapping\n *\n * In JSON format, the Duration type is encoded as a string rather than an\n * object, where the string ends in the suffix \"s\" (indicating seconds) and\n * is preceded by the number of seconds, with nanoseconds expressed as\n * fractional seconds. For example, 3 seconds with 0 nanoseconds should be\n * encoded in JSON format as \"3s\", while 3 seconds and 1 nanosecond should\n * be expressed in JSON format as \"3.000000001s\", and 3 seconds and 1\n * microsecond should be expressed in JSON format as \"3.000001s\".\n *\n *\n * @generated from protobuf message google.protobuf.Duration\n */\nexport interface Duration {\n /**\n * Signed seconds of the span of time. Must be from -315,576,000,000\n * to +315,576,000,000 inclusive. Note: these bounds are computed from:\n * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years\n *\n * @generated from protobuf field: int64 seconds = 1;\n */\n seconds: bigint;\n /**\n * Signed fractions of a second at nanosecond resolution of the span\n * of time. Durations less than one second are represented with a 0\n * `seconds` field and a positive or negative `nanos` field. For durations\n * of one second or more, a non-zero value for the `nanos` field must be\n * of the same sign as the `seconds` field. Must be from -999,999,999\n * to +999,999,999 inclusive.\n *\n * @generated from protobuf field: int32 nanos = 2;\n */\n nanos: number;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Duration$Type extends MessageType<Duration> {\n constructor() {\n super(\"google.protobuf.Duration\", [\n { no: 1, name: \"seconds\", kind: \"scalar\", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },\n { no: 2, name: \"nanos\", kind: \"scalar\", T: 5 /*ScalarType.INT32*/ }\n ]);\n }\n /**\n * Encode `Duration` to JSON string like \"3.000001s\".\n */\n internalJsonWrite(message: Duration, options: JsonWriteOptions): JsonValue {\n let s = PbLong.from(message.seconds).toNumber();\n if (s > 315576000000 || s < -315576000000)\n throw new Error(\"Duration value out of range.\");\n let text = message.seconds.toString();\n if (s === 0 && message.nanos < 0)\n text = \"-\" + text;\n if (message.nanos !== 0) {\n let nanosStr = Math.abs(message.nanos).toString();\n nanosStr = \"0\".repeat(9 - nanosStr.length) + nanosStr;\n if (nanosStr.substring(3) === \"000000\")\n nanosStr = nanosStr.substring(0, 3);\n else if (nanosStr.substring(6) === \"000\")\n nanosStr = nanosStr.substring(0, 6);\n text += \".\" + nanosStr;\n }\n return text + \"s\";\n }\n /**\n * Decode `Duration` from JSON string like \"3.000001s\"\n */\n internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Duration): Duration {\n if (typeof json !== \"string\")\n throw new Error(\"Unable to parse Duration from JSON \" + typeofJsonValue(json) + \". Expected string.\");\n let match = json.match(/^(-?)([0-9]+)(?:\\.([0-9]+))?s/);\n if (match === null)\n throw new Error(\"Unable to parse Duration from JSON string. Invalid format.\");\n if (!target)\n target = this.create();\n let [, sign, secs, nanos] = match;\n let longSeconds = PbLong.from(sign + secs);\n if (longSeconds.toNumber() > 315576000000 || longSeconds.toNumber() < -315576000000)\n throw new Error(\"Unable to parse Duration from JSON string. Value out of range.\");\n target.seconds = longSeconds.toBigInt();\n if (typeof nanos == \"string\") {\n let nanosStr = sign + nanos + \"0\".repeat(9 - nanos.length);\n target.nanos = parseInt(nanosStr);\n }\n return target;\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Duration\n */\nexport const Duration = new Duration$Type();\n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AQ,KAAK,MAAM,+BAA+B;AACtD,QAAI,UAAU;AACV,YAAM,IAAI,MAAM,4DAA4D;AAChF,QAAI,CAAC;AACD,eAAS,KAAK,OAAO;AACzB,QAAI,CAAC,EAAE,MAAM,MAAM,KAAK,IAAI;AAC5B,QAAI,cAAc,uBAAO,KAAK,OAAO,IAAI;AACzC,QAAI,YAAY,SAAS,IAAI,YAAgB,YAAY,SAAS,IAAI;AAClE,YAAM,IAAI,MAAM,gEAAgE;AACpF,WAAO,UAAU,YAAY,SAAS;AACtC,QAAI,OAAO,SAAS,UAAU;AAC1B,UAAI,WAAW,OAAO,QAAQ,IAAI,OAAO,IAAI,MAAM,MAAM;AACzD,aAAO,QAAQ,SAAS,QAAQ;AAAA,IACpC;AACA,WAAO;AAAA,EACX;AACJ;AAIO,MAAM,WAAW,IAAI,cAAc;",
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/duration.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { typeofJsonValue } from '@protobuf-ts/runtime';\nimport type { JsonValue } from '@protobuf-ts/runtime';\nimport type { JsonReadOptions } from '@protobuf-ts/runtime';\nimport type { JsonWriteOptions } from '@protobuf-ts/runtime';\nimport { PbLong } from '@protobuf-ts/runtime';\nimport { MessageType } from '@protobuf-ts/runtime';\n/**\n * A Duration represents a signed, fixed-length span of time represented\n * as a count of seconds and fractions of seconds at nanosecond\n * resolution. It is independent of any calendar and concepts like \"day\"\n * or \"month\". It is related to Timestamp in that the difference between\n * two Timestamp values is a Duration and it can be added or subtracted\n * from a Timestamp. Range is approximately +-10,000 years.\n *\n * # Examples\n *\n * Example 1: Compute Duration from two Timestamps in pseudo code.\n *\n * Timestamp start = ...;\n * Timestamp end = ...;\n * Duration duration = ...;\n *\n * duration.seconds = end.seconds - start.seconds;\n * duration.nanos = end.nanos - start.nanos;\n *\n * if (duration.seconds < 0 && duration.nanos > 0) {\n * duration.seconds += 1;\n * duration.nanos -= 1000000000;\n * } else if (duration.seconds > 0 && duration.nanos < 0) {\n * duration.seconds -= 1;\n * duration.nanos += 1000000000;\n * }\n *\n * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.\n *\n * Timestamp start = ...;\n * Duration duration = ...;\n * Timestamp end = ...;\n *\n * end.seconds = start.seconds + duration.seconds;\n * end.nanos = start.nanos + duration.nanos;\n *\n * if (end.nanos < 0) {\n * end.seconds -= 1;\n * end.nanos += 1000000000;\n * } else if (end.nanos >= 1000000000) {\n * end.seconds += 1;\n * end.nanos -= 1000000000;\n * }\n *\n * Example 3: Compute Duration from datetime.timedelta in Python.\n *\n * td = datetime.timedelta(days=3, minutes=10)\n * duration = Duration()\n * duration.FromTimedelta(td)\n *\n * # JSON Mapping\n *\n * In JSON format, the Duration type is encoded as a string rather than an\n * object, where the string ends in the suffix \"s\" (indicating seconds) and\n * is preceded by the number of seconds, with nanoseconds expressed as\n * fractional seconds. For example, 3 seconds with 0 nanoseconds should be\n * encoded in JSON format as \"3s\", while 3 seconds and 1 nanosecond should\n * be expressed in JSON format as \"3.000000001s\", and 3 seconds and 1\n * microsecond should be expressed in JSON format as \"3.000001s\".\n *\n *\n * @generated from protobuf message google.protobuf.Duration\n */\nexport interface Duration {\n\t/**\n\t * Signed seconds of the span of time. Must be from -315,576,000,000\n\t * to +315,576,000,000 inclusive. Note: these bounds are computed from:\n\t * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years\n\t *\n\t * @generated from protobuf field: int64 seconds = 1;\n\t */\n\tseconds: bigint;\n\t/**\n\t * Signed fractions of a second at nanosecond resolution of the span\n\t * of time. Durations less than one second are represented with a 0\n\t * `seconds` field and a positive or negative `nanos` field. For durations\n\t * of one second or more, a non-zero value for the `nanos` field must be\n\t * of the same sign as the `seconds` field. Must be from -999,999,999\n\t * to +999,999,999 inclusive.\n\t *\n\t * @generated from protobuf field: int32 nanos = 2;\n\t */\n\tnanos: number;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Duration$Type extends MessageType<Duration> {\n\tconstructor() {\n\t\tsuper('google.protobuf.Duration', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'seconds',\n\t\t\t\tkind: 'scalar',\n\t\t\t\tT: 3 /*ScalarType.INT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 2, name: 'nanos', kind: 'scalar', T: 5 /*ScalarType.INT32*/ },\n\t\t]);\n\t}\n\t/**\n\t * Encode `Duration` to JSON string like \"3.000001s\".\n\t */\n\tinternalJsonWrite(message: Duration, options: JsonWriteOptions): JsonValue {\n\t\tlet s = PbLong.from(message.seconds).toNumber();\n\t\tif (s > 315576000000 || s < -315576000000) throw new Error('Duration value out of range.');\n\t\tlet text = message.seconds.toString();\n\t\tif (s === 0 && message.nanos < 0) text = '-' + text;\n\t\tif (message.nanos !== 0) {\n\t\t\tlet nanosStr = Math.abs(message.nanos).toString();\n\t\t\tnanosStr = '0'.repeat(9 - nanosStr.length) + nanosStr;\n\t\t\tif (nanosStr.substring(3) === '000000') nanosStr = nanosStr.substring(0, 3);\n\t\t\telse if (nanosStr.substring(6) === '000') nanosStr = nanosStr.substring(0, 6);\n\t\t\ttext += '.' + nanosStr;\n\t\t}\n\t\treturn text + 's';\n\t}\n\t/**\n\t * Decode `Duration` from JSON string like \"3.000001s\"\n\t */\n\tinternalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Duration): Duration {\n\t\tif (typeof json !== 'string')\n\t\t\tthrow new Error(\n\t\t\t\t'Unable to parse Duration from JSON ' + typeofJsonValue(json) + '. Expected string.',\n\t\t\t);\n\t\tlet match = json.match(/^(-?)([0-9]+)(?:\\.([0-9]+))?s/);\n\t\tif (match === null)\n\t\t\tthrow new Error('Unable to parse Duration from JSON string. Invalid format.');\n\t\tif (!target) target = this.create();\n\t\tlet [, sign, secs, nanos] = match;\n\t\tlet longSeconds = PbLong.from(sign + secs);\n\t\tif (longSeconds.toNumber() > 315576000000 || longSeconds.toNumber() < -315576000000)\n\t\t\tthrow new Error('Unable to parse Duration from JSON string. Value out of range.');\n\t\ttarget.seconds = longSeconds.toBigInt();\n\t\tif (typeof nanos == 'string') {\n\t\t\tlet nanosStr = sign + nanos + '0'.repeat(9 - nanos.length);\n\t\t\ttarget.nanos = parseInt(nanosStr);\n\t\t}\n\t\treturn target;\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Duration\n */\nexport const Duration = new Duration$Type();\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCA,qBAAgC;AAIhC,IAAAA,kBAAuB;AACvB,IAAAA,kBAA4B;AAsF5B,MAAM,sBAAsB,4BAAsB;AAAA,EACjD,cAAc;AACb,UAAM,4BAA4B;AAAA,MACjC;AAAA,QACC,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,MAAM;AAAA,QACN,GAAG;AAAA,QACH,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,QAAE,IAAI;AAAA,QAAG,MAAM;AAAA,QAAS,MAAM;AAAA,QAAU,GAAG;AAAA;AAAA,MAAuB;AAAA,IACnE,CAAC;AAAA,EACF;AAAA;AAAA;AAAA;AAAA,EAIA,kBAAkB,SAAmB,SAAsC;AAC1E,QAAI,IAAI,uBAAO,KAAK,QAAQ,OAAO,EAAE,SAAS;AAC9C,QAAI,IAAI,YAAgB,IAAI,UAAe,OAAM,IAAI,MAAM,8BAA8B;AACzF,QAAI,OAAO,QAAQ,QAAQ,SAAS;AACpC,QAAI,MAAM,KAAK,QAAQ,QAAQ,EAAG,QAAO,MAAM;AAC/C,QAAI,QAAQ,UAAU,GAAG;AACxB,UAAI,WAAW,KAAK,IAAI,QAAQ,KAAK,EAAE,SAAS;AAChD,iBAAW,IAAI,OAAO,IAAI,SAAS,MAAM,IAAI;AAC7C,UAAI,SAAS,UAAU,CAAC,MAAM,SAAU,YAAW,SAAS,UAAU,GAAG,CAAC;AAAA,eACjE,SAAS,UAAU,CAAC,MAAM,MAAO,YAAW,SAAS,UAAU,GAAG,CAAC;AAC5E,cAAQ,MAAM;AAAA,IACf;AACA,WAAO,OAAO;AAAA,EACf;AAAA;AAAA;AAAA;AAAA,EAIA,iBAAiB,MAAiB,SAA0B,QAA6B;AACxF,QAAI,OAAO,SAAS;AACnB,YAAM,IAAI;AAAA,QACT,4CAAwC,gCAAgB,IAAI,IAAI;AAAA,MACjE;AACD,QAAI,QAAQ,KAAK,MAAM,+BAA+B;AACtD,QAAI,UAAU;AACb,YAAM,IAAI,MAAM,4DAA4D;AAC7E,QAAI,CAAC,OAAQ,UAAS,KAAK,OAAO;AAClC,QAAI,CAAC,EAAE,MAAM,MAAM,KAAK,IAAI;AAC5B,QAAI,cAAc,uBAAO,KAAK,OAAO,IAAI;AACzC,QAAI,YAAY,SAAS,IAAI,YAAgB,YAAY,SAAS,IAAI;AACrE,YAAM,IAAI,MAAM,gEAAgE;AACjF,WAAO,UAAU,YAAY,SAAS;AACtC,QAAI,OAAO,SAAS,UAAU;AAC7B,UAAI,WAAW,OAAO,QAAQ,IAAI,OAAO,IAAI,MAAM,MAAM;AACzD,aAAO,QAAQ,SAAS,QAAQ;AAAA,IACjC;AACA,WAAO;AAAA,EACR;AACD;AAIO,MAAM,WAAW,IAAI,cAAc;",
6
6
  "names": ["import_runtime"]
7
7
  }
@@ -1,4 +1,4 @@
1
- import { MessageType } from "@protobuf-ts/runtime";
1
+ import { MessageType } from '@protobuf-ts/runtime';
2
2
  /**
3
3
  * A generic empty message that you can re-use to avoid defining duplicated
4
4
  * empty messages in your APIs. A typical example is to use it as the request
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../src/grpc/proto/google/protobuf/empty.ts"],
4
- "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/empty.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { MessageType } from \"@protobuf-ts/runtime\";\n/**\n * A generic empty message that you can re-use to avoid defining duplicated\n * empty messages in your APIs. A typical example is to use it as the request\n * or the response type of an API method. For instance:\n *\n * ```\n * service Foo {\n * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n * }\n * ```\n *\n *\n * @generated from protobuf message google.protobuf.Empty\n */\nexport interface Empty {\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Empty$Type extends MessageType<Empty> {\n constructor() {\n super(\"google.protobuf.Empty\", []);\n }\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Empty\n */\nexport const Empty = new Empty$Type();\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCA,qBAA4B;AAkB5B,MAAM,mBAAmB,2BAAmB;AAAA,EACxC,cAAc;AACV,UAAM,yBAAyB,CAAC,CAAC;AAAA,EACrC;AACJ;AAIO,MAAM,QAAQ,IAAI,WAAW;",
4
+ "sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/protobuf/empty.proto\" (package \"google.protobuf\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Protocol Buffers - Google's data interchange format\n// Copyright 2008 Google Inc. All rights reserved.\n// https://developers.google.com/protocol-buffers/\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are\n// met:\n//\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above\n// copyright notice, this list of conditions and the following disclaimer\n// in the documentation and/or other materials provided with the\n// distribution.\n// * Neither the name of Google Inc. nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n// \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\nimport { MessageType } from '@protobuf-ts/runtime';\n/**\n * A generic empty message that you can re-use to avoid defining duplicated\n * empty messages in your APIs. A typical example is to use it as the request\n * or the response type of an API method. For instance:\n *\n * ```\n * service Foo {\n * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n * }\n * ```\n *\n *\n * @generated from protobuf message google.protobuf.Empty\n */\nexport interface Empty {}\n// @generated message type with reflection information, may provide speed optimized methods\nclass Empty$Type extends MessageType<Empty> {\n\tconstructor() {\n\t\tsuper('google.protobuf.Empty', []);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.protobuf.Empty\n */\nexport const Empty = new Empty$Type();\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsCA,qBAA4B;AAiB5B,MAAM,mBAAmB,2BAAmB;AAAA,EAC3C,cAAc;AACb,UAAM,yBAAyB,CAAC,CAAC;AAAA,EAClC;AACD;AAIO,MAAM,QAAQ,IAAI,WAAW;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
- import type { JsonValue } from "@protobuf-ts/runtime";
2
- import type { JsonReadOptions } from "@protobuf-ts/runtime";
3
- import type { JsonWriteOptions } from "@protobuf-ts/runtime";
4
- import { MessageType } from "@protobuf-ts/runtime";
1
+ import type { JsonValue } from '@protobuf-ts/runtime';
2
+ import type { JsonReadOptions } from '@protobuf-ts/runtime';
3
+ import type { JsonWriteOptions } from '@protobuf-ts/runtime';
4
+ import { MessageType } from '@protobuf-ts/runtime';
5
5
  /**
6
6
  * `FieldMask` represents a set of symbolic field paths, for example:
7
7
  *