@mysten/sui 1.42.0 → 1.43.1

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 (429) hide show
  1. package/CHANGELOG.md +21 -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/Transaction.d.ts +2 -2
  166. package/dist/cjs/transactions/Transaction.js.map +2 -2
  167. package/dist/cjs/transactions/TransactionData.d.ts +1 -0
  168. package/dist/cjs/transactions/TransactionData.js +71 -0
  169. package/dist/cjs/transactions/TransactionData.js.map +3 -3
  170. package/dist/cjs/transactions/serializer.js +1 -1
  171. package/dist/cjs/transactions/serializer.js.map +2 -2
  172. package/dist/cjs/utils/index.d.ts +1 -0
  173. package/dist/cjs/utils/index.js +2 -0
  174. package/dist/cjs/utils/index.js.map +2 -2
  175. package/dist/cjs/version.d.ts +2 -2
  176. package/dist/cjs/version.js +2 -2
  177. package/dist/cjs/version.js.map +1 -1
  178. package/dist/cjs/zklogin/bcs.d.ts +1 -3
  179. package/dist/cjs/zklogin/bcs.js +1 -1
  180. package/dist/cjs/zklogin/bcs.js.map +2 -2
  181. package/dist/cjs/zklogin/publickey.d.ts +1 -1
  182. package/dist/cjs/zklogin/signature.d.ts +1 -1
  183. package/dist/esm/bcs/bcs.d.ts +47 -111
  184. package/dist/esm/bcs/bcs.js +17 -17
  185. package/dist/esm/bcs/bcs.js.map +2 -2
  186. package/dist/esm/bcs/effects.d.ts +2 -6
  187. package/dist/esm/bcs/effects.js +1 -1
  188. package/dist/esm/bcs/effects.js.map +2 -2
  189. package/dist/esm/bcs/index.d.ts +49 -117
  190. package/dist/esm/bcs/type-tag-serializer.d.ts +1 -0
  191. package/dist/esm/bcs/type-tag-serializer.js +5 -1
  192. package/dist/esm/bcs/type-tag-serializer.js.map +2 -2
  193. package/dist/esm/cryptography/intent.js +1 -1
  194. package/dist/esm/cryptography/intent.js.map +2 -2
  195. package/dist/esm/cryptography/keypair.js +1 -1
  196. package/dist/esm/cryptography/keypair.js.map +2 -2
  197. package/dist/esm/cryptography/publickey.js +1 -1
  198. package/dist/esm/cryptography/publickey.js.map +2 -2
  199. package/dist/esm/cryptography/signature.d.ts +2 -2
  200. package/dist/esm/experimental/client.js +0 -4
  201. package/dist/esm/experimental/client.js.map +2 -2
  202. package/dist/esm/experimental/types.d.ts +1 -7
  203. package/dist/esm/graphql/generated/queries.d.ts +1 -1
  204. package/dist/esm/graphql/generated/queries.js.map +1 -1
  205. package/dist/esm/grpc/core.d.ts +3 -1
  206. package/dist/esm/grpc/core.js +5 -3
  207. package/dist/esm/grpc/core.js.map +2 -2
  208. package/dist/esm/grpc/proto/google/protobuf/any.d.ts +6 -6
  209. package/dist/esm/grpc/proto/google/protobuf/any.js +20 -20
  210. package/dist/esm/grpc/proto/google/protobuf/any.js.map +2 -2
  211. package/dist/esm/grpc/proto/google/protobuf/duration.d.ts +4 -4
  212. package/dist/esm/grpc/proto/google/protobuf/duration.js +8 -12
  213. package/dist/esm/grpc/proto/google/protobuf/duration.js.map +2 -2
  214. package/dist/esm/grpc/proto/google/protobuf/empty.d.ts +1 -1
  215. package/dist/esm/grpc/proto/google/protobuf/empty.js.map +2 -2
  216. package/dist/esm/grpc/proto/google/protobuf/field_mask.d.ts +4 -4
  217. package/dist/esm/grpc/proto/google/protobuf/field_mask.js +8 -7
  218. package/dist/esm/grpc/proto/google/protobuf/field_mask.js.map +2 -2
  219. package/dist/esm/grpc/proto/google/protobuf/struct.d.ts +10 -10
  220. package/dist/esm/grpc/proto/google/protobuf/struct.js +29 -17
  221. package/dist/esm/grpc/proto/google/protobuf/struct.js.map +2 -2
  222. package/dist/esm/grpc/proto/google/protobuf/timestamp.d.ts +4 -4
  223. package/dist/esm/grpc/proto/google/protobuf/timestamp.js +21 -18
  224. package/dist/esm/grpc/proto/google/protobuf/timestamp.js.map +2 -2
  225. package/dist/esm/grpc/proto/google/rpc/error_details.d.ts +2 -2
  226. package/dist/esm/grpc/proto/google/rpc/error_details.js +40 -11
  227. package/dist/esm/grpc/proto/google/rpc/error_details.js.map +2 -2
  228. package/dist/esm/grpc/proto/google/rpc/status.d.ts +2 -2
  229. package/dist/esm/grpc/proto/google/rpc/status.js +1 -1
  230. package/dist/esm/grpc/proto/google/rpc/status.js.map +2 -2
  231. package/dist/esm/grpc/proto/sui/rpc/v2/argument.d.ts +1 -1
  232. package/dist/esm/grpc/proto/sui/rpc/v2/argument.js +7 -1
  233. package/dist/esm/grpc/proto/sui/rpc/v2/argument.js.map +2 -2
  234. package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.d.ts +1 -1
  235. package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.js.map +2 -2
  236. package/dist/esm/grpc/proto/sui/rpc/v2/bcs.d.ts +1 -1
  237. package/dist/esm/grpc/proto/sui/rpc/v2/bcs.js.map +2 -2
  238. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.d.ts +6 -6
  239. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.js +12 -7
  240. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.js.map +2 -2
  241. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.d.ts +3 -3
  242. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.js +16 -4
  243. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.js.map +2 -2
  244. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.d.ts +5 -5
  245. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.js +35 -13
  246. package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.js.map +2 -2
  247. package/dist/esm/grpc/proto/sui/rpc/v2/effects.d.ts +6 -6
  248. package/dist/esm/grpc/proto/sui/rpc/v2/effects.js +65 -19
  249. package/dist/esm/grpc/proto/sui/rpc/v2/effects.js.map +2 -2
  250. package/dist/esm/grpc/proto/sui/rpc/v2/epoch.d.ts +5 -5
  251. package/dist/esm/grpc/proto/sui/rpc/v2/epoch.js +4 -8
  252. package/dist/esm/grpc/proto/sui/rpc/v2/epoch.js.map +2 -2
  253. package/dist/esm/grpc/proto/sui/rpc/v2/error_reason.js.map +2 -2
  254. package/dist/esm/grpc/proto/sui/rpc/v2/event.d.ts +3 -3
  255. package/dist/esm/grpc/proto/sui/rpc/v2/event.js +2 -2
  256. package/dist/esm/grpc/proto/sui/rpc/v2/event.js.map +2 -2
  257. package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.d.ts +8 -8
  258. package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.js +21 -10
  259. package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.js.map +2 -2
  260. package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.d.ts +12 -12
  261. package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.js +75 -17
  262. package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.js.map +2 -2
  263. package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.d.ts +1 -1
  264. package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.js +0 -4
  265. package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.js.map +2 -2
  266. package/dist/esm/grpc/proto/sui/rpc/v2/input.d.ts +2 -2
  267. package/dist/esm/grpc/proto/sui/rpc/v2/input.js +8 -3
  268. package/dist/esm/grpc/proto/sui/rpc/v2/input.js.map +2 -2
  269. package/dist/esm/grpc/proto/sui/rpc/v2/jwk.d.ts +1 -1
  270. package/dist/esm/grpc/proto/sui/rpc/v2/jwk.js.map +2 -2
  271. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +18 -18
  272. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.js +50 -8
  273. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.js.map +2 -2
  274. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.d.ts +15 -15
  275. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.js +41 -20
  276. package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.js.map +2 -2
  277. package/dist/esm/grpc/proto/sui/rpc/v2/move_package.d.ts +1 -1
  278. package/dist/esm/grpc/proto/sui/rpc/v2/move_package.js +126 -20
  279. package/dist/esm/grpc/proto/sui/rpc/v2/move_package.js.map +2 -2
  280. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +12 -12
  281. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.js +29 -5
  282. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.js.map +2 -2
  283. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.d.ts +5 -5
  284. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.js +16 -6
  285. package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.js.map +2 -2
  286. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.d.ts +8 -8
  287. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.js +15 -3
  288. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.js.map +2 -2
  289. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.d.ts +3 -3
  290. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.js +18 -7
  291. package/dist/esm/grpc/proto/sui/rpc/v2/name_service.js.map +2 -2
  292. package/dist/esm/grpc/proto/sui/rpc/v2/object.d.ts +5 -5
  293. package/dist/esm/grpc/proto/sui/rpc/v2/object.js +4 -8
  294. package/dist/esm/grpc/proto/sui/rpc/v2/object.js.map +2 -2
  295. package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.d.ts +1 -1
  296. package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.js +0 -1
  297. package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.js.map +2 -2
  298. package/dist/esm/grpc/proto/sui/rpc/v2/owner.d.ts +1 -1
  299. package/dist/esm/grpc/proto/sui/rpc/v2/owner.js +7 -2
  300. package/dist/esm/grpc/proto/sui/rpc/v2/owner.js.map +2 -2
  301. package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.d.ts +1 -1
  302. package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.js +22 -11
  303. package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.js.map +2 -2
  304. package/dist/esm/grpc/proto/sui/rpc/v2/signature.d.ts +8 -8
  305. package/dist/esm/grpc/proto/sui/rpc/v2/signature.js +73 -17
  306. package/dist/esm/grpc/proto/sui/rpc/v2/signature.js.map +2 -2
  307. package/dist/esm/grpc/proto/sui/rpc/v2/signature_scheme.js.map +2 -2
  308. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.ts +6 -6
  309. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +8 -2
  310. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.js.map +2 -2
  311. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.d.ts +5 -5
  312. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.js +7 -6
  313. package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.js.map +2 -2
  314. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.d.ts +14 -14
  315. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.js +36 -6
  316. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.js.map +2 -2
  317. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.d.ts +5 -5
  318. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.js +60 -14
  319. package/dist/esm/grpc/proto/sui/rpc/v2/state_service.js.map +2 -2
  320. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.d.ts +6 -6
  321. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.js +8 -2
  322. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.js.map +2 -2
  323. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.d.ts +4 -4
  324. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.js +9 -4
  325. package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.js.map +2 -2
  326. package/dist/esm/grpc/proto/sui/rpc/v2/system_state.d.ts +1 -1
  327. package/dist/esm/grpc/proto/sui/rpc/v2/system_state.js +26 -59
  328. package/dist/esm/grpc/proto/sui/rpc/v2/system_state.js.map +2 -2
  329. package/dist/esm/grpc/proto/sui/rpc/v2/transaction.d.ts +29 -29
  330. package/dist/esm/grpc/proto/sui/rpc/v2/transaction.js +210 -71
  331. package/dist/esm/grpc/proto/sui/rpc/v2/transaction.js.map +2 -2
  332. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +8 -8
  333. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +15 -3
  334. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js.map +2 -2
  335. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +9 -9
  336. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.js +62 -16
  337. package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.js.map +2 -2
  338. package/dist/esm/jsonRpc/client.d.ts +2 -6
  339. package/dist/esm/jsonRpc/client.js +0 -8
  340. package/dist/esm/jsonRpc/client.js.map +2 -2
  341. package/dist/esm/keypairs/passkey/publickey.d.ts +1 -1
  342. package/dist/esm/multisig/publickey.d.ts +10 -10
  343. package/dist/esm/multisig/publickey.js +2 -2
  344. package/dist/esm/multisig/publickey.js.map +2 -2
  345. package/dist/esm/transactions/Transaction.d.ts +2 -2
  346. package/dist/esm/transactions/Transaction.js.map +2 -2
  347. package/dist/esm/transactions/TransactionData.d.ts +1 -0
  348. package/dist/esm/transactions/TransactionData.js +71 -0
  349. package/dist/esm/transactions/TransactionData.js.map +3 -3
  350. package/dist/esm/transactions/serializer.js +1 -1
  351. package/dist/esm/transactions/serializer.js.map +2 -2
  352. package/dist/esm/utils/index.d.ts +1 -0
  353. package/dist/esm/utils/index.js +2 -0
  354. package/dist/esm/utils/index.js.map +2 -2
  355. package/dist/esm/version.d.ts +2 -2
  356. package/dist/esm/version.js +2 -2
  357. package/dist/esm/version.js.map +1 -1
  358. package/dist/esm/zklogin/bcs.d.ts +1 -3
  359. package/dist/esm/zklogin/bcs.js +1 -1
  360. package/dist/esm/zklogin/bcs.js.map +2 -2
  361. package/dist/esm/zklogin/publickey.d.ts +1 -1
  362. package/dist/esm/zklogin/signature.d.ts +1 -1
  363. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  364. package/dist/tsconfig.tsbuildinfo +1 -1
  365. package/package.json +2 -2
  366. package/src/bcs/bcs.ts +17 -17
  367. package/src/bcs/effects.ts +1 -1
  368. package/src/bcs/type-tag-serializer.ts +4 -0
  369. package/src/cryptography/intent.ts +1 -1
  370. package/src/cryptography/keypair.ts +1 -1
  371. package/src/cryptography/publickey.ts +1 -1
  372. package/src/experimental/client.ts +0 -4
  373. package/src/experimental/types.ts +4 -17
  374. package/src/graphql/generated/queries.ts +1 -1
  375. package/src/grpc/core.ts +28 -8
  376. package/src/grpc/proto/google/protobuf/any.ts +159 -144
  377. package/src/grpc/proto/google/protobuf/duration.ts +77 -74
  378. package/src/grpc/proto/google/protobuf/empty.ts +5 -6
  379. package/src/grpc/proto/google/protobuf/field_mask.ts +59 -47
  380. package/src/grpc/proto/google/protobuf/struct.ts +223 -201
  381. package/src/grpc/proto/google/protobuf/timestamp.ts +121 -100
  382. package/src/grpc/proto/google/rpc/error_details.ts +388 -352
  383. package/src/grpc/proto/google/rpc/status.ts +32 -32
  384. package/src/grpc/proto/sui/rpc/v2/argument.ts +60 -54
  385. package/src/grpc/proto/sui/rpc/v2/balance_change.ts +26 -26
  386. package/src/grpc/proto/sui/rpc/v2/bcs.ts +19 -19
  387. package/src/grpc/proto/sui/rpc/v2/checkpoint.ts +79 -66
  388. package/src/grpc/proto/sui/rpc/v2/checkpoint_contents.ts +72 -60
  389. package/src/grpc/proto/sui/rpc/v2/checkpoint_summary.ts +219 -158
  390. package/src/grpc/proto/sui/rpc/v2/effects.ts +418 -318
  391. package/src/grpc/proto/sui/rpc/v2/epoch.ts +90 -62
  392. package/src/grpc/proto/sui/rpc/v2/error_reason.ts +12 -12
  393. package/src/grpc/proto/sui/rpc/v2/event.ts +76 -76
  394. package/src/grpc/proto/sui/rpc/v2/executed_transaction.ts +99 -80
  395. package/src/grpc/proto/sui/rpc/v2/execution_status.ts +888 -755
  396. package/src/grpc/proto/sui/rpc/v2/gas_cost_summary.ts +62 -34
  397. package/src/grpc/proto/sui/rpc/v2/input.ts +102 -89
  398. package/src/grpc/proto/sui/rpc/v2/jwk.ts +51 -51
  399. package/src/grpc/proto/sui/rpc/v2/ledger_service.client.ts +196 -106
  400. package/src/grpc/proto/sui/rpc/v2/ledger_service.ts +420 -328
  401. package/src/grpc/proto/sui/rpc/v2/move_package.ts +608 -486
  402. package/src/grpc/proto/sui/rpc/v2/move_package_service.client.ts +114 -63
  403. package/src/grpc/proto/sui/rpc/v2/move_package_service.ts +190 -172
  404. package/src/grpc/proto/sui/rpc/v2/name_service.client.ts +62 -37
  405. package/src/grpc/proto/sui/rpc/v2/name_service.ts +123 -112
  406. package/src/grpc/proto/sui/rpc/v2/object.ts +147 -120
  407. package/src/grpc/proto/sui/rpc/v2/object_reference.ts +33 -26
  408. package/src/grpc/proto/sui/rpc/v2/owner.ts +61 -48
  409. package/src/grpc/proto/sui/rpc/v2/protocol_config.ts +43 -24
  410. package/src/grpc/proto/sui/rpc/v2/signature.ts +596 -503
  411. package/src/grpc/proto/sui/rpc/v2/signature_scheme.ts +28 -28
  412. package/src/grpc/proto/sui/rpc/v2/signature_verification_service.client.ts +43 -29
  413. package/src/grpc/proto/sui/rpc/v2/signature_verification_service.ts +68 -67
  414. package/src/grpc/proto/sui/rpc/v2/state_service.client.ts +140 -76
  415. package/src/grpc/proto/sui/rpc/v2/state_service.ts +642 -573
  416. package/src/grpc/proto/sui/rpc/v2/subscription_service.client.ts +60 -48
  417. package/src/grpc/proto/sui/rpc/v2/subscription_service.ts +50 -37
  418. package/src/grpc/proto/sui/rpc/v2/system_state.ts +1055 -689
  419. package/src/grpc/proto/sui/rpc/v2/transaction.ts +1535 -1110
  420. package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.client.ts +65 -38
  421. package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.ts +185 -139
  422. package/src/jsonRpc/client.ts +2 -17
  423. package/src/multisig/publickey.ts +14 -14
  424. package/src/transactions/Transaction.ts +2 -2
  425. package/src/transactions/TransactionData.ts +100 -1
  426. package/src/transactions/serializer.ts +1 -1
  427. package/src/utils/index.ts +1 -0
  428. package/src/version.ts +2 -2
  429. package/src/zklogin/bcs.ts +1 -1
@@ -9,56 +9,56 @@
9
9
  // Copyright (c) Mysten Labs, Inc.
10
10
  // SPDX-License-Identifier: Apache-2.0
11
11
  //
12
- import { MessageType } from "@protobuf-ts/runtime";
13
- import { Duration } from "../../../google/protobuf/duration";
14
- import { Jwk } from "./jwk";
15
- import { JwkId } from "./jwk";
16
- import { Object } from "./object";
17
- import { Timestamp } from "../../../google/protobuf/timestamp";
18
- import { Argument } from "./argument";
19
- import { Input } from "./input";
20
- import { ObjectReference } from "./object_reference";
21
- import { Bcs } from "./bcs";
12
+ import { MessageType } from '@protobuf-ts/runtime';
13
+ import { Duration } from '../../../google/protobuf/duration.js';
14
+ import { Jwk } from './jwk.js';
15
+ import { JwkId } from './jwk.js';
16
+ import { Object } from './object.js';
17
+ import { Timestamp } from '../../../google/protobuf/timestamp.js';
18
+ import { Argument } from './argument.js';
19
+ import { Input } from './input.js';
20
+ import { ObjectReference } from './object_reference.js';
21
+ import { Bcs } from './bcs.js';
22
22
  /**
23
23
  * A transaction.
24
24
  *
25
25
  * @generated from protobuf message sui.rpc.v2.Transaction
26
26
  */
27
27
  export interface Transaction {
28
- /**
29
- * This Transaction serialized as BCS.
30
- *
31
- * @generated from protobuf field: optional sui.rpc.v2.Bcs bcs = 1;
32
- */
33
- bcs?: Bcs;
34
- /**
35
- * The digest of this Transaction.
36
- *
37
- * @generated from protobuf field: optional string digest = 2;
38
- */
39
- digest?: string;
40
- /**
41
- * Version of this Transaction.
42
- *
43
- * @generated from protobuf field: optional int32 version = 3;
44
- */
45
- version?: number;
46
- /**
47
- * @generated from protobuf field: optional sui.rpc.v2.TransactionKind kind = 4;
48
- */
49
- kind?: TransactionKind;
50
- /**
51
- * @generated from protobuf field: optional string sender = 5;
52
- */
53
- sender?: string;
54
- /**
55
- * @generated from protobuf field: optional sui.rpc.v2.GasPayment gas_payment = 6;
56
- */
57
- gasPayment?: GasPayment;
58
- /**
59
- * @generated from protobuf field: optional sui.rpc.v2.TransactionExpiration expiration = 7;
60
- */
61
- expiration?: TransactionExpiration;
28
+ /**
29
+ * This Transaction serialized as BCS.
30
+ *
31
+ * @generated from protobuf field: optional sui.rpc.v2.Bcs bcs = 1;
32
+ */
33
+ bcs?: Bcs;
34
+ /**
35
+ * The digest of this Transaction.
36
+ *
37
+ * @generated from protobuf field: optional string digest = 2;
38
+ */
39
+ digest?: string;
40
+ /**
41
+ * Version of this Transaction.
42
+ *
43
+ * @generated from protobuf field: optional int32 version = 3;
44
+ */
45
+ version?: number;
46
+ /**
47
+ * @generated from protobuf field: optional sui.rpc.v2.TransactionKind kind = 4;
48
+ */
49
+ kind?: TransactionKind;
50
+ /**
51
+ * @generated from protobuf field: optional string sender = 5;
52
+ */
53
+ sender?: string;
54
+ /**
55
+ * @generated from protobuf field: optional sui.rpc.v2.GasPayment gas_payment = 6;
56
+ */
57
+ gasPayment?: GasPayment;
58
+ /**
59
+ * @generated from protobuf field: optional sui.rpc.v2.TransactionExpiration expiration = 7;
60
+ */
61
+ expiration?: TransactionExpiration;
62
62
  }
63
63
  /**
64
64
  * Payment information for executing a transaction.
@@ -66,32 +66,32 @@ export interface Transaction {
66
66
  * @generated from protobuf message sui.rpc.v2.GasPayment
67
67
  */
68
68
  export interface GasPayment {
69
- /**
70
- * Set of gas objects to use for payment.
71
- *
72
- * @generated from protobuf field: repeated sui.rpc.v2.ObjectReference objects = 1;
73
- */
74
- objects: ObjectReference[];
75
- /**
76
- * Owner of the gas objects, either the transaction sender or a sponsor.
77
- *
78
- * @generated from protobuf field: optional string owner = 2;
79
- */
80
- owner?: string;
81
- /**
82
- * Gas unit price to use when charging for computation.
83
- *
84
- * Must be greater than or equal to the network's current RGP (reference gas price).
85
- *
86
- * @generated from protobuf field: optional uint64 price = 3;
87
- */
88
- price?: bigint;
89
- /**
90
- * Total budget willing to spend for the execution of a transaction.
91
- *
92
- * @generated from protobuf field: optional uint64 budget = 4;
93
- */
94
- budget?: bigint;
69
+ /**
70
+ * Set of gas objects to use for payment.
71
+ *
72
+ * @generated from protobuf field: repeated sui.rpc.v2.ObjectReference objects = 1;
73
+ */
74
+ objects: ObjectReference[];
75
+ /**
76
+ * Owner of the gas objects, either the transaction sender or a sponsor.
77
+ *
78
+ * @generated from protobuf field: optional string owner = 2;
79
+ */
80
+ owner?: string;
81
+ /**
82
+ * Gas unit price to use when charging for computation.
83
+ *
84
+ * Must be greater than or equal to the network's current RGP (reference gas price).
85
+ *
86
+ * @generated from protobuf field: optional uint64 price = 3;
87
+ */
88
+ price?: bigint;
89
+ /**
90
+ * Total budget willing to spend for the execution of a transaction.
91
+ *
92
+ * @generated from protobuf field: optional uint64 budget = 4;
93
+ */
94
+ budget?: bigint;
95
95
  }
96
96
  /**
97
97
  * A TTL for a transaction.
@@ -99,36 +99,36 @@ export interface GasPayment {
99
99
  * @generated from protobuf message sui.rpc.v2.TransactionExpiration
100
100
  */
101
101
  export interface TransactionExpiration {
102
- /**
103
- * @generated from protobuf field: optional sui.rpc.v2.TransactionExpiration.TransactionExpirationKind kind = 1;
104
- */
105
- kind?: TransactionExpiration_TransactionExpirationKind;
106
- /**
107
- * @generated from protobuf field: optional uint64 epoch = 2;
108
- */
109
- epoch?: bigint;
102
+ /**
103
+ * @generated from protobuf field: optional sui.rpc.v2.TransactionExpiration.TransactionExpirationKind kind = 1;
104
+ */
105
+ kind?: TransactionExpiration_TransactionExpirationKind;
106
+ /**
107
+ * @generated from protobuf field: optional uint64 epoch = 2;
108
+ */
109
+ epoch?: bigint;
110
110
  }
111
111
  /**
112
112
  * @generated from protobuf enum sui.rpc.v2.TransactionExpiration.TransactionExpirationKind
113
113
  */
114
114
  export enum TransactionExpiration_TransactionExpirationKind {
115
- /**
116
- * @generated from protobuf enum value: TRANSACTION_EXPIRATION_KIND_UNKNOWN = 0;
117
- */
118
- TRANSACTION_EXPIRATION_KIND_UNKNOWN = 0,
119
- /**
120
- * The transaction has no expiration.
121
- *
122
- * @generated from protobuf enum value: NONE = 1;
123
- */
124
- NONE = 1,
125
- /**
126
- * Validators won't sign and execute transaction unless the expiration epoch
127
- * is greater than or equal to the current epoch.
128
- *
129
- * @generated from protobuf enum value: EPOCH = 2;
130
- */
131
- EPOCH = 2
115
+ /**
116
+ * @generated from protobuf enum value: TRANSACTION_EXPIRATION_KIND_UNKNOWN = 0;
117
+ */
118
+ TRANSACTION_EXPIRATION_KIND_UNKNOWN = 0,
119
+ /**
120
+ * The transaction has no expiration.
121
+ *
122
+ * @generated from protobuf enum value: NONE = 1;
123
+ */
124
+ NONE = 1,
125
+ /**
126
+ * Validators won't sign and execute transaction unless the expiration epoch
127
+ * is greater than or equal to the current epoch.
128
+ *
129
+ * @generated from protobuf enum value: EPOCH = 2;
130
+ */
131
+ EPOCH = 2,
132
132
  }
133
133
  /**
134
134
  * Transaction type.
@@ -136,155 +136,163 @@ export enum TransactionExpiration_TransactionExpirationKind {
136
136
  * @generated from protobuf message sui.rpc.v2.TransactionKind
137
137
  */
138
138
  export interface TransactionKind {
139
- /**
140
- * @generated from protobuf field: optional sui.rpc.v2.TransactionKind.Kind kind = 1;
141
- */
142
- kind?: TransactionKind_Kind;
143
- /**
144
- * @generated from protobuf oneof: data
145
- */
146
- data: {
147
- oneofKind: "programmableTransaction";
148
- /**
149
- * A transaction comprised of a list of native commands and Move calls.
150
- *
151
- * @generated from protobuf field: sui.rpc.v2.ProgrammableTransaction programmable_transaction = 2;
152
- */
153
- programmableTransaction: ProgrammableTransaction;
154
- } | {
155
- oneofKind: "changeEpoch";
156
- /**
157
- * System transaction used to end an epoch.
158
- *
159
- * The `ChangeEpoch` variant is now deprecated (but the `ChangeEpoch` struct is still used by
160
- * `EndOfEpochTransaction`).
161
- *
162
- * @generated from protobuf field: sui.rpc.v2.ChangeEpoch change_epoch = 3;
163
- */
164
- changeEpoch: ChangeEpoch;
165
- } | {
166
- oneofKind: "genesis";
167
- /**
168
- * Transaction used to initialize the chain state.
169
- *
170
- * Only valid if in the genesis checkpoint (0) and if this is the very first transaction ever
171
- * executed on the chain.
172
- *
173
- * @generated from protobuf field: sui.rpc.v2.GenesisTransaction genesis = 4;
174
- */
175
- genesis: GenesisTransaction;
176
- } | {
177
- oneofKind: "consensusCommitPrologue";
178
- /**
179
- * consensus commit update info
180
- *
181
- * @generated from protobuf field: sui.rpc.v2.ConsensusCommitPrologue consensus_commit_prologue = 5;
182
- */
183
- consensusCommitPrologue: ConsensusCommitPrologue;
184
- } | {
185
- oneofKind: "authenticatorStateUpdate";
186
- /**
187
- * Update set of valid JWKs used for zklogin.
188
- *
189
- * @generated from protobuf field: sui.rpc.v2.AuthenticatorStateUpdate authenticator_state_update = 6;
190
- */
191
- authenticatorStateUpdate: AuthenticatorStateUpdate;
192
- } | {
193
- oneofKind: "endOfEpoch";
194
- /**
195
- * Set of operations to run at the end of the epoch to close out the current epoch and start
196
- * the next one.
197
- *
198
- * @generated from protobuf field: sui.rpc.v2.EndOfEpochTransaction end_of_epoch = 7;
199
- */
200
- endOfEpoch: EndOfEpochTransaction;
201
- } | {
202
- oneofKind: "randomnessStateUpdate";
203
- /**
204
- * Randomness update.
205
- *
206
- * @generated from protobuf field: sui.rpc.v2.RandomnessStateUpdate randomness_state_update = 8;
207
- */
208
- randomnessStateUpdate: RandomnessStateUpdate;
209
- } | {
210
- oneofKind: undefined;
211
- };
139
+ /**
140
+ * @generated from protobuf field: optional sui.rpc.v2.TransactionKind.Kind kind = 1;
141
+ */
142
+ kind?: TransactionKind_Kind;
143
+ /**
144
+ * @generated from protobuf oneof: data
145
+ */
146
+ data:
147
+ | {
148
+ oneofKind: 'programmableTransaction';
149
+ /**
150
+ * A transaction comprised of a list of native commands and Move calls.
151
+ *
152
+ * @generated from protobuf field: sui.rpc.v2.ProgrammableTransaction programmable_transaction = 2;
153
+ */
154
+ programmableTransaction: ProgrammableTransaction;
155
+ }
156
+ | {
157
+ oneofKind: 'changeEpoch';
158
+ /**
159
+ * System transaction used to end an epoch.
160
+ *
161
+ * The `ChangeEpoch` variant is now deprecated (but the `ChangeEpoch` struct is still used by
162
+ * `EndOfEpochTransaction`).
163
+ *
164
+ * @generated from protobuf field: sui.rpc.v2.ChangeEpoch change_epoch = 3;
165
+ */
166
+ changeEpoch: ChangeEpoch;
167
+ }
168
+ | {
169
+ oneofKind: 'genesis';
170
+ /**
171
+ * Transaction used to initialize the chain state.
172
+ *
173
+ * Only valid if in the genesis checkpoint (0) and if this is the very first transaction ever
174
+ * executed on the chain.
175
+ *
176
+ * @generated from protobuf field: sui.rpc.v2.GenesisTransaction genesis = 4;
177
+ */
178
+ genesis: GenesisTransaction;
179
+ }
180
+ | {
181
+ oneofKind: 'consensusCommitPrologue';
182
+ /**
183
+ * consensus commit update info
184
+ *
185
+ * @generated from protobuf field: sui.rpc.v2.ConsensusCommitPrologue consensus_commit_prologue = 5;
186
+ */
187
+ consensusCommitPrologue: ConsensusCommitPrologue;
188
+ }
189
+ | {
190
+ oneofKind: 'authenticatorStateUpdate';
191
+ /**
192
+ * Update set of valid JWKs used for zklogin.
193
+ *
194
+ * @generated from protobuf field: sui.rpc.v2.AuthenticatorStateUpdate authenticator_state_update = 6;
195
+ */
196
+ authenticatorStateUpdate: AuthenticatorStateUpdate;
197
+ }
198
+ | {
199
+ oneofKind: 'endOfEpoch';
200
+ /**
201
+ * Set of operations to run at the end of the epoch to close out the current epoch and start
202
+ * the next one.
203
+ *
204
+ * @generated from protobuf field: sui.rpc.v2.EndOfEpochTransaction end_of_epoch = 7;
205
+ */
206
+ endOfEpoch: EndOfEpochTransaction;
207
+ }
208
+ | {
209
+ oneofKind: 'randomnessStateUpdate';
210
+ /**
211
+ * Randomness update.
212
+ *
213
+ * @generated from protobuf field: sui.rpc.v2.RandomnessStateUpdate randomness_state_update = 8;
214
+ */
215
+ randomnessStateUpdate: RandomnessStateUpdate;
216
+ }
217
+ | {
218
+ oneofKind: undefined;
219
+ };
212
220
  }
213
221
  /**
214
222
  * @generated from protobuf enum sui.rpc.v2.TransactionKind.Kind
215
223
  */
216
224
  export enum TransactionKind_Kind {
217
- /**
218
- * @generated from protobuf enum value: KIND_UNKNOWN = 0;
219
- */
220
- KIND_UNKNOWN = 0,
221
- /**
222
- * A user transaction comprised of a list of native commands and Move calls.
223
- *
224
- * @generated from protobuf enum value: PROGRAMMABLE_TRANSACTION = 1;
225
- */
226
- PROGRAMMABLE_TRANSACTION = 1,
227
- /**
228
- * System transaction used to end an epoch.
229
- *
230
- * The `ChangeEpoch` variant is now deprecated (but the `ChangeEpoch` struct is still used by
231
- * `EndOfEpochTransaction`).
232
- *
233
- * @generated from protobuf enum value: CHANGE_EPOCH = 2;
234
- */
235
- CHANGE_EPOCH = 2,
236
- /**
237
- * Transaction used to initialize the chain state.
238
- *
239
- * Only valid if in the genesis checkpoint (0) and if this is the very first transaction ever
240
- * executed on the chain.
241
- *
242
- * @generated from protobuf enum value: GENESIS = 3;
243
- */
244
- GENESIS = 3,
245
- /**
246
- * V1 consensus commit update.
247
- *
248
- * @generated from protobuf enum value: CONSENSUS_COMMIT_PROLOGUE_V1 = 4;
249
- */
250
- CONSENSUS_COMMIT_PROLOGUE_V1 = 4,
251
- /**
252
- * Update set of valid JWKs used for zklogin.
253
- *
254
- * @generated from protobuf enum value: AUTHENTICATOR_STATE_UPDATE = 5;
255
- */
256
- AUTHENTICATOR_STATE_UPDATE = 5,
257
- /**
258
- * Set of operations to run at the end of the epoch to close out the current epoch and start
259
- * the next one.
260
- *
261
- * @generated from protobuf enum value: END_OF_EPOCH = 6;
262
- */
263
- END_OF_EPOCH = 6,
264
- /**
265
- * Randomness update.
266
- *
267
- * @generated from protobuf enum value: RANDOMNESS_STATE_UPDATE = 7;
268
- */
269
- RANDOMNESS_STATE_UPDATE = 7,
270
- /**
271
- * V2 consensus commit update.
272
- *
273
- * @generated from protobuf enum value: CONSENSUS_COMMIT_PROLOGUE_V2 = 8;
274
- */
275
- CONSENSUS_COMMIT_PROLOGUE_V2 = 8,
276
- /**
277
- * V3 consensus commit update.
278
- *
279
- * @generated from protobuf enum value: CONSENSUS_COMMIT_PROLOGUE_V3 = 9;
280
- */
281
- CONSENSUS_COMMIT_PROLOGUE_V3 = 9,
282
- /**
283
- * V4 consensus commit update.
284
- *
285
- * @generated from protobuf enum value: CONSENSUS_COMMIT_PROLOGUE_V4 = 10;
286
- */
287
- CONSENSUS_COMMIT_PROLOGUE_V4 = 10
225
+ /**
226
+ * @generated from protobuf enum value: KIND_UNKNOWN = 0;
227
+ */
228
+ KIND_UNKNOWN = 0,
229
+ /**
230
+ * A user transaction comprised of a list of native commands and Move calls.
231
+ *
232
+ * @generated from protobuf enum value: PROGRAMMABLE_TRANSACTION = 1;
233
+ */
234
+ PROGRAMMABLE_TRANSACTION = 1,
235
+ /**
236
+ * System transaction used to end an epoch.
237
+ *
238
+ * The `ChangeEpoch` variant is now deprecated (but the `ChangeEpoch` struct is still used by
239
+ * `EndOfEpochTransaction`).
240
+ *
241
+ * @generated from protobuf enum value: CHANGE_EPOCH = 2;
242
+ */
243
+ CHANGE_EPOCH = 2,
244
+ /**
245
+ * Transaction used to initialize the chain state.
246
+ *
247
+ * Only valid if in the genesis checkpoint (0) and if this is the very first transaction ever
248
+ * executed on the chain.
249
+ *
250
+ * @generated from protobuf enum value: GENESIS = 3;
251
+ */
252
+ GENESIS = 3,
253
+ /**
254
+ * V1 consensus commit update.
255
+ *
256
+ * @generated from protobuf enum value: CONSENSUS_COMMIT_PROLOGUE_V1 = 4;
257
+ */
258
+ CONSENSUS_COMMIT_PROLOGUE_V1 = 4,
259
+ /**
260
+ * Update set of valid JWKs used for zklogin.
261
+ *
262
+ * @generated from protobuf enum value: AUTHENTICATOR_STATE_UPDATE = 5;
263
+ */
264
+ AUTHENTICATOR_STATE_UPDATE = 5,
265
+ /**
266
+ * Set of operations to run at the end of the epoch to close out the current epoch and start
267
+ * the next one.
268
+ *
269
+ * @generated from protobuf enum value: END_OF_EPOCH = 6;
270
+ */
271
+ END_OF_EPOCH = 6,
272
+ /**
273
+ * Randomness update.
274
+ *
275
+ * @generated from protobuf enum value: RANDOMNESS_STATE_UPDATE = 7;
276
+ */
277
+ RANDOMNESS_STATE_UPDATE = 7,
278
+ /**
279
+ * V2 consensus commit update.
280
+ *
281
+ * @generated from protobuf enum value: CONSENSUS_COMMIT_PROLOGUE_V2 = 8;
282
+ */
283
+ CONSENSUS_COMMIT_PROLOGUE_V2 = 8,
284
+ /**
285
+ * V3 consensus commit update.
286
+ *
287
+ * @generated from protobuf enum value: CONSENSUS_COMMIT_PROLOGUE_V3 = 9;
288
+ */
289
+ CONSENSUS_COMMIT_PROLOGUE_V3 = 9,
290
+ /**
291
+ * V4 consensus commit update.
292
+ *
293
+ * @generated from protobuf enum value: CONSENSUS_COMMIT_PROLOGUE_V4 = 10;
294
+ */
295
+ CONSENSUS_COMMIT_PROLOGUE_V4 = 10,
288
296
  }
289
297
  /**
290
298
  * A user transaction.
@@ -295,19 +303,19 @@ export enum TransactionKind_Kind {
295
303
  * @generated from protobuf message sui.rpc.v2.ProgrammableTransaction
296
304
  */
297
305
  export interface ProgrammableTransaction {
298
- /**
299
- * Input objects or primitive values.
300
- *
301
- * @generated from protobuf field: repeated sui.rpc.v2.Input inputs = 1;
302
- */
303
- inputs: Input[];
304
- /**
305
- * The commands to be executed sequentially. A failure in any command
306
- * results in the failure of the entire transaction.
307
- *
308
- * @generated from protobuf field: repeated sui.rpc.v2.Command commands = 2;
309
- */
310
- commands: Command[];
306
+ /**
307
+ * Input objects or primitive values.
308
+ *
309
+ * @generated from protobuf field: repeated sui.rpc.v2.Input inputs = 1;
310
+ */
311
+ inputs: Input[];
312
+ /**
313
+ * The commands to be executed sequentially. A failure in any command
314
+ * results in the failure of the entire transaction.
315
+ *
316
+ * @generated from protobuf field: repeated sui.rpc.v2.Command commands = 2;
317
+ */
318
+ commands: Command[];
311
319
  }
312
320
  /**
313
321
  * A single command in a programmable transaction.
@@ -315,82 +323,90 @@ export interface ProgrammableTransaction {
315
323
  * @generated from protobuf message sui.rpc.v2.Command
316
324
  */
317
325
  export interface Command {
318
- /**
319
- * @generated from protobuf oneof: command
320
- */
321
- command: {
322
- oneofKind: "moveCall";
323
- /**
324
- * A call to either an entry or a public Move function.
325
- *
326
- * @generated from protobuf field: sui.rpc.v2.MoveCall move_call = 1;
327
- */
328
- moveCall: MoveCall;
329
- } | {
330
- oneofKind: "transferObjects";
331
- /**
332
- * `(Vec<forall T:key+store. T>, address)`
333
- * It sends n-objects to the specified address. These objects must have store
334
- * (public transfer) and either the previous owner must be an address or the object must
335
- * be newly created.
336
- *
337
- * @generated from protobuf field: sui.rpc.v2.TransferObjects transfer_objects = 2;
338
- */
339
- transferObjects: TransferObjects;
340
- } | {
341
- oneofKind: "splitCoins";
342
- /**
343
- * `(&mut Coin<T>, Vec<u64>)` -> `Vec<Coin<T>>`
344
- * It splits off some amounts into new coins with those amounts.
345
- *
346
- * @generated from protobuf field: sui.rpc.v2.SplitCoins split_coins = 3;
347
- */
348
- splitCoins: SplitCoins;
349
- } | {
350
- oneofKind: "mergeCoins";
351
- /**
352
- * `(&mut Coin<T>, Vec<Coin<T>>)`
353
- * It merges n-coins into the first coin.
354
- *
355
- * @generated from protobuf field: sui.rpc.v2.MergeCoins merge_coins = 4;
356
- */
357
- mergeCoins: MergeCoins;
358
- } | {
359
- oneofKind: "publish";
360
- /**
361
- * Publishes a Move package. It takes the package bytes and a list of the package's transitive
362
- * dependencies to link against on chain.
363
- *
364
- * @generated from protobuf field: sui.rpc.v2.Publish publish = 5;
365
- */
366
- publish: Publish;
367
- } | {
368
- oneofKind: "makeMoveVector";
369
- /**
370
- * `forall T: Vec<T> -> vector<T>`
371
- * Given n-values of the same type, it constructs a vector. For non-objects or an empty vector,
372
- * the type tag must be specified.
373
- *
374
- * @generated from protobuf field: sui.rpc.v2.MakeMoveVector make_move_vector = 6;
375
- */
376
- makeMoveVector: MakeMoveVector;
377
- } | {
378
- oneofKind: "upgrade";
379
- /**
380
- * Upgrades a Move package.
381
- * Takes (in order):
382
- * 1. A vector of serialized modules for the package.
383
- * 2. A vector of object ids for the transitive dependencies of the new package.
384
- * 3. The object ID of the package being upgraded.
385
- * 4. An argument holding the `UpgradeTicket` that must have been produced from an earlier command in the same
386
- * programmable transaction.
387
- *
388
- * @generated from protobuf field: sui.rpc.v2.Upgrade upgrade = 7;
389
- */
390
- upgrade: Upgrade;
391
- } | {
392
- oneofKind: undefined;
393
- };
326
+ /**
327
+ * @generated from protobuf oneof: command
328
+ */
329
+ command:
330
+ | {
331
+ oneofKind: 'moveCall';
332
+ /**
333
+ * A call to either an entry or a public Move function.
334
+ *
335
+ * @generated from protobuf field: sui.rpc.v2.MoveCall move_call = 1;
336
+ */
337
+ moveCall: MoveCall;
338
+ }
339
+ | {
340
+ oneofKind: 'transferObjects';
341
+ /**
342
+ * `(Vec<forall T:key+store. T>, address)`
343
+ * It sends n-objects to the specified address. These objects must have store
344
+ * (public transfer) and either the previous owner must be an address or the object must
345
+ * be newly created.
346
+ *
347
+ * @generated from protobuf field: sui.rpc.v2.TransferObjects transfer_objects = 2;
348
+ */
349
+ transferObjects: TransferObjects;
350
+ }
351
+ | {
352
+ oneofKind: 'splitCoins';
353
+ /**
354
+ * `(&mut Coin<T>, Vec<u64>)` -> `Vec<Coin<T>>`
355
+ * It splits off some amounts into new coins with those amounts.
356
+ *
357
+ * @generated from protobuf field: sui.rpc.v2.SplitCoins split_coins = 3;
358
+ */
359
+ splitCoins: SplitCoins;
360
+ }
361
+ | {
362
+ oneofKind: 'mergeCoins';
363
+ /**
364
+ * `(&mut Coin<T>, Vec<Coin<T>>)`
365
+ * It merges n-coins into the first coin.
366
+ *
367
+ * @generated from protobuf field: sui.rpc.v2.MergeCoins merge_coins = 4;
368
+ */
369
+ mergeCoins: MergeCoins;
370
+ }
371
+ | {
372
+ oneofKind: 'publish';
373
+ /**
374
+ * Publishes a Move package. It takes the package bytes and a list of the package's transitive
375
+ * dependencies to link against on chain.
376
+ *
377
+ * @generated from protobuf field: sui.rpc.v2.Publish publish = 5;
378
+ */
379
+ publish: Publish;
380
+ }
381
+ | {
382
+ oneofKind: 'makeMoveVector';
383
+ /**
384
+ * `forall T: Vec<T> -> vector<T>`
385
+ * Given n-values of the same type, it constructs a vector. For non-objects or an empty vector,
386
+ * the type tag must be specified.
387
+ *
388
+ * @generated from protobuf field: sui.rpc.v2.MakeMoveVector make_move_vector = 6;
389
+ */
390
+ makeMoveVector: MakeMoveVector;
391
+ }
392
+ | {
393
+ oneofKind: 'upgrade';
394
+ /**
395
+ * Upgrades a Move package.
396
+ * Takes (in order):
397
+ * 1. A vector of serialized modules for the package.
398
+ * 2. A vector of object ids for the transitive dependencies of the new package.
399
+ * 3. The object ID of the package being upgraded.
400
+ * 4. An argument holding the `UpgradeTicket` that must have been produced from an earlier command in the same
401
+ * programmable transaction.
402
+ *
403
+ * @generated from protobuf field: sui.rpc.v2.Upgrade upgrade = 7;
404
+ */
405
+ upgrade: Upgrade;
406
+ }
407
+ | {
408
+ oneofKind: undefined;
409
+ };
394
410
  }
395
411
  /**
396
412
  * Command to call a Move function.
@@ -401,36 +417,36 @@ export interface Command {
401
417
  * @generated from protobuf message sui.rpc.v2.MoveCall
402
418
  */
403
419
  export interface MoveCall {
404
- /**
405
- * The package containing the module and function.
406
- *
407
- * @generated from protobuf field: optional string package = 1;
408
- */
409
- package?: string;
410
- /**
411
- * The specific module in the package containing the function.
412
- *
413
- * @generated from protobuf field: optional string module = 2;
414
- */
415
- module?: string;
416
- /**
417
- * The function to be called.
418
- *
419
- * @generated from protobuf field: optional string function = 3;
420
- */
421
- function?: string;
422
- /**
423
- * The type arguments to the function.
424
- *
425
- * @generated from protobuf field: repeated string type_arguments = 4;
426
- */
427
- typeArguments: string[];
428
- /**
429
- * The arguments to the function.
430
- *
431
- * @generated from protobuf field: repeated sui.rpc.v2.Argument arguments = 5;
432
- */
433
- arguments: Argument[];
420
+ /**
421
+ * The package containing the module and function.
422
+ *
423
+ * @generated from protobuf field: optional string package = 1;
424
+ */
425
+ package?: string;
426
+ /**
427
+ * The specific module in the package containing the function.
428
+ *
429
+ * @generated from protobuf field: optional string module = 2;
430
+ */
431
+ module?: string;
432
+ /**
433
+ * The function to be called.
434
+ *
435
+ * @generated from protobuf field: optional string function = 3;
436
+ */
437
+ function?: string;
438
+ /**
439
+ * The type arguments to the function.
440
+ *
441
+ * @generated from protobuf field: repeated string type_arguments = 4;
442
+ */
443
+ typeArguments: string[];
444
+ /**
445
+ * The arguments to the function.
446
+ *
447
+ * @generated from protobuf field: repeated sui.rpc.v2.Argument arguments = 5;
448
+ */
449
+ arguments: Argument[];
434
450
  }
435
451
  /**
436
452
  * Command to transfer ownership of a set of objects to an address.
@@ -438,18 +454,18 @@ export interface MoveCall {
438
454
  * @generated from protobuf message sui.rpc.v2.TransferObjects
439
455
  */
440
456
  export interface TransferObjects {
441
- /**
442
- * Set of objects to transfer.
443
- *
444
- * @generated from protobuf field: repeated sui.rpc.v2.Argument objects = 1;
445
- */
446
- objects: Argument[];
447
- /**
448
- * The address to transfer ownership to.
449
- *
450
- * @generated from protobuf field: optional sui.rpc.v2.Argument address = 2;
451
- */
452
- address?: Argument;
457
+ /**
458
+ * Set of objects to transfer.
459
+ *
460
+ * @generated from protobuf field: repeated sui.rpc.v2.Argument objects = 1;
461
+ */
462
+ objects: Argument[];
463
+ /**
464
+ * The address to transfer ownership to.
465
+ *
466
+ * @generated from protobuf field: optional sui.rpc.v2.Argument address = 2;
467
+ */
468
+ address?: Argument;
453
469
  }
454
470
  /**
455
471
  * Command to split a single coin object into multiple coins.
@@ -457,18 +473,18 @@ export interface TransferObjects {
457
473
  * @generated from protobuf message sui.rpc.v2.SplitCoins
458
474
  */
459
475
  export interface SplitCoins {
460
- /**
461
- * The coin to split.
462
- *
463
- * @generated from protobuf field: optional sui.rpc.v2.Argument coin = 1;
464
- */
465
- coin?: Argument;
466
- /**
467
- * The amounts to split off.
468
- *
469
- * @generated from protobuf field: repeated sui.rpc.v2.Argument amounts = 2;
470
- */
471
- amounts: Argument[];
476
+ /**
477
+ * The coin to split.
478
+ *
479
+ * @generated from protobuf field: optional sui.rpc.v2.Argument coin = 1;
480
+ */
481
+ coin?: Argument;
482
+ /**
483
+ * The amounts to split off.
484
+ *
485
+ * @generated from protobuf field: repeated sui.rpc.v2.Argument amounts = 2;
486
+ */
487
+ amounts: Argument[];
472
488
  }
473
489
  /**
474
490
  * Command to merge multiple coins of the same type into a single coin.
@@ -476,20 +492,20 @@ export interface SplitCoins {
476
492
  * @generated from protobuf message sui.rpc.v2.MergeCoins
477
493
  */
478
494
  export interface MergeCoins {
479
- /**
480
- * Coin to merge coins into.
481
- *
482
- * @generated from protobuf field: optional sui.rpc.v2.Argument coin = 1;
483
- */
484
- coin?: Argument;
485
- /**
486
- * Set of coins to merge into `coin`.
487
- *
488
- * All listed coins must be of the same type and be the same type as `coin`
489
- *
490
- * @generated from protobuf field: repeated sui.rpc.v2.Argument coins_to_merge = 2;
491
- */
492
- coinsToMerge: Argument[];
495
+ /**
496
+ * Coin to merge coins into.
497
+ *
498
+ * @generated from protobuf field: optional sui.rpc.v2.Argument coin = 1;
499
+ */
500
+ coin?: Argument;
501
+ /**
502
+ * Set of coins to merge into `coin`.
503
+ *
504
+ * All listed coins must be of the same type and be the same type as `coin`
505
+ *
506
+ * @generated from protobuf field: repeated sui.rpc.v2.Argument coins_to_merge = 2;
507
+ */
508
+ coinsToMerge: Argument[];
493
509
  }
494
510
  /**
495
511
  * Command to publish a new Move package.
@@ -497,18 +513,18 @@ export interface MergeCoins {
497
513
  * @generated from protobuf message sui.rpc.v2.Publish
498
514
  */
499
515
  export interface Publish {
500
- /**
501
- * The serialized Move modules.
502
- *
503
- * @generated from protobuf field: repeated bytes modules = 1;
504
- */
505
- modules: Uint8Array[];
506
- /**
507
- * Set of packages that the to-be published package depends on.
508
- *
509
- * @generated from protobuf field: repeated string dependencies = 2;
510
- */
511
- dependencies: string[];
516
+ /**
517
+ * The serialized Move modules.
518
+ *
519
+ * @generated from protobuf field: repeated bytes modules = 1;
520
+ */
521
+ modules: Uint8Array[];
522
+ /**
523
+ * Set of packages that the to-be published package depends on.
524
+ *
525
+ * @generated from protobuf field: repeated string dependencies = 2;
526
+ */
527
+ dependencies: string[];
512
528
  }
513
529
  /**
514
530
  * Command to build a Move vector out of a set of individual elements.
@@ -516,21 +532,21 @@ export interface Publish {
516
532
  * @generated from protobuf message sui.rpc.v2.MakeMoveVector
517
533
  */
518
534
  export interface MakeMoveVector {
519
- /**
520
- * Type of the individual elements.
521
- *
522
- * This is required to be set when the type can't be inferred, for example when the set of
523
- * provided arguments are all pure input values.
524
- *
525
- * @generated from protobuf field: optional string element_type = 1;
526
- */
527
- elementType?: string;
528
- /**
529
- * The set individual elements to build the vector with.
530
- *
531
- * @generated from protobuf field: repeated sui.rpc.v2.Argument elements = 2;
532
- */
533
- elements: Argument[];
535
+ /**
536
+ * Type of the individual elements.
537
+ *
538
+ * This is required to be set when the type can't be inferred, for example when the set of
539
+ * provided arguments are all pure input values.
540
+ *
541
+ * @generated from protobuf field: optional string element_type = 1;
542
+ */
543
+ elementType?: string;
544
+ /**
545
+ * The set individual elements to build the vector with.
546
+ *
547
+ * @generated from protobuf field: repeated sui.rpc.v2.Argument elements = 2;
548
+ */
549
+ elements: Argument[];
534
550
  }
535
551
  /**
536
552
  * Command to upgrade an already published package.
@@ -538,30 +554,30 @@ export interface MakeMoveVector {
538
554
  * @generated from protobuf message sui.rpc.v2.Upgrade
539
555
  */
540
556
  export interface Upgrade {
541
- /**
542
- * The serialized Move modules.
543
- *
544
- * @generated from protobuf field: repeated bytes modules = 1;
545
- */
546
- modules: Uint8Array[];
547
- /**
548
- * Set of packages that the to-be published package depends on.
549
- *
550
- * @generated from protobuf field: repeated string dependencies = 2;
551
- */
552
- dependencies: string[];
553
- /**
554
- * Package ID of the package to upgrade.
555
- *
556
- * @generated from protobuf field: optional string package = 3;
557
- */
558
- package?: string;
559
- /**
560
- * Ticket authorizing the upgrade.
561
- *
562
- * @generated from protobuf field: optional sui.rpc.v2.Argument ticket = 4;
563
- */
564
- ticket?: Argument;
557
+ /**
558
+ * The serialized Move modules.
559
+ *
560
+ * @generated from protobuf field: repeated bytes modules = 1;
561
+ */
562
+ modules: Uint8Array[];
563
+ /**
564
+ * Set of packages that the to-be published package depends on.
565
+ *
566
+ * @generated from protobuf field: repeated string dependencies = 2;
567
+ */
568
+ dependencies: string[];
569
+ /**
570
+ * Package ID of the package to upgrade.
571
+ *
572
+ * @generated from protobuf field: optional string package = 3;
573
+ */
574
+ package?: string;
575
+ /**
576
+ * Ticket authorizing the upgrade.
577
+ *
578
+ * @generated from protobuf field: optional sui.rpc.v2.Argument ticket = 4;
579
+ */
580
+ ticket?: Argument;
565
581
  }
566
582
  /**
567
583
  * Randomness update.
@@ -569,30 +585,30 @@ export interface Upgrade {
569
585
  * @generated from protobuf message sui.rpc.v2.RandomnessStateUpdate
570
586
  */
571
587
  export interface RandomnessStateUpdate {
572
- /**
573
- * Epoch of the randomness state update transaction.
574
- *
575
- * @generated from protobuf field: optional uint64 epoch = 1;
576
- */
577
- epoch?: bigint;
578
- /**
579
- * Randomness round of the update.
580
- *
581
- * @generated from protobuf field: optional uint64 randomness_round = 2;
582
- */
583
- randomnessRound?: bigint;
584
- /**
585
- * Updated random bytes.
586
- *
587
- * @generated from protobuf field: optional bytes random_bytes = 3;
588
- */
589
- randomBytes?: Uint8Array;
590
- /**
591
- * The initial version of the randomness object that it was shared at.
592
- *
593
- * @generated from protobuf field: optional uint64 randomness_object_initial_shared_version = 4;
594
- */
595
- randomnessObjectInitialSharedVersion?: bigint;
588
+ /**
589
+ * Epoch of the randomness state update transaction.
590
+ *
591
+ * @generated from protobuf field: optional uint64 epoch = 1;
592
+ */
593
+ epoch?: bigint;
594
+ /**
595
+ * Randomness round of the update.
596
+ *
597
+ * @generated from protobuf field: optional uint64 randomness_round = 2;
598
+ */
599
+ randomnessRound?: bigint;
600
+ /**
601
+ * Updated random bytes.
602
+ *
603
+ * @generated from protobuf field: optional bytes random_bytes = 3;
604
+ */
605
+ randomBytes?: Uint8Array;
606
+ /**
607
+ * The initial version of the randomness object that it was shared at.
608
+ *
609
+ * @generated from protobuf field: optional uint64 randomness_object_initial_shared_version = 4;
610
+ */
611
+ randomnessObjectInitialSharedVersion?: bigint;
596
612
  }
597
613
  /**
598
614
  * System transaction used to change the epoch.
@@ -600,58 +616,58 @@ export interface RandomnessStateUpdate {
600
616
  * @generated from protobuf message sui.rpc.v2.ChangeEpoch
601
617
  */
602
618
  export interface ChangeEpoch {
603
- /**
604
- * The next (to become) epoch ID.
605
- *
606
- * @generated from protobuf field: optional uint64 epoch = 1;
607
- */
608
- epoch?: bigint;
609
- /**
610
- * The protocol version in effect in the new epoch.
611
- *
612
- * @generated from protobuf field: optional uint64 protocol_version = 2;
613
- */
614
- protocolVersion?: bigint;
615
- /**
616
- * The total amount of gas charged for storage during the epoch.
617
- *
618
- * @generated from protobuf field: optional uint64 storage_charge = 3;
619
- */
620
- storageCharge?: bigint;
621
- /**
622
- * The total amount of gas charged for computation during the epoch.
623
- *
624
- * @generated from protobuf field: optional uint64 computation_charge = 4;
625
- */
626
- computationCharge?: bigint;
627
- /**
628
- * The amount of storage rebate refunded to the txn senders.
629
- *
630
- * @generated from protobuf field: optional uint64 storage_rebate = 5;
631
- */
632
- storageRebate?: bigint;
633
- /**
634
- * The non-refundable storage fee.
635
- *
636
- * @generated from protobuf field: optional uint64 non_refundable_storage_fee = 6;
637
- */
638
- nonRefundableStorageFee?: bigint;
639
- /**
640
- * Unix timestamp when epoch started.
641
- *
642
- * @generated from protobuf field: optional google.protobuf.Timestamp epoch_start_timestamp = 7;
643
- */
644
- epochStartTimestamp?: Timestamp;
645
- /**
646
- * System packages (specifically framework and Move stdlib) that are written before the new
647
- * epoch starts. This tracks framework upgrades on chain. When executing the `ChangeEpoch` txn,
648
- * the validator must write out the following modules. Modules are provided with the version they
649
- * will be upgraded to, their modules in serialized form (which include their package ID), and
650
- * a list of their transitive dependencies.
651
- *
652
- * @generated from protobuf field: repeated sui.rpc.v2.SystemPackage system_packages = 8;
653
- */
654
- systemPackages: SystemPackage[];
619
+ /**
620
+ * The next (to become) epoch ID.
621
+ *
622
+ * @generated from protobuf field: optional uint64 epoch = 1;
623
+ */
624
+ epoch?: bigint;
625
+ /**
626
+ * The protocol version in effect in the new epoch.
627
+ *
628
+ * @generated from protobuf field: optional uint64 protocol_version = 2;
629
+ */
630
+ protocolVersion?: bigint;
631
+ /**
632
+ * The total amount of gas charged for storage during the epoch.
633
+ *
634
+ * @generated from protobuf field: optional uint64 storage_charge = 3;
635
+ */
636
+ storageCharge?: bigint;
637
+ /**
638
+ * The total amount of gas charged for computation during the epoch.
639
+ *
640
+ * @generated from protobuf field: optional uint64 computation_charge = 4;
641
+ */
642
+ computationCharge?: bigint;
643
+ /**
644
+ * The amount of storage rebate refunded to the txn senders.
645
+ *
646
+ * @generated from protobuf field: optional uint64 storage_rebate = 5;
647
+ */
648
+ storageRebate?: bigint;
649
+ /**
650
+ * The non-refundable storage fee.
651
+ *
652
+ * @generated from protobuf field: optional uint64 non_refundable_storage_fee = 6;
653
+ */
654
+ nonRefundableStorageFee?: bigint;
655
+ /**
656
+ * Unix timestamp when epoch started.
657
+ *
658
+ * @generated from protobuf field: optional google.protobuf.Timestamp epoch_start_timestamp = 7;
659
+ */
660
+ epochStartTimestamp?: Timestamp;
661
+ /**
662
+ * System packages (specifically framework and Move stdlib) that are written before the new
663
+ * epoch starts. This tracks framework upgrades on chain. When executing the `ChangeEpoch` txn,
664
+ * the validator must write out the following modules. Modules are provided with the version they
665
+ * will be upgraded to, their modules in serialized form (which include their package ID), and
666
+ * a list of their transitive dependencies.
667
+ *
668
+ * @generated from protobuf field: repeated sui.rpc.v2.SystemPackage system_packages = 8;
669
+ */
670
+ systemPackages: SystemPackage[];
655
671
  }
656
672
  /**
657
673
  * System package.
@@ -659,24 +675,24 @@ export interface ChangeEpoch {
659
675
  * @generated from protobuf message sui.rpc.v2.SystemPackage
660
676
  */
661
677
  export interface SystemPackage {
662
- /**
663
- * Version of the package.
664
- *
665
- * @generated from protobuf field: optional uint64 version = 1;
666
- */
667
- version?: bigint;
668
- /**
669
- * Move modules.
670
- *
671
- * @generated from protobuf field: repeated bytes modules = 2;
672
- */
673
- modules: Uint8Array[];
674
- /**
675
- * Package dependencies.
676
- *
677
- * @generated from protobuf field: repeated string dependencies = 3;
678
- */
679
- dependencies: string[];
678
+ /**
679
+ * Version of the package.
680
+ *
681
+ * @generated from protobuf field: optional uint64 version = 1;
682
+ */
683
+ version?: bigint;
684
+ /**
685
+ * Move modules.
686
+ *
687
+ * @generated from protobuf field: repeated bytes modules = 2;
688
+ */
689
+ modules: Uint8Array[];
690
+ /**
691
+ * Package dependencies.
692
+ *
693
+ * @generated from protobuf field: repeated string dependencies = 3;
694
+ */
695
+ dependencies: string[];
680
696
  }
681
697
  /**
682
698
  * The genesis transaction.
@@ -684,12 +700,12 @@ export interface SystemPackage {
684
700
  * @generated from protobuf message sui.rpc.v2.GenesisTransaction
685
701
  */
686
702
  export interface GenesisTransaction {
687
- /**
688
- * Set of genesis objects.
689
- *
690
- * @generated from protobuf field: repeated sui.rpc.v2.Object objects = 1;
691
- */
692
- objects: Object[];
703
+ /**
704
+ * Set of genesis objects.
705
+ *
706
+ * @generated from protobuf field: repeated sui.rpc.v2.Object objects = 1;
707
+ */
708
+ objects: Object[];
693
709
  }
694
710
  /**
695
711
  * Consensus commit prologue system transaction.
@@ -699,64 +715,64 @@ export interface GenesisTransaction {
699
715
  * @generated from protobuf message sui.rpc.v2.ConsensusCommitPrologue
700
716
  */
701
717
  export interface ConsensusCommitPrologue {
702
- /**
703
- * Epoch of the commit prologue transaction.
704
- *
705
- * Present in V1, V2, V3, V4.
706
- *
707
- * @generated from protobuf field: optional uint64 epoch = 1;
708
- */
709
- epoch?: bigint;
710
- /**
711
- * Consensus round of the commit.
712
- *
713
- * Present in V1, V2, V3, V4.
714
- *
715
- * @generated from protobuf field: optional uint64 round = 2;
716
- */
717
- round?: bigint;
718
- /**
719
- * Unix timestamp from consensus.
720
- *
721
- * Present in V1, V2, V3, V4.
722
- *
723
- * @generated from protobuf field: optional google.protobuf.Timestamp commit_timestamp = 3;
724
- */
725
- commitTimestamp?: Timestamp;
726
- /**
727
- * Digest of consensus output.
728
- *
729
- * Present in V2, V3, V4.
730
- *
731
- * @generated from protobuf field: optional string consensus_commit_digest = 4;
732
- */
733
- consensusCommitDigest?: string;
734
- /**
735
- * The sub DAG index of the consensus commit. This field is populated if there
736
- * are multiple consensus commits per round.
737
- *
738
- * Present in V3, V4.
739
- *
740
- * @generated from protobuf field: optional uint64 sub_dag_index = 5;
741
- */
742
- subDagIndex?: bigint;
743
- /**
744
- * Stores consensus handler determined consensus object version assignments.
745
- *
746
- * Present in V3, V4.
747
- *
748
- * @generated from protobuf field: optional sui.rpc.v2.ConsensusDeterminedVersionAssignments consensus_determined_version_assignments = 6;
749
- */
750
- consensusDeterminedVersionAssignments?: ConsensusDeterminedVersionAssignments;
751
- /**
752
- * Digest of any additional state computed by the consensus handler.
753
- * Used to detect forking bugs as early as possible.
754
- *
755
- * Present in V4.
756
- *
757
- * @generated from protobuf field: optional string additional_state_digest = 7;
758
- */
759
- additionalStateDigest?: string;
718
+ /**
719
+ * Epoch of the commit prologue transaction.
720
+ *
721
+ * Present in V1, V2, V3, V4.
722
+ *
723
+ * @generated from protobuf field: optional uint64 epoch = 1;
724
+ */
725
+ epoch?: bigint;
726
+ /**
727
+ * Consensus round of the commit.
728
+ *
729
+ * Present in V1, V2, V3, V4.
730
+ *
731
+ * @generated from protobuf field: optional uint64 round = 2;
732
+ */
733
+ round?: bigint;
734
+ /**
735
+ * Unix timestamp from consensus.
736
+ *
737
+ * Present in V1, V2, V3, V4.
738
+ *
739
+ * @generated from protobuf field: optional google.protobuf.Timestamp commit_timestamp = 3;
740
+ */
741
+ commitTimestamp?: Timestamp;
742
+ /**
743
+ * Digest of consensus output.
744
+ *
745
+ * Present in V2, V3, V4.
746
+ *
747
+ * @generated from protobuf field: optional string consensus_commit_digest = 4;
748
+ */
749
+ consensusCommitDigest?: string;
750
+ /**
751
+ * The sub DAG index of the consensus commit. This field is populated if there
752
+ * are multiple consensus commits per round.
753
+ *
754
+ * Present in V3, V4.
755
+ *
756
+ * @generated from protobuf field: optional uint64 sub_dag_index = 5;
757
+ */
758
+ subDagIndex?: bigint;
759
+ /**
760
+ * Stores consensus handler determined consensus object version assignments.
761
+ *
762
+ * Present in V3, V4.
763
+ *
764
+ * @generated from protobuf field: optional sui.rpc.v2.ConsensusDeterminedVersionAssignments consensus_determined_version_assignments = 6;
765
+ */
766
+ consensusDeterminedVersionAssignments?: ConsensusDeterminedVersionAssignments;
767
+ /**
768
+ * Digest of any additional state computed by the consensus handler.
769
+ * Used to detect forking bugs as early as possible.
770
+ *
771
+ * Present in V4.
772
+ *
773
+ * @generated from protobuf field: optional string additional_state_digest = 7;
774
+ */
775
+ additionalStateDigest?: string;
760
776
  }
761
777
  /**
762
778
  * Object version assignment from consensus.
@@ -764,24 +780,24 @@ export interface ConsensusCommitPrologue {
764
780
  * @generated from protobuf message sui.rpc.v2.VersionAssignment
765
781
  */
766
782
  export interface VersionAssignment {
767
- /**
768
- * `ObjectId` of the object.
769
- *
770
- * @generated from protobuf field: optional string object_id = 1;
771
- */
772
- objectId?: string;
773
- /**
774
- * start version of the consensus stream for this object
775
- *
776
- * @generated from protobuf field: optional uint64 start_version = 2;
777
- */
778
- startVersion?: bigint;
779
- /**
780
- * Assigned version.
781
- *
782
- * @generated from protobuf field: optional uint64 version = 3;
783
- */
784
- version?: bigint;
783
+ /**
784
+ * `ObjectId` of the object.
785
+ *
786
+ * @generated from protobuf field: optional string object_id = 1;
787
+ */
788
+ objectId?: string;
789
+ /**
790
+ * start version of the consensus stream for this object
791
+ *
792
+ * @generated from protobuf field: optional uint64 start_version = 2;
793
+ */
794
+ startVersion?: bigint;
795
+ /**
796
+ * Assigned version.
797
+ *
798
+ * @generated from protobuf field: optional uint64 version = 3;
799
+ */
800
+ version?: bigint;
785
801
  }
786
802
  /**
787
803
  * A transaction that was canceled.
@@ -789,18 +805,18 @@ export interface VersionAssignment {
789
805
  * @generated from protobuf message sui.rpc.v2.CanceledTransaction
790
806
  */
791
807
  export interface CanceledTransaction {
792
- /**
793
- * Digest of the canceled transaction.
794
- *
795
- * @generated from protobuf field: optional string digest = 1;
796
- */
797
- digest?: string;
798
- /**
799
- * List of object version assignments.
800
- *
801
- * @generated from protobuf field: repeated sui.rpc.v2.VersionAssignment version_assignments = 2;
802
- */
803
- versionAssignments: VersionAssignment[];
808
+ /**
809
+ * Digest of the canceled transaction.
810
+ *
811
+ * @generated from protobuf field: optional string digest = 1;
812
+ */
813
+ digest?: string;
814
+ /**
815
+ * List of object version assignments.
816
+ *
817
+ * @generated from protobuf field: repeated sui.rpc.v2.VersionAssignment version_assignments = 2;
818
+ */
819
+ versionAssignments: VersionAssignment[];
804
820
  }
805
821
  /**
806
822
  * Version assignments performed by consensus.
@@ -808,18 +824,18 @@ export interface CanceledTransaction {
808
824
  * @generated from protobuf message sui.rpc.v2.ConsensusDeterminedVersionAssignments
809
825
  */
810
826
  export interface ConsensusDeterminedVersionAssignments {
811
- /**
812
- * Version of this message
813
- *
814
- * @generated from protobuf field: optional int32 version = 1;
815
- */
816
- version?: number;
817
- /**
818
- * Canceled transaction version assignment.
819
- *
820
- * @generated from protobuf field: repeated sui.rpc.v2.CanceledTransaction canceled_transactions = 3;
821
- */
822
- canceledTransactions: CanceledTransaction[];
827
+ /**
828
+ * Version of this message
829
+ *
830
+ * @generated from protobuf field: optional int32 version = 1;
831
+ */
832
+ version?: number;
833
+ /**
834
+ * Canceled transaction version assignment.
835
+ *
836
+ * @generated from protobuf field: repeated sui.rpc.v2.CanceledTransaction canceled_transactions = 3;
837
+ */
838
+ canceledTransactions: CanceledTransaction[];
823
839
  }
824
840
  /**
825
841
  * Update the set of valid JWKs.
@@ -827,30 +843,30 @@ export interface ConsensusDeterminedVersionAssignments {
827
843
  * @generated from protobuf message sui.rpc.v2.AuthenticatorStateUpdate
828
844
  */
829
845
  export interface AuthenticatorStateUpdate {
830
- /**
831
- * Epoch of the authenticator state update transaction.
832
- *
833
- * @generated from protobuf field: optional uint64 epoch = 1;
834
- */
835
- epoch?: bigint;
836
- /**
837
- * Consensus round of the authenticator state update.
838
- *
839
- * @generated from protobuf field: optional uint64 round = 2;
840
- */
841
- round?: bigint;
842
- /**
843
- * Newly active JWKs.
844
- *
845
- * @generated from protobuf field: repeated sui.rpc.v2.ActiveJwk new_active_jwks = 3;
846
- */
847
- newActiveJwks: ActiveJwk[];
848
- /**
849
- * The initial version of the authenticator object that it was shared at.
850
- *
851
- * @generated from protobuf field: optional uint64 authenticator_object_initial_shared_version = 4;
852
- */
853
- authenticatorObjectInitialSharedVersion?: bigint;
846
+ /**
847
+ * Epoch of the authenticator state update transaction.
848
+ *
849
+ * @generated from protobuf field: optional uint64 epoch = 1;
850
+ */
851
+ epoch?: bigint;
852
+ /**
853
+ * Consensus round of the authenticator state update.
854
+ *
855
+ * @generated from protobuf field: optional uint64 round = 2;
856
+ */
857
+ round?: bigint;
858
+ /**
859
+ * Newly active JWKs.
860
+ *
861
+ * @generated from protobuf field: repeated sui.rpc.v2.ActiveJwk new_active_jwks = 3;
862
+ */
863
+ newActiveJwks: ActiveJwk[];
864
+ /**
865
+ * The initial version of the authenticator object that it was shared at.
866
+ *
867
+ * @generated from protobuf field: optional uint64 authenticator_object_initial_shared_version = 4;
868
+ */
869
+ authenticatorObjectInitialSharedVersion?: bigint;
854
870
  }
855
871
  /**
856
872
  * A new JWK.
@@ -858,24 +874,24 @@ export interface AuthenticatorStateUpdate {
858
874
  * @generated from protobuf message sui.rpc.v2.ActiveJwk
859
875
  */
860
876
  export interface ActiveJwk {
861
- /**
862
- * Identifier used to uniquely identify a JWK.
863
- *
864
- * @generated from protobuf field: optional sui.rpc.v2.JwkId id = 1;
865
- */
866
- id?: JwkId;
867
- /**
868
- * The JWK.
869
- *
870
- * @generated from protobuf field: optional sui.rpc.v2.Jwk jwk = 2;
871
- */
872
- jwk?: Jwk;
873
- /**
874
- * Most recent epoch in which the JWK was validated.
875
- *
876
- * @generated from protobuf field: optional uint64 epoch = 3;
877
- */
878
- epoch?: bigint;
877
+ /**
878
+ * Identifier used to uniquely identify a JWK.
879
+ *
880
+ * @generated from protobuf field: optional sui.rpc.v2.JwkId id = 1;
881
+ */
882
+ id?: JwkId;
883
+ /**
884
+ * The JWK.
885
+ *
886
+ * @generated from protobuf field: optional sui.rpc.v2.Jwk jwk = 2;
887
+ */
888
+ jwk?: Jwk;
889
+ /**
890
+ * Most recent epoch in which the JWK was validated.
891
+ *
892
+ * @generated from protobuf field: optional uint64 epoch = 3;
893
+ */
894
+ epoch?: bigint;
879
895
  }
880
896
  /**
881
897
  * Set of operations run at the end of the epoch to close out the current epoch
@@ -884,10 +900,10 @@ export interface ActiveJwk {
884
900
  * @generated from protobuf message sui.rpc.v2.EndOfEpochTransaction
885
901
  */
886
902
  export interface EndOfEpochTransaction {
887
- /**
888
- * @generated from protobuf field: repeated sui.rpc.v2.EndOfEpochTransactionKind transactions = 1;
889
- */
890
- transactions: EndOfEpochTransactionKind[];
903
+ /**
904
+ * @generated from protobuf field: repeated sui.rpc.v2.EndOfEpochTransactionKind transactions = 1;
905
+ */
906
+ transactions: EndOfEpochTransactionKind[];
891
907
  }
892
908
  /**
893
909
  * Operation run at the end of an epoch.
@@ -895,131 +911,137 @@ export interface EndOfEpochTransaction {
895
911
  * @generated from protobuf message sui.rpc.v2.EndOfEpochTransactionKind
896
912
  */
897
913
  export interface EndOfEpochTransactionKind {
898
- /**
899
- * @generated from protobuf field: optional sui.rpc.v2.EndOfEpochTransactionKind.Kind kind = 1;
900
- */
901
- kind?: EndOfEpochTransactionKind_Kind;
902
- /**
903
- * @generated from protobuf oneof: data
904
- */
905
- data: {
906
- oneofKind: "changeEpoch";
907
- /**
908
- * End the epoch and start the next one.
909
- *
910
- * @generated from protobuf field: sui.rpc.v2.ChangeEpoch change_epoch = 2;
911
- */
912
- changeEpoch: ChangeEpoch;
913
- } | {
914
- oneofKind: "authenticatorStateExpire";
915
- /**
916
- * Expire JWKs used for zklogin.
917
- *
918
- * @generated from protobuf field: sui.rpc.v2.AuthenticatorStateExpire authenticator_state_expire = 3;
919
- */
920
- authenticatorStateExpire: AuthenticatorStateExpire;
921
- } | {
922
- oneofKind: "executionTimeObservations";
923
- /**
924
- * Execution time observations from the committee to preserve cross epoch
925
- *
926
- * @generated from protobuf field: sui.rpc.v2.ExecutionTimeObservations execution_time_observations = 4;
927
- */
928
- executionTimeObservations: ExecutionTimeObservations;
929
- } | {
930
- oneofKind: "bridgeChainId";
931
- /**
932
- * ChainId used when initializing the bridge
933
- *
934
- * @generated from protobuf field: string bridge_chain_id = 5;
935
- */
936
- bridgeChainId: string;
937
- } | {
938
- oneofKind: "bridgeObjectVersion";
939
- /**
940
- * Start version of the Bridge object
941
- *
942
- * @generated from protobuf field: uint64 bridge_object_version = 6;
943
- */
944
- bridgeObjectVersion: bigint;
945
- } | {
946
- oneofKind: undefined;
947
- };
914
+ /**
915
+ * @generated from protobuf field: optional sui.rpc.v2.EndOfEpochTransactionKind.Kind kind = 1;
916
+ */
917
+ kind?: EndOfEpochTransactionKind_Kind;
918
+ /**
919
+ * @generated from protobuf oneof: data
920
+ */
921
+ data:
922
+ | {
923
+ oneofKind: 'changeEpoch';
924
+ /**
925
+ * End the epoch and start the next one.
926
+ *
927
+ * @generated from protobuf field: sui.rpc.v2.ChangeEpoch change_epoch = 2;
928
+ */
929
+ changeEpoch: ChangeEpoch;
930
+ }
931
+ | {
932
+ oneofKind: 'authenticatorStateExpire';
933
+ /**
934
+ * Expire JWKs used for zklogin.
935
+ *
936
+ * @generated from protobuf field: sui.rpc.v2.AuthenticatorStateExpire authenticator_state_expire = 3;
937
+ */
938
+ authenticatorStateExpire: AuthenticatorStateExpire;
939
+ }
940
+ | {
941
+ oneofKind: 'executionTimeObservations';
942
+ /**
943
+ * Execution time observations from the committee to preserve cross epoch
944
+ *
945
+ * @generated from protobuf field: sui.rpc.v2.ExecutionTimeObservations execution_time_observations = 4;
946
+ */
947
+ executionTimeObservations: ExecutionTimeObservations;
948
+ }
949
+ | {
950
+ oneofKind: 'bridgeChainId';
951
+ /**
952
+ * ChainId used when initializing the bridge
953
+ *
954
+ * @generated from protobuf field: string bridge_chain_id = 5;
955
+ */
956
+ bridgeChainId: string;
957
+ }
958
+ | {
959
+ oneofKind: 'bridgeObjectVersion';
960
+ /**
961
+ * Start version of the Bridge object
962
+ *
963
+ * @generated from protobuf field: uint64 bridge_object_version = 6;
964
+ */
965
+ bridgeObjectVersion: bigint;
966
+ }
967
+ | {
968
+ oneofKind: undefined;
969
+ };
948
970
  }
949
971
  /**
950
972
  * @generated from protobuf enum sui.rpc.v2.EndOfEpochTransactionKind.Kind
951
973
  */
952
974
  export enum EndOfEpochTransactionKind_Kind {
953
- /**
954
- * @generated from protobuf enum value: KIND_UNKNOWN = 0;
955
- */
956
- KIND_UNKNOWN = 0,
957
- /**
958
- * End the epoch and start the next one.
959
- *
960
- * @generated from protobuf enum value: CHANGE_EPOCH = 1;
961
- */
962
- CHANGE_EPOCH = 1,
963
- /**
964
- * Create and initialize the authenticator object used for zklogin.
965
- *
966
- * @generated from protobuf enum value: AUTHENTICATOR_STATE_CREATE = 2;
967
- */
968
- AUTHENTICATOR_STATE_CREATE = 2,
969
- /**
970
- * Expire JWKs used for zklogin.
971
- *
972
- * @generated from protobuf enum value: AUTHENTICATOR_STATE_EXPIRE = 3;
973
- */
974
- AUTHENTICATOR_STATE_EXPIRE = 3,
975
- /**
976
- * Create and initialize the randomness object.
977
- *
978
- * @generated from protobuf enum value: RANDOMNESS_STATE_CREATE = 4;
979
- */
980
- RANDOMNESS_STATE_CREATE = 4,
981
- /**
982
- * Create and initialize the deny list object.
983
- *
984
- * @generated from protobuf enum value: DENY_LIST_STATE_CREATE = 5;
985
- */
986
- DENY_LIST_STATE_CREATE = 5,
987
- /**
988
- * Create and initialize the bridge object.
989
- *
990
- * @generated from protobuf enum value: BRIDGE_STATE_CREATE = 6;
991
- */
992
- BRIDGE_STATE_CREATE = 6,
993
- /**
994
- * Initialize the bridge committee.
995
- *
996
- * @generated from protobuf enum value: BRIDGE_COMMITTEE_INIT = 7;
997
- */
998
- BRIDGE_COMMITTEE_INIT = 7,
999
- /**
1000
- * Execution time observations from the committee to preserve cross epoch
1001
- *
1002
- * @generated from protobuf enum value: STORE_EXECUTION_TIME_OBSERVATIONS = 8;
1003
- */
1004
- STORE_EXECUTION_TIME_OBSERVATIONS = 8,
1005
- /**
1006
- * Create the accumulator root object.
1007
- *
1008
- * @generated from protobuf enum value: ACCUMULATOR_ROOT_CREATE = 9;
1009
- */
1010
- ACCUMULATOR_ROOT_CREATE = 9,
1011
- /**
1012
- * Create and initialize the Coin Registry object.
1013
- *
1014
- * @generated from protobuf enum value: COIN_REGISTRY_CREATE = 10;
1015
- */
1016
- COIN_REGISTRY_CREATE = 10,
1017
- /**
1018
- * Create and initialize the Display Registry object.
1019
- *
1020
- * @generated from protobuf enum value: DISPLAY_REGISTRY_CREATE = 11;
1021
- */
1022
- DISPLAY_REGISTRY_CREATE = 11
975
+ /**
976
+ * @generated from protobuf enum value: KIND_UNKNOWN = 0;
977
+ */
978
+ KIND_UNKNOWN = 0,
979
+ /**
980
+ * End the epoch and start the next one.
981
+ *
982
+ * @generated from protobuf enum value: CHANGE_EPOCH = 1;
983
+ */
984
+ CHANGE_EPOCH = 1,
985
+ /**
986
+ * Create and initialize the authenticator object used for zklogin.
987
+ *
988
+ * @generated from protobuf enum value: AUTHENTICATOR_STATE_CREATE = 2;
989
+ */
990
+ AUTHENTICATOR_STATE_CREATE = 2,
991
+ /**
992
+ * Expire JWKs used for zklogin.
993
+ *
994
+ * @generated from protobuf enum value: AUTHENTICATOR_STATE_EXPIRE = 3;
995
+ */
996
+ AUTHENTICATOR_STATE_EXPIRE = 3,
997
+ /**
998
+ * Create and initialize the randomness object.
999
+ *
1000
+ * @generated from protobuf enum value: RANDOMNESS_STATE_CREATE = 4;
1001
+ */
1002
+ RANDOMNESS_STATE_CREATE = 4,
1003
+ /**
1004
+ * Create and initialize the deny list object.
1005
+ *
1006
+ * @generated from protobuf enum value: DENY_LIST_STATE_CREATE = 5;
1007
+ */
1008
+ DENY_LIST_STATE_CREATE = 5,
1009
+ /**
1010
+ * Create and initialize the bridge object.
1011
+ *
1012
+ * @generated from protobuf enum value: BRIDGE_STATE_CREATE = 6;
1013
+ */
1014
+ BRIDGE_STATE_CREATE = 6,
1015
+ /**
1016
+ * Initialize the bridge committee.
1017
+ *
1018
+ * @generated from protobuf enum value: BRIDGE_COMMITTEE_INIT = 7;
1019
+ */
1020
+ BRIDGE_COMMITTEE_INIT = 7,
1021
+ /**
1022
+ * Execution time observations from the committee to preserve cross epoch
1023
+ *
1024
+ * @generated from protobuf enum value: STORE_EXECUTION_TIME_OBSERVATIONS = 8;
1025
+ */
1026
+ STORE_EXECUTION_TIME_OBSERVATIONS = 8,
1027
+ /**
1028
+ * Create the accumulator root object.
1029
+ *
1030
+ * @generated from protobuf enum value: ACCUMULATOR_ROOT_CREATE = 9;
1031
+ */
1032
+ ACCUMULATOR_ROOT_CREATE = 9,
1033
+ /**
1034
+ * Create and initialize the Coin Registry object.
1035
+ *
1036
+ * @generated from protobuf enum value: COIN_REGISTRY_CREATE = 10;
1037
+ */
1038
+ COIN_REGISTRY_CREATE = 10,
1039
+ /**
1040
+ * Create and initialize the Display Registry object.
1041
+ *
1042
+ * @generated from protobuf enum value: DISPLAY_REGISTRY_CREATE = 11;
1043
+ */
1044
+ DISPLAY_REGISTRY_CREATE = 11,
1023
1045
  }
1024
1046
  /**
1025
1047
  * Expire old JWKs.
@@ -1027,118 +1049,118 @@ export enum EndOfEpochTransactionKind_Kind {
1027
1049
  * @generated from protobuf message sui.rpc.v2.AuthenticatorStateExpire
1028
1050
  */
1029
1051
  export interface AuthenticatorStateExpire {
1030
- /**
1031
- * Expire JWKs that have a lower epoch than this.
1032
- *
1033
- * @generated from protobuf field: optional uint64 min_epoch = 1;
1034
- */
1035
- minEpoch?: bigint;
1036
- /**
1037
- * The initial version of the authenticator object that it was shared at.
1038
- *
1039
- * @generated from protobuf field: optional uint64 authenticator_object_initial_shared_version = 2;
1040
- */
1041
- authenticatorObjectInitialSharedVersion?: bigint;
1052
+ /**
1053
+ * Expire JWKs that have a lower epoch than this.
1054
+ *
1055
+ * @generated from protobuf field: optional uint64 min_epoch = 1;
1056
+ */
1057
+ minEpoch?: bigint;
1058
+ /**
1059
+ * The initial version of the authenticator object that it was shared at.
1060
+ *
1061
+ * @generated from protobuf field: optional uint64 authenticator_object_initial_shared_version = 2;
1062
+ */
1063
+ authenticatorObjectInitialSharedVersion?: bigint;
1042
1064
  }
1043
1065
  /**
1044
1066
  * @generated from protobuf message sui.rpc.v2.ExecutionTimeObservations
1045
1067
  */
1046
1068
  export interface ExecutionTimeObservations {
1047
- /**
1048
- * Version of this ExecutionTimeObservations
1049
- *
1050
- * @generated from protobuf field: optional int32 version = 1;
1051
- */
1052
- version?: number;
1053
- /**
1054
- * @generated from protobuf field: repeated sui.rpc.v2.ExecutionTimeObservation observations = 2;
1055
- */
1056
- observations: ExecutionTimeObservation[];
1069
+ /**
1070
+ * Version of this ExecutionTimeObservations
1071
+ *
1072
+ * @generated from protobuf field: optional int32 version = 1;
1073
+ */
1074
+ version?: number;
1075
+ /**
1076
+ * @generated from protobuf field: repeated sui.rpc.v2.ExecutionTimeObservation observations = 2;
1077
+ */
1078
+ observations: ExecutionTimeObservation[];
1057
1079
  }
1058
1080
  /**
1059
1081
  * @generated from protobuf message sui.rpc.v2.ExecutionTimeObservation
1060
1082
  */
1061
1083
  export interface ExecutionTimeObservation {
1062
- /**
1063
- * @generated from protobuf field: optional sui.rpc.v2.ExecutionTimeObservation.ExecutionTimeObservationKind kind = 1;
1064
- */
1065
- kind?: ExecutionTimeObservation_ExecutionTimeObservationKind;
1066
- /**
1067
- * @generated from protobuf field: optional sui.rpc.v2.MoveCall move_entry_point = 2;
1068
- */
1069
- moveEntryPoint?: MoveCall;
1070
- /**
1071
- * @generated from protobuf field: repeated sui.rpc.v2.ValidatorExecutionTimeObservation validator_observations = 3;
1072
- */
1073
- validatorObservations: ValidatorExecutionTimeObservation[];
1084
+ /**
1085
+ * @generated from protobuf field: optional sui.rpc.v2.ExecutionTimeObservation.ExecutionTimeObservationKind kind = 1;
1086
+ */
1087
+ kind?: ExecutionTimeObservation_ExecutionTimeObservationKind;
1088
+ /**
1089
+ * @generated from protobuf field: optional sui.rpc.v2.MoveCall move_entry_point = 2;
1090
+ */
1091
+ moveEntryPoint?: MoveCall;
1092
+ /**
1093
+ * @generated from protobuf field: repeated sui.rpc.v2.ValidatorExecutionTimeObservation validator_observations = 3;
1094
+ */
1095
+ validatorObservations: ValidatorExecutionTimeObservation[];
1074
1096
  }
1075
1097
  /**
1076
1098
  * @generated from protobuf enum sui.rpc.v2.ExecutionTimeObservation.ExecutionTimeObservationKind
1077
1099
  */
1078
1100
  export enum ExecutionTimeObservation_ExecutionTimeObservationKind {
1079
- /**
1080
- * @generated from protobuf enum value: EXECUTION_TIME_OBSERVATION_KIND_UNKNOWN = 0;
1081
- */
1082
- EXECUTION_TIME_OBSERVATION_KIND_UNKNOWN = 0,
1083
- /**
1084
- * @generated from protobuf enum value: MOVE_ENTRY_POINT = 1;
1085
- */
1086
- MOVE_ENTRY_POINT = 1,
1087
- /**
1088
- * @generated from protobuf enum value: TRANSFER_OBJECTS = 2;
1089
- */
1090
- TRANSFER_OBJECTS = 2,
1091
- /**
1092
- * @generated from protobuf enum value: SPLIT_COINS = 3;
1093
- */
1094
- SPLIT_COINS = 3,
1095
- /**
1096
- * @generated from protobuf enum value: MERGE_COINS = 4;
1097
- */
1098
- MERGE_COINS = 4,
1099
- /**
1100
- * @generated from protobuf enum value: PUBLISH = 5;
1101
- */
1102
- PUBLISH = 5,
1103
- /**
1104
- * @generated from protobuf enum value: MAKE_MOVE_VECTOR = 6;
1105
- */
1106
- MAKE_MOVE_VECTOR = 6,
1107
- /**
1108
- * @generated from protobuf enum value: UPGRADE = 7;
1109
- */
1110
- UPGRADE = 7
1101
+ /**
1102
+ * @generated from protobuf enum value: EXECUTION_TIME_OBSERVATION_KIND_UNKNOWN = 0;
1103
+ */
1104
+ EXECUTION_TIME_OBSERVATION_KIND_UNKNOWN = 0,
1105
+ /**
1106
+ * @generated from protobuf enum value: MOVE_ENTRY_POINT = 1;
1107
+ */
1108
+ MOVE_ENTRY_POINT = 1,
1109
+ /**
1110
+ * @generated from protobuf enum value: TRANSFER_OBJECTS = 2;
1111
+ */
1112
+ TRANSFER_OBJECTS = 2,
1113
+ /**
1114
+ * @generated from protobuf enum value: SPLIT_COINS = 3;
1115
+ */
1116
+ SPLIT_COINS = 3,
1117
+ /**
1118
+ * @generated from protobuf enum value: MERGE_COINS = 4;
1119
+ */
1120
+ MERGE_COINS = 4,
1121
+ /**
1122
+ * @generated from protobuf enum value: PUBLISH = 5;
1123
+ */
1124
+ PUBLISH = 5,
1125
+ /**
1126
+ * @generated from protobuf enum value: MAKE_MOVE_VECTOR = 6;
1127
+ */
1128
+ MAKE_MOVE_VECTOR = 6,
1129
+ /**
1130
+ * @generated from protobuf enum value: UPGRADE = 7;
1131
+ */
1132
+ UPGRADE = 7,
1111
1133
  }
1112
1134
  /**
1113
1135
  * @generated from protobuf message sui.rpc.v2.ValidatorExecutionTimeObservation
1114
1136
  */
1115
1137
  export interface ValidatorExecutionTimeObservation {
1116
- /**
1117
- * Bls12381 public key of the validator
1118
- *
1119
- * @generated from protobuf field: optional bytes validator = 1;
1120
- */
1121
- validator?: Uint8Array;
1122
- /**
1123
- * Duration of an execution observation
1124
- *
1125
- * @generated from protobuf field: optional google.protobuf.Duration duration = 2;
1126
- */
1127
- duration?: Duration;
1138
+ /**
1139
+ * Bls12381 public key of the validator
1140
+ *
1141
+ * @generated from protobuf field: optional bytes validator = 1;
1142
+ */
1143
+ validator?: Uint8Array;
1144
+ /**
1145
+ * Duration of an execution observation
1146
+ *
1147
+ * @generated from protobuf field: optional google.protobuf.Duration duration = 2;
1148
+ */
1149
+ duration?: Duration;
1128
1150
  }
1129
1151
  // @generated message type with reflection information, may provide speed optimized methods
1130
1152
  class Transaction$Type extends MessageType<Transaction> {
1131
- constructor() {
1132
- super("sui.rpc.v2.Transaction", [
1133
- { no: 1, name: "bcs", kind: "message", T: () => Bcs },
1134
- { no: 2, name: "digest", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1135
- { no: 3, name: "version", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
1136
- { no: 4, name: "kind", kind: "message", T: () => TransactionKind },
1137
- { no: 5, name: "sender", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1138
- { no: 6, name: "gas_payment", kind: "message", T: () => GasPayment },
1139
- { no: 7, name: "expiration", kind: "message", T: () => TransactionExpiration }
1140
- ]);
1141
- }
1153
+ constructor() {
1154
+ super('sui.rpc.v2.Transaction', [
1155
+ { no: 1, name: 'bcs', kind: 'message', T: () => Bcs },
1156
+ { no: 2, name: 'digest', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
1157
+ { no: 3, name: 'version', kind: 'scalar', opt: true, T: 5 /*ScalarType.INT32*/ },
1158
+ { no: 4, name: 'kind', kind: 'message', T: () => TransactionKind },
1159
+ { no: 5, name: 'sender', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
1160
+ { no: 6, name: 'gas_payment', kind: 'message', T: () => GasPayment },
1161
+ { no: 7, name: 'expiration', kind: 'message', T: () => TransactionExpiration },
1162
+ ]);
1163
+ }
1142
1164
  }
1143
1165
  /**
1144
1166
  * @generated MessageType for protobuf message sui.rpc.v2.Transaction
@@ -1146,14 +1168,34 @@ class Transaction$Type extends MessageType<Transaction> {
1146
1168
  export const Transaction = new Transaction$Type();
1147
1169
  // @generated message type with reflection information, may provide speed optimized methods
1148
1170
  class GasPayment$Type extends MessageType<GasPayment> {
1149
- constructor() {
1150
- super("sui.rpc.v2.GasPayment", [
1151
- { no: 1, name: "objects", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ObjectReference },
1152
- { no: 2, name: "owner", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1153
- { no: 3, name: "price", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1154
- { no: 4, name: "budget", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
1155
- ]);
1156
- }
1171
+ constructor() {
1172
+ super('sui.rpc.v2.GasPayment', [
1173
+ {
1174
+ no: 1,
1175
+ name: 'objects',
1176
+ kind: 'message',
1177
+ repeat: 1 /*RepeatType.PACKED*/,
1178
+ T: () => ObjectReference,
1179
+ },
1180
+ { no: 2, name: 'owner', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
1181
+ {
1182
+ no: 3,
1183
+ name: 'price',
1184
+ kind: 'scalar',
1185
+ opt: true,
1186
+ T: 4 /*ScalarType.UINT64*/,
1187
+ L: 0 /*LongType.BIGINT*/,
1188
+ },
1189
+ {
1190
+ no: 4,
1191
+ name: 'budget',
1192
+ kind: 'scalar',
1193
+ opt: true,
1194
+ T: 4 /*ScalarType.UINT64*/,
1195
+ L: 0 /*LongType.BIGINT*/,
1196
+ },
1197
+ ]);
1198
+ }
1157
1199
  }
1158
1200
  /**
1159
1201
  * @generated MessageType for protobuf message sui.rpc.v2.GasPayment
@@ -1161,12 +1203,28 @@ class GasPayment$Type extends MessageType<GasPayment> {
1161
1203
  export const GasPayment = new GasPayment$Type();
1162
1204
  // @generated message type with reflection information, may provide speed optimized methods
1163
1205
  class TransactionExpiration$Type extends MessageType<TransactionExpiration> {
1164
- constructor() {
1165
- super("sui.rpc.v2.TransactionExpiration", [
1166
- { no: 1, name: "kind", kind: "enum", opt: true, T: () => ["sui.rpc.v2.TransactionExpiration.TransactionExpirationKind", TransactionExpiration_TransactionExpirationKind] },
1167
- { no: 2, name: "epoch", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
1168
- ]);
1169
- }
1206
+ constructor() {
1207
+ super('sui.rpc.v2.TransactionExpiration', [
1208
+ {
1209
+ no: 1,
1210
+ name: 'kind',
1211
+ kind: 'enum',
1212
+ opt: true,
1213
+ T: () => [
1214
+ 'sui.rpc.v2.TransactionExpiration.TransactionExpirationKind',
1215
+ TransactionExpiration_TransactionExpirationKind,
1216
+ ],
1217
+ },
1218
+ {
1219
+ no: 2,
1220
+ name: 'epoch',
1221
+ kind: 'scalar',
1222
+ opt: true,
1223
+ T: 4 /*ScalarType.UINT64*/,
1224
+ L: 0 /*LongType.BIGINT*/,
1225
+ },
1226
+ ]);
1227
+ }
1170
1228
  }
1171
1229
  /**
1172
1230
  * @generated MessageType for protobuf message sui.rpc.v2.TransactionExpiration
@@ -1174,18 +1232,54 @@ class TransactionExpiration$Type extends MessageType<TransactionExpiration> {
1174
1232
  export const TransactionExpiration = new TransactionExpiration$Type();
1175
1233
  // @generated message type with reflection information, may provide speed optimized methods
1176
1234
  class TransactionKind$Type extends MessageType<TransactionKind> {
1177
- constructor() {
1178
- super("sui.rpc.v2.TransactionKind", [
1179
- { no: 1, name: "kind", kind: "enum", opt: true, T: () => ["sui.rpc.v2.TransactionKind.Kind", TransactionKind_Kind] },
1180
- { no: 2, name: "programmable_transaction", kind: "message", oneof: "data", T: () => ProgrammableTransaction },
1181
- { no: 3, name: "change_epoch", kind: "message", oneof: "data", T: () => ChangeEpoch },
1182
- { no: 4, name: "genesis", kind: "message", oneof: "data", T: () => GenesisTransaction },
1183
- { no: 5, name: "consensus_commit_prologue", kind: "message", oneof: "data", T: () => ConsensusCommitPrologue },
1184
- { no: 6, name: "authenticator_state_update", kind: "message", oneof: "data", T: () => AuthenticatorStateUpdate },
1185
- { no: 7, name: "end_of_epoch", kind: "message", oneof: "data", T: () => EndOfEpochTransaction },
1186
- { no: 8, name: "randomness_state_update", kind: "message", oneof: "data", T: () => RandomnessStateUpdate }
1187
- ]);
1188
- }
1235
+ constructor() {
1236
+ super('sui.rpc.v2.TransactionKind', [
1237
+ {
1238
+ no: 1,
1239
+ name: 'kind',
1240
+ kind: 'enum',
1241
+ opt: true,
1242
+ T: () => ['sui.rpc.v2.TransactionKind.Kind', TransactionKind_Kind],
1243
+ },
1244
+ {
1245
+ no: 2,
1246
+ name: 'programmable_transaction',
1247
+ kind: 'message',
1248
+ oneof: 'data',
1249
+ T: () => ProgrammableTransaction,
1250
+ },
1251
+ { no: 3, name: 'change_epoch', kind: 'message', oneof: 'data', T: () => ChangeEpoch },
1252
+ { no: 4, name: 'genesis', kind: 'message', oneof: 'data', T: () => GenesisTransaction },
1253
+ {
1254
+ no: 5,
1255
+ name: 'consensus_commit_prologue',
1256
+ kind: 'message',
1257
+ oneof: 'data',
1258
+ T: () => ConsensusCommitPrologue,
1259
+ },
1260
+ {
1261
+ no: 6,
1262
+ name: 'authenticator_state_update',
1263
+ kind: 'message',
1264
+ oneof: 'data',
1265
+ T: () => AuthenticatorStateUpdate,
1266
+ },
1267
+ {
1268
+ no: 7,
1269
+ name: 'end_of_epoch',
1270
+ kind: 'message',
1271
+ oneof: 'data',
1272
+ T: () => EndOfEpochTransaction,
1273
+ },
1274
+ {
1275
+ no: 8,
1276
+ name: 'randomness_state_update',
1277
+ kind: 'message',
1278
+ oneof: 'data',
1279
+ T: () => RandomnessStateUpdate,
1280
+ },
1281
+ ]);
1282
+ }
1189
1283
  }
1190
1284
  /**
1191
1285
  * @generated MessageType for protobuf message sui.rpc.v2.TransactionKind
@@ -1193,12 +1287,18 @@ class TransactionKind$Type extends MessageType<TransactionKind> {
1193
1287
  export const TransactionKind = new TransactionKind$Type();
1194
1288
  // @generated message type with reflection information, may provide speed optimized methods
1195
1289
  class ProgrammableTransaction$Type extends MessageType<ProgrammableTransaction> {
1196
- constructor() {
1197
- super("sui.rpc.v2.ProgrammableTransaction", [
1198
- { no: 1, name: "inputs", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Input },
1199
- { no: 2, name: "commands", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Command }
1200
- ]);
1201
- }
1290
+ constructor() {
1291
+ super('sui.rpc.v2.ProgrammableTransaction', [
1292
+ { no: 1, name: 'inputs', kind: 'message', repeat: 1 /*RepeatType.PACKED*/, T: () => Input },
1293
+ {
1294
+ no: 2,
1295
+ name: 'commands',
1296
+ kind: 'message',
1297
+ repeat: 1 /*RepeatType.PACKED*/,
1298
+ T: () => Command,
1299
+ },
1300
+ ]);
1301
+ }
1202
1302
  }
1203
1303
  /**
1204
1304
  * @generated MessageType for protobuf message sui.rpc.v2.ProgrammableTransaction
@@ -1206,17 +1306,29 @@ class ProgrammableTransaction$Type extends MessageType<ProgrammableTransaction>
1206
1306
  export const ProgrammableTransaction = new ProgrammableTransaction$Type();
1207
1307
  // @generated message type with reflection information, may provide speed optimized methods
1208
1308
  class Command$Type extends MessageType<Command> {
1209
- constructor() {
1210
- super("sui.rpc.v2.Command", [
1211
- { no: 1, name: "move_call", kind: "message", oneof: "command", T: () => MoveCall },
1212
- { no: 2, name: "transfer_objects", kind: "message", oneof: "command", T: () => TransferObjects },
1213
- { no: 3, name: "split_coins", kind: "message", oneof: "command", T: () => SplitCoins },
1214
- { no: 4, name: "merge_coins", kind: "message", oneof: "command", T: () => MergeCoins },
1215
- { no: 5, name: "publish", kind: "message", oneof: "command", T: () => Publish },
1216
- { no: 6, name: "make_move_vector", kind: "message", oneof: "command", T: () => MakeMoveVector },
1217
- { no: 7, name: "upgrade", kind: "message", oneof: "command", T: () => Upgrade }
1218
- ]);
1219
- }
1309
+ constructor() {
1310
+ super('sui.rpc.v2.Command', [
1311
+ { no: 1, name: 'move_call', kind: 'message', oneof: 'command', T: () => MoveCall },
1312
+ {
1313
+ no: 2,
1314
+ name: 'transfer_objects',
1315
+ kind: 'message',
1316
+ oneof: 'command',
1317
+ T: () => TransferObjects,
1318
+ },
1319
+ { no: 3, name: 'split_coins', kind: 'message', oneof: 'command', T: () => SplitCoins },
1320
+ { no: 4, name: 'merge_coins', kind: 'message', oneof: 'command', T: () => MergeCoins },
1321
+ { no: 5, name: 'publish', kind: 'message', oneof: 'command', T: () => Publish },
1322
+ {
1323
+ no: 6,
1324
+ name: 'make_move_vector',
1325
+ kind: 'message',
1326
+ oneof: 'command',
1327
+ T: () => MakeMoveVector,
1328
+ },
1329
+ { no: 7, name: 'upgrade', kind: 'message', oneof: 'command', T: () => Upgrade },
1330
+ ]);
1331
+ }
1220
1332
  }
1221
1333
  /**
1222
1334
  * @generated MessageType for protobuf message sui.rpc.v2.Command
@@ -1224,15 +1336,27 @@ class Command$Type extends MessageType<Command> {
1224
1336
  export const Command = new Command$Type();
1225
1337
  // @generated message type with reflection information, may provide speed optimized methods
1226
1338
  class MoveCall$Type extends MessageType<MoveCall> {
1227
- constructor() {
1228
- super("sui.rpc.v2.MoveCall", [
1229
- { no: 1, name: "package", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1230
- { no: 2, name: "module", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1231
- { no: 3, name: "function", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1232
- { no: 4, name: "type_arguments", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1233
- { no: 5, name: "arguments", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Argument }
1234
- ]);
1235
- }
1339
+ constructor() {
1340
+ super('sui.rpc.v2.MoveCall', [
1341
+ { no: 1, name: 'package', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
1342
+ { no: 2, name: 'module', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
1343
+ { no: 3, name: 'function', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
1344
+ {
1345
+ no: 4,
1346
+ name: 'type_arguments',
1347
+ kind: 'scalar',
1348
+ repeat: 2 /*RepeatType.UNPACKED*/,
1349
+ T: 9 /*ScalarType.STRING*/,
1350
+ },
1351
+ {
1352
+ no: 5,
1353
+ name: 'arguments',
1354
+ kind: 'message',
1355
+ repeat: 1 /*RepeatType.PACKED*/,
1356
+ T: () => Argument,
1357
+ },
1358
+ ]);
1359
+ }
1236
1360
  }
1237
1361
  /**
1238
1362
  * @generated MessageType for protobuf message sui.rpc.v2.MoveCall
@@ -1240,12 +1364,18 @@ class MoveCall$Type extends MessageType<MoveCall> {
1240
1364
  export const MoveCall = new MoveCall$Type();
1241
1365
  // @generated message type with reflection information, may provide speed optimized methods
1242
1366
  class TransferObjects$Type extends MessageType<TransferObjects> {
1243
- constructor() {
1244
- super("sui.rpc.v2.TransferObjects", [
1245
- { no: 1, name: "objects", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Argument },
1246
- { no: 2, name: "address", kind: "message", T: () => Argument }
1247
- ]);
1248
- }
1367
+ constructor() {
1368
+ super('sui.rpc.v2.TransferObjects', [
1369
+ {
1370
+ no: 1,
1371
+ name: 'objects',
1372
+ kind: 'message',
1373
+ repeat: 1 /*RepeatType.PACKED*/,
1374
+ T: () => Argument,
1375
+ },
1376
+ { no: 2, name: 'address', kind: 'message', T: () => Argument },
1377
+ ]);
1378
+ }
1249
1379
  }
1250
1380
  /**
1251
1381
  * @generated MessageType for protobuf message sui.rpc.v2.TransferObjects
@@ -1253,12 +1383,18 @@ class TransferObjects$Type extends MessageType<TransferObjects> {
1253
1383
  export const TransferObjects = new TransferObjects$Type();
1254
1384
  // @generated message type with reflection information, may provide speed optimized methods
1255
1385
  class SplitCoins$Type extends MessageType<SplitCoins> {
1256
- constructor() {
1257
- super("sui.rpc.v2.SplitCoins", [
1258
- { no: 1, name: "coin", kind: "message", T: () => Argument },
1259
- { no: 2, name: "amounts", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Argument }
1260
- ]);
1261
- }
1386
+ constructor() {
1387
+ super('sui.rpc.v2.SplitCoins', [
1388
+ { no: 1, name: 'coin', kind: 'message', T: () => Argument },
1389
+ {
1390
+ no: 2,
1391
+ name: 'amounts',
1392
+ kind: 'message',
1393
+ repeat: 1 /*RepeatType.PACKED*/,
1394
+ T: () => Argument,
1395
+ },
1396
+ ]);
1397
+ }
1262
1398
  }
1263
1399
  /**
1264
1400
  * @generated MessageType for protobuf message sui.rpc.v2.SplitCoins
@@ -1266,12 +1402,18 @@ class SplitCoins$Type extends MessageType<SplitCoins> {
1266
1402
  export const SplitCoins = new SplitCoins$Type();
1267
1403
  // @generated message type with reflection information, may provide speed optimized methods
1268
1404
  class MergeCoins$Type extends MessageType<MergeCoins> {
1269
- constructor() {
1270
- super("sui.rpc.v2.MergeCoins", [
1271
- { no: 1, name: "coin", kind: "message", T: () => Argument },
1272
- { no: 2, name: "coins_to_merge", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Argument }
1273
- ]);
1274
- }
1405
+ constructor() {
1406
+ super('sui.rpc.v2.MergeCoins', [
1407
+ { no: 1, name: 'coin', kind: 'message', T: () => Argument },
1408
+ {
1409
+ no: 2,
1410
+ name: 'coins_to_merge',
1411
+ kind: 'message',
1412
+ repeat: 1 /*RepeatType.PACKED*/,
1413
+ T: () => Argument,
1414
+ },
1415
+ ]);
1416
+ }
1275
1417
  }
1276
1418
  /**
1277
1419
  * @generated MessageType for protobuf message sui.rpc.v2.MergeCoins
@@ -1279,12 +1421,24 @@ class MergeCoins$Type extends MessageType<MergeCoins> {
1279
1421
  export const MergeCoins = new MergeCoins$Type();
1280
1422
  // @generated message type with reflection information, may provide speed optimized methods
1281
1423
  class Publish$Type extends MessageType<Publish> {
1282
- constructor() {
1283
- super("sui.rpc.v2.Publish", [
1284
- { no: 1, name: "modules", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
1285
- { no: 2, name: "dependencies", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
1286
- ]);
1287
- }
1424
+ constructor() {
1425
+ super('sui.rpc.v2.Publish', [
1426
+ {
1427
+ no: 1,
1428
+ name: 'modules',
1429
+ kind: 'scalar',
1430
+ repeat: 2 /*RepeatType.UNPACKED*/,
1431
+ T: 12 /*ScalarType.BYTES*/,
1432
+ },
1433
+ {
1434
+ no: 2,
1435
+ name: 'dependencies',
1436
+ kind: 'scalar',
1437
+ repeat: 2 /*RepeatType.UNPACKED*/,
1438
+ T: 9 /*ScalarType.STRING*/,
1439
+ },
1440
+ ]);
1441
+ }
1288
1442
  }
1289
1443
  /**
1290
1444
  * @generated MessageType for protobuf message sui.rpc.v2.Publish
@@ -1292,12 +1446,18 @@ class Publish$Type extends MessageType<Publish> {
1292
1446
  export const Publish = new Publish$Type();
1293
1447
  // @generated message type with reflection information, may provide speed optimized methods
1294
1448
  class MakeMoveVector$Type extends MessageType<MakeMoveVector> {
1295
- constructor() {
1296
- super("sui.rpc.v2.MakeMoveVector", [
1297
- { no: 1, name: "element_type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1298
- { no: 2, name: "elements", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Argument }
1299
- ]);
1300
- }
1449
+ constructor() {
1450
+ super('sui.rpc.v2.MakeMoveVector', [
1451
+ { no: 1, name: 'element_type', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
1452
+ {
1453
+ no: 2,
1454
+ name: 'elements',
1455
+ kind: 'message',
1456
+ repeat: 1 /*RepeatType.PACKED*/,
1457
+ T: () => Argument,
1458
+ },
1459
+ ]);
1460
+ }
1301
1461
  }
1302
1462
  /**
1303
1463
  * @generated MessageType for protobuf message sui.rpc.v2.MakeMoveVector
@@ -1305,14 +1465,26 @@ class MakeMoveVector$Type extends MessageType<MakeMoveVector> {
1305
1465
  export const MakeMoveVector = new MakeMoveVector$Type();
1306
1466
  // @generated message type with reflection information, may provide speed optimized methods
1307
1467
  class Upgrade$Type extends MessageType<Upgrade> {
1308
- constructor() {
1309
- super("sui.rpc.v2.Upgrade", [
1310
- { no: 1, name: "modules", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
1311
- { no: 2, name: "dependencies", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1312
- { no: 3, name: "package", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1313
- { no: 4, name: "ticket", kind: "message", T: () => Argument }
1314
- ]);
1315
- }
1468
+ constructor() {
1469
+ super('sui.rpc.v2.Upgrade', [
1470
+ {
1471
+ no: 1,
1472
+ name: 'modules',
1473
+ kind: 'scalar',
1474
+ repeat: 2 /*RepeatType.UNPACKED*/,
1475
+ T: 12 /*ScalarType.BYTES*/,
1476
+ },
1477
+ {
1478
+ no: 2,
1479
+ name: 'dependencies',
1480
+ kind: 'scalar',
1481
+ repeat: 2 /*RepeatType.UNPACKED*/,
1482
+ T: 9 /*ScalarType.STRING*/,
1483
+ },
1484
+ { no: 3, name: 'package', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
1485
+ { no: 4, name: 'ticket', kind: 'message', T: () => Argument },
1486
+ ]);
1487
+ }
1316
1488
  }
1317
1489
  /**
1318
1490
  * @generated MessageType for protobuf message sui.rpc.v2.Upgrade
@@ -1320,14 +1492,35 @@ class Upgrade$Type extends MessageType<Upgrade> {
1320
1492
  export const Upgrade = new Upgrade$Type();
1321
1493
  // @generated message type with reflection information, may provide speed optimized methods
1322
1494
  class RandomnessStateUpdate$Type extends MessageType<RandomnessStateUpdate> {
1323
- constructor() {
1324
- super("sui.rpc.v2.RandomnessStateUpdate", [
1325
- { no: 1, name: "epoch", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1326
- { no: 2, name: "randomness_round", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1327
- { no: 3, name: "random_bytes", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
1328
- { no: 4, name: "randomness_object_initial_shared_version", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
1329
- ]);
1330
- }
1495
+ constructor() {
1496
+ super('sui.rpc.v2.RandomnessStateUpdate', [
1497
+ {
1498
+ no: 1,
1499
+ name: 'epoch',
1500
+ kind: 'scalar',
1501
+ opt: true,
1502
+ T: 4 /*ScalarType.UINT64*/,
1503
+ L: 0 /*LongType.BIGINT*/,
1504
+ },
1505
+ {
1506
+ no: 2,
1507
+ name: 'randomness_round',
1508
+ kind: 'scalar',
1509
+ opt: true,
1510
+ T: 4 /*ScalarType.UINT64*/,
1511
+ L: 0 /*LongType.BIGINT*/,
1512
+ },
1513
+ { no: 3, name: 'random_bytes', kind: 'scalar', opt: true, T: 12 /*ScalarType.BYTES*/ },
1514
+ {
1515
+ no: 4,
1516
+ name: 'randomness_object_initial_shared_version',
1517
+ kind: 'scalar',
1518
+ opt: true,
1519
+ T: 4 /*ScalarType.UINT64*/,
1520
+ L: 0 /*LongType.BIGINT*/,
1521
+ },
1522
+ ]);
1523
+ }
1331
1524
  }
1332
1525
  /**
1333
1526
  * @generated MessageType for protobuf message sui.rpc.v2.RandomnessStateUpdate
@@ -1335,18 +1528,66 @@ class RandomnessStateUpdate$Type extends MessageType<RandomnessStateUpdate> {
1335
1528
  export const RandomnessStateUpdate = new RandomnessStateUpdate$Type();
1336
1529
  // @generated message type with reflection information, may provide speed optimized methods
1337
1530
  class ChangeEpoch$Type extends MessageType<ChangeEpoch> {
1338
- constructor() {
1339
- super("sui.rpc.v2.ChangeEpoch", [
1340
- { no: 1, name: "epoch", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1341
- { no: 2, name: "protocol_version", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1342
- { no: 3, name: "storage_charge", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1343
- { no: 4, name: "computation_charge", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1344
- { no: 5, name: "storage_rebate", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1345
- { no: 6, name: "non_refundable_storage_fee", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1346
- { no: 7, name: "epoch_start_timestamp", kind: "message", T: () => Timestamp },
1347
- { no: 8, name: "system_packages", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => SystemPackage }
1348
- ]);
1349
- }
1531
+ constructor() {
1532
+ super('sui.rpc.v2.ChangeEpoch', [
1533
+ {
1534
+ no: 1,
1535
+ name: 'epoch',
1536
+ kind: 'scalar',
1537
+ opt: true,
1538
+ T: 4 /*ScalarType.UINT64*/,
1539
+ L: 0 /*LongType.BIGINT*/,
1540
+ },
1541
+ {
1542
+ no: 2,
1543
+ name: 'protocol_version',
1544
+ kind: 'scalar',
1545
+ opt: true,
1546
+ T: 4 /*ScalarType.UINT64*/,
1547
+ L: 0 /*LongType.BIGINT*/,
1548
+ },
1549
+ {
1550
+ no: 3,
1551
+ name: 'storage_charge',
1552
+ kind: 'scalar',
1553
+ opt: true,
1554
+ T: 4 /*ScalarType.UINT64*/,
1555
+ L: 0 /*LongType.BIGINT*/,
1556
+ },
1557
+ {
1558
+ no: 4,
1559
+ name: 'computation_charge',
1560
+ kind: 'scalar',
1561
+ opt: true,
1562
+ T: 4 /*ScalarType.UINT64*/,
1563
+ L: 0 /*LongType.BIGINT*/,
1564
+ },
1565
+ {
1566
+ no: 5,
1567
+ name: 'storage_rebate',
1568
+ kind: 'scalar',
1569
+ opt: true,
1570
+ T: 4 /*ScalarType.UINT64*/,
1571
+ L: 0 /*LongType.BIGINT*/,
1572
+ },
1573
+ {
1574
+ no: 6,
1575
+ name: 'non_refundable_storage_fee',
1576
+ kind: 'scalar',
1577
+ opt: true,
1578
+ T: 4 /*ScalarType.UINT64*/,
1579
+ L: 0 /*LongType.BIGINT*/,
1580
+ },
1581
+ { no: 7, name: 'epoch_start_timestamp', kind: 'message', T: () => Timestamp },
1582
+ {
1583
+ no: 8,
1584
+ name: 'system_packages',
1585
+ kind: 'message',
1586
+ repeat: 1 /*RepeatType.PACKED*/,
1587
+ T: () => SystemPackage,
1588
+ },
1589
+ ]);
1590
+ }
1350
1591
  }
1351
1592
  /**
1352
1593
  * @generated MessageType for protobuf message sui.rpc.v2.ChangeEpoch
@@ -1354,13 +1595,32 @@ class ChangeEpoch$Type extends MessageType<ChangeEpoch> {
1354
1595
  export const ChangeEpoch = new ChangeEpoch$Type();
1355
1596
  // @generated message type with reflection information, may provide speed optimized methods
1356
1597
  class SystemPackage$Type extends MessageType<SystemPackage> {
1357
- constructor() {
1358
- super("sui.rpc.v2.SystemPackage", [
1359
- { no: 1, name: "version", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1360
- { no: 2, name: "modules", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
1361
- { no: 3, name: "dependencies", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
1362
- ]);
1363
- }
1598
+ constructor() {
1599
+ super('sui.rpc.v2.SystemPackage', [
1600
+ {
1601
+ no: 1,
1602
+ name: 'version',
1603
+ kind: 'scalar',
1604
+ opt: true,
1605
+ T: 4 /*ScalarType.UINT64*/,
1606
+ L: 0 /*LongType.BIGINT*/,
1607
+ },
1608
+ {
1609
+ no: 2,
1610
+ name: 'modules',
1611
+ kind: 'scalar',
1612
+ repeat: 2 /*RepeatType.UNPACKED*/,
1613
+ T: 12 /*ScalarType.BYTES*/,
1614
+ },
1615
+ {
1616
+ no: 3,
1617
+ name: 'dependencies',
1618
+ kind: 'scalar',
1619
+ repeat: 2 /*RepeatType.UNPACKED*/,
1620
+ T: 9 /*ScalarType.STRING*/,
1621
+ },
1622
+ ]);
1623
+ }
1364
1624
  }
1365
1625
  /**
1366
1626
  * @generated MessageType for protobuf message sui.rpc.v2.SystemPackage
@@ -1368,11 +1628,11 @@ class SystemPackage$Type extends MessageType<SystemPackage> {
1368
1628
  export const SystemPackage = new SystemPackage$Type();
1369
1629
  // @generated message type with reflection information, may provide speed optimized methods
1370
1630
  class GenesisTransaction$Type extends MessageType<GenesisTransaction> {
1371
- constructor() {
1372
- super("sui.rpc.v2.GenesisTransaction", [
1373
- { no: 1, name: "objects", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Object }
1374
- ]);
1375
- }
1631
+ constructor() {
1632
+ super('sui.rpc.v2.GenesisTransaction', [
1633
+ { no: 1, name: 'objects', kind: 'message', repeat: 1 /*RepeatType.PACKED*/, T: () => Object },
1634
+ ]);
1635
+ }
1376
1636
  }
1377
1637
  /**
1378
1638
  * @generated MessageType for protobuf message sui.rpc.v2.GenesisTransaction
@@ -1380,17 +1640,55 @@ class GenesisTransaction$Type extends MessageType<GenesisTransaction> {
1380
1640
  export const GenesisTransaction = new GenesisTransaction$Type();
1381
1641
  // @generated message type with reflection information, may provide speed optimized methods
1382
1642
  class ConsensusCommitPrologue$Type extends MessageType<ConsensusCommitPrologue> {
1383
- constructor() {
1384
- super("sui.rpc.v2.ConsensusCommitPrologue", [
1385
- { no: 1, name: "epoch", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1386
- { no: 2, name: "round", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1387
- { no: 3, name: "commit_timestamp", kind: "message", T: () => Timestamp },
1388
- { no: 4, name: "consensus_commit_digest", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1389
- { no: 5, name: "sub_dag_index", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1390
- { no: 6, name: "consensus_determined_version_assignments", kind: "message", T: () => ConsensusDeterminedVersionAssignments },
1391
- { no: 7, name: "additional_state_digest", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
1392
- ]);
1393
- }
1643
+ constructor() {
1644
+ super('sui.rpc.v2.ConsensusCommitPrologue', [
1645
+ {
1646
+ no: 1,
1647
+ name: 'epoch',
1648
+ kind: 'scalar',
1649
+ opt: true,
1650
+ T: 4 /*ScalarType.UINT64*/,
1651
+ L: 0 /*LongType.BIGINT*/,
1652
+ },
1653
+ {
1654
+ no: 2,
1655
+ name: 'round',
1656
+ kind: 'scalar',
1657
+ opt: true,
1658
+ T: 4 /*ScalarType.UINT64*/,
1659
+ L: 0 /*LongType.BIGINT*/,
1660
+ },
1661
+ { no: 3, name: 'commit_timestamp', kind: 'message', T: () => Timestamp },
1662
+ {
1663
+ no: 4,
1664
+ name: 'consensus_commit_digest',
1665
+ kind: 'scalar',
1666
+ opt: true,
1667
+ T: 9 /*ScalarType.STRING*/,
1668
+ },
1669
+ {
1670
+ no: 5,
1671
+ name: 'sub_dag_index',
1672
+ kind: 'scalar',
1673
+ opt: true,
1674
+ T: 4 /*ScalarType.UINT64*/,
1675
+ L: 0 /*LongType.BIGINT*/,
1676
+ },
1677
+ {
1678
+ no: 6,
1679
+ name: 'consensus_determined_version_assignments',
1680
+ kind: 'message',
1681
+ T: () => ConsensusDeterminedVersionAssignments,
1682
+ },
1683
+ {
1684
+ no: 7,
1685
+ name: 'additional_state_digest',
1686
+ kind: 'scalar',
1687
+ opt: true,
1688
+ T: 9 /*ScalarType.STRING*/,
1689
+ },
1690
+ ]);
1691
+ }
1394
1692
  }
1395
1693
  /**
1396
1694
  * @generated MessageType for protobuf message sui.rpc.v2.ConsensusCommitPrologue
@@ -1398,13 +1696,27 @@ class ConsensusCommitPrologue$Type extends MessageType<ConsensusCommitPrologue>
1398
1696
  export const ConsensusCommitPrologue = new ConsensusCommitPrologue$Type();
1399
1697
  // @generated message type with reflection information, may provide speed optimized methods
1400
1698
  class VersionAssignment$Type extends MessageType<VersionAssignment> {
1401
- constructor() {
1402
- super("sui.rpc.v2.VersionAssignment", [
1403
- { no: 1, name: "object_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1404
- { no: 2, name: "start_version", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1405
- { no: 3, name: "version", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
1406
- ]);
1407
- }
1699
+ constructor() {
1700
+ super('sui.rpc.v2.VersionAssignment', [
1701
+ { no: 1, name: 'object_id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
1702
+ {
1703
+ no: 2,
1704
+ name: 'start_version',
1705
+ kind: 'scalar',
1706
+ opt: true,
1707
+ T: 4 /*ScalarType.UINT64*/,
1708
+ L: 0 /*LongType.BIGINT*/,
1709
+ },
1710
+ {
1711
+ no: 3,
1712
+ name: 'version',
1713
+ kind: 'scalar',
1714
+ opt: true,
1715
+ T: 4 /*ScalarType.UINT64*/,
1716
+ L: 0 /*LongType.BIGINT*/,
1717
+ },
1718
+ ]);
1719
+ }
1408
1720
  }
1409
1721
  /**
1410
1722
  * @generated MessageType for protobuf message sui.rpc.v2.VersionAssignment
@@ -1412,12 +1724,18 @@ class VersionAssignment$Type extends MessageType<VersionAssignment> {
1412
1724
  export const VersionAssignment = new VersionAssignment$Type();
1413
1725
  // @generated message type with reflection information, may provide speed optimized methods
1414
1726
  class CanceledTransaction$Type extends MessageType<CanceledTransaction> {
1415
- constructor() {
1416
- super("sui.rpc.v2.CanceledTransaction", [
1417
- { no: 1, name: "digest", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1418
- { no: 2, name: "version_assignments", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => VersionAssignment }
1419
- ]);
1420
- }
1727
+ constructor() {
1728
+ super('sui.rpc.v2.CanceledTransaction', [
1729
+ { no: 1, name: 'digest', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
1730
+ {
1731
+ no: 2,
1732
+ name: 'version_assignments',
1733
+ kind: 'message',
1734
+ repeat: 1 /*RepeatType.PACKED*/,
1735
+ T: () => VersionAssignment,
1736
+ },
1737
+ ]);
1738
+ }
1421
1739
  }
1422
1740
  /**
1423
1741
  * @generated MessageType for protobuf message sui.rpc.v2.CanceledTransaction
@@ -1425,27 +1743,61 @@ class CanceledTransaction$Type extends MessageType<CanceledTransaction> {
1425
1743
  export const CanceledTransaction = new CanceledTransaction$Type();
1426
1744
  // @generated message type with reflection information, may provide speed optimized methods
1427
1745
  class ConsensusDeterminedVersionAssignments$Type extends MessageType<ConsensusDeterminedVersionAssignments> {
1428
- constructor() {
1429
- super("sui.rpc.v2.ConsensusDeterminedVersionAssignments", [
1430
- { no: 1, name: "version", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
1431
- { no: 3, name: "canceled_transactions", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => CanceledTransaction }
1432
- ]);
1433
- }
1746
+ constructor() {
1747
+ super('sui.rpc.v2.ConsensusDeterminedVersionAssignments', [
1748
+ { no: 1, name: 'version', kind: 'scalar', opt: true, T: 5 /*ScalarType.INT32*/ },
1749
+ {
1750
+ no: 3,
1751
+ name: 'canceled_transactions',
1752
+ kind: 'message',
1753
+ repeat: 1 /*RepeatType.PACKED*/,
1754
+ T: () => CanceledTransaction,
1755
+ },
1756
+ ]);
1757
+ }
1434
1758
  }
1435
1759
  /**
1436
1760
  * @generated MessageType for protobuf message sui.rpc.v2.ConsensusDeterminedVersionAssignments
1437
1761
  */
1438
- export const ConsensusDeterminedVersionAssignments = new ConsensusDeterminedVersionAssignments$Type();
1762
+ export const ConsensusDeterminedVersionAssignments =
1763
+ new ConsensusDeterminedVersionAssignments$Type();
1439
1764
  // @generated message type with reflection information, may provide speed optimized methods
1440
1765
  class AuthenticatorStateUpdate$Type extends MessageType<AuthenticatorStateUpdate> {
1441
- constructor() {
1442
- super("sui.rpc.v2.AuthenticatorStateUpdate", [
1443
- { no: 1, name: "epoch", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1444
- { no: 2, name: "round", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1445
- { no: 3, name: "new_active_jwks", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ActiveJwk },
1446
- { no: 4, name: "authenticator_object_initial_shared_version", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
1447
- ]);
1448
- }
1766
+ constructor() {
1767
+ super('sui.rpc.v2.AuthenticatorStateUpdate', [
1768
+ {
1769
+ no: 1,
1770
+ name: 'epoch',
1771
+ kind: 'scalar',
1772
+ opt: true,
1773
+ T: 4 /*ScalarType.UINT64*/,
1774
+ L: 0 /*LongType.BIGINT*/,
1775
+ },
1776
+ {
1777
+ no: 2,
1778
+ name: 'round',
1779
+ kind: 'scalar',
1780
+ opt: true,
1781
+ T: 4 /*ScalarType.UINT64*/,
1782
+ L: 0 /*LongType.BIGINT*/,
1783
+ },
1784
+ {
1785
+ no: 3,
1786
+ name: 'new_active_jwks',
1787
+ kind: 'message',
1788
+ repeat: 1 /*RepeatType.PACKED*/,
1789
+ T: () => ActiveJwk,
1790
+ },
1791
+ {
1792
+ no: 4,
1793
+ name: 'authenticator_object_initial_shared_version',
1794
+ kind: 'scalar',
1795
+ opt: true,
1796
+ T: 4 /*ScalarType.UINT64*/,
1797
+ L: 0 /*LongType.BIGINT*/,
1798
+ },
1799
+ ]);
1800
+ }
1449
1801
  }
1450
1802
  /**
1451
1803
  * @generated MessageType for protobuf message sui.rpc.v2.AuthenticatorStateUpdate
@@ -1453,13 +1805,20 @@ class AuthenticatorStateUpdate$Type extends MessageType<AuthenticatorStateUpdate
1453
1805
  export const AuthenticatorStateUpdate = new AuthenticatorStateUpdate$Type();
1454
1806
  // @generated message type with reflection information, may provide speed optimized methods
1455
1807
  class ActiveJwk$Type extends MessageType<ActiveJwk> {
1456
- constructor() {
1457
- super("sui.rpc.v2.ActiveJwk", [
1458
- { no: 1, name: "id", kind: "message", T: () => JwkId },
1459
- { no: 2, name: "jwk", kind: "message", T: () => Jwk },
1460
- { no: 3, name: "epoch", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
1461
- ]);
1462
- }
1808
+ constructor() {
1809
+ super('sui.rpc.v2.ActiveJwk', [
1810
+ { no: 1, name: 'id', kind: 'message', T: () => JwkId },
1811
+ { no: 2, name: 'jwk', kind: 'message', T: () => Jwk },
1812
+ {
1813
+ no: 3,
1814
+ name: 'epoch',
1815
+ kind: 'scalar',
1816
+ opt: true,
1817
+ T: 4 /*ScalarType.UINT64*/,
1818
+ L: 0 /*LongType.BIGINT*/,
1819
+ },
1820
+ ]);
1821
+ }
1463
1822
  }
1464
1823
  /**
1465
1824
  * @generated MessageType for protobuf message sui.rpc.v2.ActiveJwk
@@ -1467,11 +1826,17 @@ class ActiveJwk$Type extends MessageType<ActiveJwk> {
1467
1826
  export const ActiveJwk = new ActiveJwk$Type();
1468
1827
  // @generated message type with reflection information, may provide speed optimized methods
1469
1828
  class EndOfEpochTransaction$Type extends MessageType<EndOfEpochTransaction> {
1470
- constructor() {
1471
- super("sui.rpc.v2.EndOfEpochTransaction", [
1472
- { no: 1, name: "transactions", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => EndOfEpochTransactionKind }
1473
- ]);
1474
- }
1829
+ constructor() {
1830
+ super('sui.rpc.v2.EndOfEpochTransaction', [
1831
+ {
1832
+ no: 1,
1833
+ name: 'transactions',
1834
+ kind: 'message',
1835
+ repeat: 1 /*RepeatType.PACKED*/,
1836
+ T: () => EndOfEpochTransactionKind,
1837
+ },
1838
+ ]);
1839
+ }
1475
1840
  }
1476
1841
  /**
1477
1842
  * @generated MessageType for protobuf message sui.rpc.v2.EndOfEpochTransaction
@@ -1479,16 +1844,41 @@ class EndOfEpochTransaction$Type extends MessageType<EndOfEpochTransaction> {
1479
1844
  export const EndOfEpochTransaction = new EndOfEpochTransaction$Type();
1480
1845
  // @generated message type with reflection information, may provide speed optimized methods
1481
1846
  class EndOfEpochTransactionKind$Type extends MessageType<EndOfEpochTransactionKind> {
1482
- constructor() {
1483
- super("sui.rpc.v2.EndOfEpochTransactionKind", [
1484
- { no: 1, name: "kind", kind: "enum", opt: true, T: () => ["sui.rpc.v2.EndOfEpochTransactionKind.Kind", EndOfEpochTransactionKind_Kind] },
1485
- { no: 2, name: "change_epoch", kind: "message", oneof: "data", T: () => ChangeEpoch },
1486
- { no: 3, name: "authenticator_state_expire", kind: "message", oneof: "data", T: () => AuthenticatorStateExpire },
1487
- { no: 4, name: "execution_time_observations", kind: "message", oneof: "data", T: () => ExecutionTimeObservations },
1488
- { no: 5, name: "bridge_chain_id", kind: "scalar", oneof: "data", T: 9 /*ScalarType.STRING*/ },
1489
- { no: 6, name: "bridge_object_version", kind: "scalar", oneof: "data", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
1490
- ]);
1491
- }
1847
+ constructor() {
1848
+ super('sui.rpc.v2.EndOfEpochTransactionKind', [
1849
+ {
1850
+ no: 1,
1851
+ name: 'kind',
1852
+ kind: 'enum',
1853
+ opt: true,
1854
+ T: () => ['sui.rpc.v2.EndOfEpochTransactionKind.Kind', EndOfEpochTransactionKind_Kind],
1855
+ },
1856
+ { no: 2, name: 'change_epoch', kind: 'message', oneof: 'data', T: () => ChangeEpoch },
1857
+ {
1858
+ no: 3,
1859
+ name: 'authenticator_state_expire',
1860
+ kind: 'message',
1861
+ oneof: 'data',
1862
+ T: () => AuthenticatorStateExpire,
1863
+ },
1864
+ {
1865
+ no: 4,
1866
+ name: 'execution_time_observations',
1867
+ kind: 'message',
1868
+ oneof: 'data',
1869
+ T: () => ExecutionTimeObservations,
1870
+ },
1871
+ { no: 5, name: 'bridge_chain_id', kind: 'scalar', oneof: 'data', T: 9 /*ScalarType.STRING*/ },
1872
+ {
1873
+ no: 6,
1874
+ name: 'bridge_object_version',
1875
+ kind: 'scalar',
1876
+ oneof: 'data',
1877
+ T: 4 /*ScalarType.UINT64*/,
1878
+ L: 0 /*LongType.BIGINT*/,
1879
+ },
1880
+ ]);
1881
+ }
1492
1882
  }
1493
1883
  /**
1494
1884
  * @generated MessageType for protobuf message sui.rpc.v2.EndOfEpochTransactionKind
@@ -1496,12 +1886,26 @@ class EndOfEpochTransactionKind$Type extends MessageType<EndOfEpochTransactionKi
1496
1886
  export const EndOfEpochTransactionKind = new EndOfEpochTransactionKind$Type();
1497
1887
  // @generated message type with reflection information, may provide speed optimized methods
1498
1888
  class AuthenticatorStateExpire$Type extends MessageType<AuthenticatorStateExpire> {
1499
- constructor() {
1500
- super("sui.rpc.v2.AuthenticatorStateExpire", [
1501
- { no: 1, name: "min_epoch", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1502
- { no: 2, name: "authenticator_object_initial_shared_version", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
1503
- ]);
1504
- }
1889
+ constructor() {
1890
+ super('sui.rpc.v2.AuthenticatorStateExpire', [
1891
+ {
1892
+ no: 1,
1893
+ name: 'min_epoch',
1894
+ kind: 'scalar',
1895
+ opt: true,
1896
+ T: 4 /*ScalarType.UINT64*/,
1897
+ L: 0 /*LongType.BIGINT*/,
1898
+ },
1899
+ {
1900
+ no: 2,
1901
+ name: 'authenticator_object_initial_shared_version',
1902
+ kind: 'scalar',
1903
+ opt: true,
1904
+ T: 4 /*ScalarType.UINT64*/,
1905
+ L: 0 /*LongType.BIGINT*/,
1906
+ },
1907
+ ]);
1908
+ }
1505
1909
  }
1506
1910
  /**
1507
1911
  * @generated MessageType for protobuf message sui.rpc.v2.AuthenticatorStateExpire
@@ -1509,12 +1913,18 @@ class AuthenticatorStateExpire$Type extends MessageType<AuthenticatorStateExpire
1509
1913
  export const AuthenticatorStateExpire = new AuthenticatorStateExpire$Type();
1510
1914
  // @generated message type with reflection information, may provide speed optimized methods
1511
1915
  class ExecutionTimeObservations$Type extends MessageType<ExecutionTimeObservations> {
1512
- constructor() {
1513
- super("sui.rpc.v2.ExecutionTimeObservations", [
1514
- { no: 1, name: "version", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
1515
- { no: 2, name: "observations", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ExecutionTimeObservation }
1516
- ]);
1517
- }
1916
+ constructor() {
1917
+ super('sui.rpc.v2.ExecutionTimeObservations', [
1918
+ { no: 1, name: 'version', kind: 'scalar', opt: true, T: 5 /*ScalarType.INT32*/ },
1919
+ {
1920
+ no: 2,
1921
+ name: 'observations',
1922
+ kind: 'message',
1923
+ repeat: 1 /*RepeatType.PACKED*/,
1924
+ T: () => ExecutionTimeObservation,
1925
+ },
1926
+ ]);
1927
+ }
1518
1928
  }
1519
1929
  /**
1520
1930
  * @generated MessageType for protobuf message sui.rpc.v2.ExecutionTimeObservations
@@ -1522,13 +1932,28 @@ class ExecutionTimeObservations$Type extends MessageType<ExecutionTimeObservatio
1522
1932
  export const ExecutionTimeObservations = new ExecutionTimeObservations$Type();
1523
1933
  // @generated message type with reflection information, may provide speed optimized methods
1524
1934
  class ExecutionTimeObservation$Type extends MessageType<ExecutionTimeObservation> {
1525
- constructor() {
1526
- super("sui.rpc.v2.ExecutionTimeObservation", [
1527
- { no: 1, name: "kind", kind: "enum", opt: true, T: () => ["sui.rpc.v2.ExecutionTimeObservation.ExecutionTimeObservationKind", ExecutionTimeObservation_ExecutionTimeObservationKind] },
1528
- { no: 2, name: "move_entry_point", kind: "message", T: () => MoveCall },
1529
- { no: 3, name: "validator_observations", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ValidatorExecutionTimeObservation }
1530
- ]);
1531
- }
1935
+ constructor() {
1936
+ super('sui.rpc.v2.ExecutionTimeObservation', [
1937
+ {
1938
+ no: 1,
1939
+ name: 'kind',
1940
+ kind: 'enum',
1941
+ opt: true,
1942
+ T: () => [
1943
+ 'sui.rpc.v2.ExecutionTimeObservation.ExecutionTimeObservationKind',
1944
+ ExecutionTimeObservation_ExecutionTimeObservationKind,
1945
+ ],
1946
+ },
1947
+ { no: 2, name: 'move_entry_point', kind: 'message', T: () => MoveCall },
1948
+ {
1949
+ no: 3,
1950
+ name: 'validator_observations',
1951
+ kind: 'message',
1952
+ repeat: 1 /*RepeatType.PACKED*/,
1953
+ T: () => ValidatorExecutionTimeObservation,
1954
+ },
1955
+ ]);
1956
+ }
1532
1957
  }
1533
1958
  /**
1534
1959
  * @generated MessageType for protobuf message sui.rpc.v2.ExecutionTimeObservation
@@ -1536,12 +1961,12 @@ class ExecutionTimeObservation$Type extends MessageType<ExecutionTimeObservation
1536
1961
  export const ExecutionTimeObservation = new ExecutionTimeObservation$Type();
1537
1962
  // @generated message type with reflection information, may provide speed optimized methods
1538
1963
  class ValidatorExecutionTimeObservation$Type extends MessageType<ValidatorExecutionTimeObservation> {
1539
- constructor() {
1540
- super("sui.rpc.v2.ValidatorExecutionTimeObservation", [
1541
- { no: 1, name: "validator", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
1542
- { no: 2, name: "duration", kind: "message", T: () => Duration }
1543
- ]);
1544
- }
1964
+ constructor() {
1965
+ super('sui.rpc.v2.ValidatorExecutionTimeObservation', [
1966
+ { no: 1, name: 'validator', kind: 'scalar', opt: true, T: 12 /*ScalarType.BYTES*/ },
1967
+ { no: 2, name: 'duration', kind: 'message', T: () => Duration },
1968
+ ]);
1969
+ }
1545
1970
  }
1546
1971
  /**
1547
1972
  * @generated MessageType for protobuf message sui.rpc.v2.ValidatorExecutionTimeObservation