@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,202 +9,202 @@
9
9
  // Copyright (c) Mysten Labs, Inc.
10
10
  // SPDX-License-Identifier: Apache-2.0
11
11
  //
12
- import { MessageType } from "@protobuf-ts/runtime";
12
+ import { MessageType } from '@protobuf-ts/runtime';
13
13
  /**
14
14
  * @generated from protobuf message sui.rpc.v2.SystemState
15
15
  */
16
16
  export interface SystemState {
17
- /**
18
- * The version of the system state data structure type.
19
- *
20
- * @generated from protobuf field: optional uint64 version = 1;
21
- */
22
- version?: bigint;
23
- /**
24
- * The epoch id
25
- *
26
- * @generated from protobuf field: optional uint64 epoch = 2;
27
- */
28
- epoch?: bigint;
29
- /**
30
- * The protocol version
31
- *
32
- * @generated from protobuf field: optional uint64 protocol_version = 3;
33
- */
34
- protocolVersion?: bigint;
35
- /**
36
- * Information about the validators
37
- *
38
- * @generated from protobuf field: optional sui.rpc.v2.ValidatorSet validators = 4;
39
- */
40
- validators?: ValidatorSet;
41
- /**
42
- * Storage Fund info
43
- *
44
- * @generated from protobuf field: optional sui.rpc.v2.StorageFund storage_fund = 5;
45
- */
46
- storageFund?: StorageFund;
47
- /**
48
- * Set of system config parameters
49
- *
50
- * @generated from protobuf field: optional sui.rpc.v2.SystemParameters parameters = 6;
51
- */
52
- parameters?: SystemParameters;
53
- /**
54
- * The reference gas price for this epoch
55
- *
56
- * @generated from protobuf field: optional uint64 reference_gas_price = 7;
57
- */
58
- referenceGasPrice?: bigint;
59
- /**
60
- * A list of the records of validator reporting each other.
61
- *
62
- * There is an entry in this list for each validator that has been reported
63
- * at least once. Each record contains all the validators that reported
64
- * them. If a validator has never been reported they don't have a record in this list.
65
- * This lists persists across epoch: a peer continues being in a reported state until the
66
- * reporter doesn't explicitly remove their report.
67
- *
68
- * @generated from protobuf field: repeated sui.rpc.v2.ValidatorReportRecord validator_report_records = 8;
69
- */
70
- validatorReportRecords: ValidatorReportRecord[];
71
- /**
72
- * Schedule of stake subsidies given out each epoch.
73
- *
74
- * @generated from protobuf field: optional sui.rpc.v2.StakeSubsidy stake_subsidy = 9;
75
- */
76
- stakeSubsidy?: StakeSubsidy;
77
- /**
78
- * Whether the system is running in a downgraded safe mode due to a non-recoverable bug.
79
- * This is set whenever we failed to execute advance_epoch, and ended up executing advance_epoch_safe_mode.
80
- * It can be reset once we are able to successfully execute advance_epoch.
81
- * The rest of the fields starting with `safe_mode_` are accumulated during safe mode
82
- * when advance_epoch_safe_mode is executed. They will eventually be processed once we
83
- * are out of safe mode.
84
- *
85
- * @generated from protobuf field: optional bool safe_mode = 10;
86
- */
87
- safeMode?: boolean;
88
- /**
89
- * Storage rewards accumulated during safe_mode
90
- *
91
- * @generated from protobuf field: optional uint64 safe_mode_storage_rewards = 11;
92
- */
93
- safeModeStorageRewards?: bigint;
94
- /**
95
- * Computation rewards accumulated during safe_mode
96
- *
97
- * @generated from protobuf field: optional uint64 safe_mode_computation_rewards = 12;
98
- */
99
- safeModeComputationRewards?: bigint;
100
- /**
101
- * Storage rebates paid out during safe_mode
102
- *
103
- * @generated from protobuf field: optional uint64 safe_mode_storage_rebates = 13;
104
- */
105
- safeModeStorageRebates?: bigint;
106
- /**
107
- * Nonrefundable storage fees accumulated during safe_mode
108
- *
109
- * @generated from protobuf field: optional uint64 safe_mode_non_refundable_storage_fee = 14;
110
- */
111
- safeModeNonRefundableStorageFee?: bigint;
112
- /**
113
- * Unix timestamp of when this this epoch started
114
- *
115
- * @generated from protobuf field: optional uint64 epoch_start_timestamp_ms = 15;
116
- */
117
- epochStartTimestampMs?: bigint;
118
- /**
119
- * Any extra fields that's not defined statically.
120
- *
121
- * @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 16;
122
- */
123
- extraFields?: MoveTable;
17
+ /**
18
+ * The version of the system state data structure type.
19
+ *
20
+ * @generated from protobuf field: optional uint64 version = 1;
21
+ */
22
+ version?: bigint;
23
+ /**
24
+ * The epoch id
25
+ *
26
+ * @generated from protobuf field: optional uint64 epoch = 2;
27
+ */
28
+ epoch?: bigint;
29
+ /**
30
+ * The protocol version
31
+ *
32
+ * @generated from protobuf field: optional uint64 protocol_version = 3;
33
+ */
34
+ protocolVersion?: bigint;
35
+ /**
36
+ * Information about the validators
37
+ *
38
+ * @generated from protobuf field: optional sui.rpc.v2.ValidatorSet validators = 4;
39
+ */
40
+ validators?: ValidatorSet;
41
+ /**
42
+ * Storage Fund info
43
+ *
44
+ * @generated from protobuf field: optional sui.rpc.v2.StorageFund storage_fund = 5;
45
+ */
46
+ storageFund?: StorageFund;
47
+ /**
48
+ * Set of system config parameters
49
+ *
50
+ * @generated from protobuf field: optional sui.rpc.v2.SystemParameters parameters = 6;
51
+ */
52
+ parameters?: SystemParameters;
53
+ /**
54
+ * The reference gas price for this epoch
55
+ *
56
+ * @generated from protobuf field: optional uint64 reference_gas_price = 7;
57
+ */
58
+ referenceGasPrice?: bigint;
59
+ /**
60
+ * A list of the records of validator reporting each other.
61
+ *
62
+ * There is an entry in this list for each validator that has been reported
63
+ * at least once. Each record contains all the validators that reported
64
+ * them. If a validator has never been reported they don't have a record in this list.
65
+ * This lists persists across epoch: a peer continues being in a reported state until the
66
+ * reporter doesn't explicitly remove their report.
67
+ *
68
+ * @generated from protobuf field: repeated sui.rpc.v2.ValidatorReportRecord validator_report_records = 8;
69
+ */
70
+ validatorReportRecords: ValidatorReportRecord[];
71
+ /**
72
+ * Schedule of stake subsidies given out each epoch.
73
+ *
74
+ * @generated from protobuf field: optional sui.rpc.v2.StakeSubsidy stake_subsidy = 9;
75
+ */
76
+ stakeSubsidy?: StakeSubsidy;
77
+ /**
78
+ * Whether the system is running in a downgraded safe mode due to a non-recoverable bug.
79
+ * This is set whenever we failed to execute advance_epoch, and ended up executing advance_epoch_safe_mode.
80
+ * It can be reset once we are able to successfully execute advance_epoch.
81
+ * The rest of the fields starting with `safe_mode_` are accumulated during safe mode
82
+ * when advance_epoch_safe_mode is executed. They will eventually be processed once we
83
+ * are out of safe mode.
84
+ *
85
+ * @generated from protobuf field: optional bool safe_mode = 10;
86
+ */
87
+ safeMode?: boolean;
88
+ /**
89
+ * Storage rewards accumulated during safe_mode
90
+ *
91
+ * @generated from protobuf field: optional uint64 safe_mode_storage_rewards = 11;
92
+ */
93
+ safeModeStorageRewards?: bigint;
94
+ /**
95
+ * Computation rewards accumulated during safe_mode
96
+ *
97
+ * @generated from protobuf field: optional uint64 safe_mode_computation_rewards = 12;
98
+ */
99
+ safeModeComputationRewards?: bigint;
100
+ /**
101
+ * Storage rebates paid out during safe_mode
102
+ *
103
+ * @generated from protobuf field: optional uint64 safe_mode_storage_rebates = 13;
104
+ */
105
+ safeModeStorageRebates?: bigint;
106
+ /**
107
+ * Nonrefundable storage fees accumulated during safe_mode
108
+ *
109
+ * @generated from protobuf field: optional uint64 safe_mode_non_refundable_storage_fee = 14;
110
+ */
111
+ safeModeNonRefundableStorageFee?: bigint;
112
+ /**
113
+ * Unix timestamp of when this this epoch started
114
+ *
115
+ * @generated from protobuf field: optional uint64 epoch_start_timestamp_ms = 15;
116
+ */
117
+ epochStartTimestampMs?: bigint;
118
+ /**
119
+ * Any extra fields that's not defined statically.
120
+ *
121
+ * @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 16;
122
+ */
123
+ extraFields?: MoveTable;
124
124
  }
125
125
  /**
126
126
  * @generated from protobuf message sui.rpc.v2.ValidatorReportRecord
127
127
  */
128
128
  export interface ValidatorReportRecord {
129
- /**
130
- * The address of the validator being reported
131
- *
132
- * @generated from protobuf field: optional string reported = 1;
133
- */
134
- reported?: string;
135
- /**
136
- * The list of validator (addresses) that are reporting on the validator specified by `reported`
137
- *
138
- * @generated from protobuf field: repeated string reporters = 2;
139
- */
140
- reporters: string[];
129
+ /**
130
+ * The address of the validator being reported
131
+ *
132
+ * @generated from protobuf field: optional string reported = 1;
133
+ */
134
+ reported?: string;
135
+ /**
136
+ * The list of validator (addresses) that are reporting on the validator specified by `reported`
137
+ *
138
+ * @generated from protobuf field: repeated string reporters = 2;
139
+ */
140
+ reporters: string[];
141
141
  }
142
142
  /**
143
143
  * @generated from protobuf message sui.rpc.v2.SystemParameters
144
144
  */
145
145
  export interface SystemParameters {
146
- /**
147
- * The duration of an epoch, in milliseconds.
148
- *
149
- * @generated from protobuf field: optional uint64 epoch_duration_ms = 1;
150
- */
151
- epochDurationMs?: bigint;
152
- /**
153
- * The starting epoch in which stake subsidies start being paid out
154
- *
155
- * @generated from protobuf field: optional uint64 stake_subsidy_start_epoch = 2;
156
- */
157
- stakeSubsidyStartEpoch?: bigint;
158
- /**
159
- * Minimum number of active validators at any moment.
160
- *
161
- * @generated from protobuf field: optional uint64 min_validator_count = 3;
162
- */
163
- minValidatorCount?: bigint;
164
- /**
165
- * Maximum number of active validators at any moment.
166
- * We do not allow the number of validators in any epoch to go above this.
167
- *
168
- * @generated from protobuf field: optional uint64 max_validator_count = 4;
169
- */
170
- maxValidatorCount?: bigint;
171
- /**
172
- * Deprecated.
173
- * Lower-bound on the amount of stake required to become a validator.
174
- *
175
- * @generated from protobuf field: optional uint64 min_validator_joining_stake = 5;
176
- */
177
- minValidatorJoiningStake?: bigint;
178
- /**
179
- * Deprecated.
180
- * Validators with stake amount below `validator_low_stake_threshold` are considered to
181
- * have low stake and will be escorted out of the validator set after being below this
182
- * threshold for more than `validator_low_stake_grace_period` number of epochs.
183
- *
184
- * @generated from protobuf field: optional uint64 validator_low_stake_threshold = 6;
185
- */
186
- validatorLowStakeThreshold?: bigint;
187
- /**
188
- * Deprecated.
189
- * Validators with stake below `validator_very_low_stake_threshold` will be removed
190
- * immediately at epoch change, no grace period.
191
- *
192
- * @generated from protobuf field: optional uint64 validator_very_low_stake_threshold = 7;
193
- */
194
- validatorVeryLowStakeThreshold?: bigint;
195
- /**
196
- * A validator can have stake below `validator_low_stake_threshold`
197
- * for this many epochs before being kicked out.
198
- *
199
- * @generated from protobuf field: optional uint64 validator_low_stake_grace_period = 8;
200
- */
201
- validatorLowStakeGracePeriod?: bigint;
202
- /**
203
- * Any extra fields that are not defined statically.
204
- *
205
- * @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 9;
206
- */
207
- extraFields?: MoveTable;
146
+ /**
147
+ * The duration of an epoch, in milliseconds.
148
+ *
149
+ * @generated from protobuf field: optional uint64 epoch_duration_ms = 1;
150
+ */
151
+ epochDurationMs?: bigint;
152
+ /**
153
+ * The starting epoch in which stake subsidies start being paid out
154
+ *
155
+ * @generated from protobuf field: optional uint64 stake_subsidy_start_epoch = 2;
156
+ */
157
+ stakeSubsidyStartEpoch?: bigint;
158
+ /**
159
+ * Minimum number of active validators at any moment.
160
+ *
161
+ * @generated from protobuf field: optional uint64 min_validator_count = 3;
162
+ */
163
+ minValidatorCount?: bigint;
164
+ /**
165
+ * Maximum number of active validators at any moment.
166
+ * We do not allow the number of validators in any epoch to go above this.
167
+ *
168
+ * @generated from protobuf field: optional uint64 max_validator_count = 4;
169
+ */
170
+ maxValidatorCount?: bigint;
171
+ /**
172
+ * Deprecated.
173
+ * Lower-bound on the amount of stake required to become a validator.
174
+ *
175
+ * @generated from protobuf field: optional uint64 min_validator_joining_stake = 5;
176
+ */
177
+ minValidatorJoiningStake?: bigint;
178
+ /**
179
+ * Deprecated.
180
+ * Validators with stake amount below `validator_low_stake_threshold` are considered to
181
+ * have low stake and will be escorted out of the validator set after being below this
182
+ * threshold for more than `validator_low_stake_grace_period` number of epochs.
183
+ *
184
+ * @generated from protobuf field: optional uint64 validator_low_stake_threshold = 6;
185
+ */
186
+ validatorLowStakeThreshold?: bigint;
187
+ /**
188
+ * Deprecated.
189
+ * Validators with stake below `validator_very_low_stake_threshold` will be removed
190
+ * immediately at epoch change, no grace period.
191
+ *
192
+ * @generated from protobuf field: optional uint64 validator_very_low_stake_threshold = 7;
193
+ */
194
+ validatorVeryLowStakeThreshold?: bigint;
195
+ /**
196
+ * A validator can have stake below `validator_low_stake_threshold`
197
+ * for this many epochs before being kicked out.
198
+ *
199
+ * @generated from protobuf field: optional uint64 validator_low_stake_grace_period = 8;
200
+ */
201
+ validatorLowStakeGracePeriod?: bigint;
202
+ /**
203
+ * Any extra fields that are not defined statically.
204
+ *
205
+ * @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 9;
206
+ */
207
+ extraFields?: MoveTable;
208
208
  }
209
209
  /**
210
210
  * A message that represents a Move `0x2::table::Table` or `0x2::bag::Bag`
@@ -212,61 +212,61 @@ export interface SystemParameters {
212
212
  * @generated from protobuf message sui.rpc.v2.MoveTable
213
213
  */
214
214
  export interface MoveTable {
215
- /**
216
- * The UID of the table or bag
217
- *
218
- * @generated from protobuf field: optional string id = 1;
219
- */
220
- id?: string;
221
- /**
222
- * The size or number of key-value pairs in the table or bag
223
- *
224
- * @generated from protobuf field: optional uint64 size = 2;
225
- */
226
- size?: bigint;
215
+ /**
216
+ * The UID of the table or bag
217
+ *
218
+ * @generated from protobuf field: optional string id = 1;
219
+ */
220
+ id?: string;
221
+ /**
222
+ * The size or number of key-value pairs in the table or bag
223
+ *
224
+ * @generated from protobuf field: optional uint64 size = 2;
225
+ */
226
+ size?: bigint;
227
227
  }
228
228
  /**
229
229
  * @generated from protobuf message sui.rpc.v2.StakeSubsidy
230
230
  */
231
231
  export interface StakeSubsidy {
232
- /**
233
- * Balance of SUI set aside for stake subsidies that will be drawn down over time.
234
- *
235
- * @generated from protobuf field: optional uint64 balance = 1;
236
- */
237
- balance?: bigint;
238
- /**
239
- * Count of the number of times stake subsidies have been distributed.
240
- *
241
- * @generated from protobuf field: optional uint64 distribution_counter = 2;
242
- */
243
- distributionCounter?: bigint;
244
- /**
245
- * The amount of stake subsidy to be drawn down per distribution.
246
- * This amount decays and decreases over time.
247
- *
248
- * @generated from protobuf field: optional uint64 current_distribution_amount = 3;
249
- */
250
- currentDistributionAmount?: bigint;
251
- /**
252
- * Number of distributions to occur before the distribution amount decays.
253
- *
254
- * @generated from protobuf field: optional uint64 stake_subsidy_period_length = 4;
255
- */
256
- stakeSubsidyPeriodLength?: bigint;
257
- /**
258
- * The rate at which the distribution amount decays at the end of each
259
- * period. Expressed in basis points.
260
- *
261
- * @generated from protobuf field: optional uint32 stake_subsidy_decrease_rate = 5;
262
- */
263
- stakeSubsidyDecreaseRate?: number;
264
- /**
265
- * Any extra fields that's not defined statically.
266
- *
267
- * @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 6;
268
- */
269
- extraFields?: MoveTable;
232
+ /**
233
+ * Balance of SUI set aside for stake subsidies that will be drawn down over time.
234
+ *
235
+ * @generated from protobuf field: optional uint64 balance = 1;
236
+ */
237
+ balance?: bigint;
238
+ /**
239
+ * Count of the number of times stake subsidies have been distributed.
240
+ *
241
+ * @generated from protobuf field: optional uint64 distribution_counter = 2;
242
+ */
243
+ distributionCounter?: bigint;
244
+ /**
245
+ * The amount of stake subsidy to be drawn down per distribution.
246
+ * This amount decays and decreases over time.
247
+ *
248
+ * @generated from protobuf field: optional uint64 current_distribution_amount = 3;
249
+ */
250
+ currentDistributionAmount?: bigint;
251
+ /**
252
+ * Number of distributions to occur before the distribution amount decays.
253
+ *
254
+ * @generated from protobuf field: optional uint64 stake_subsidy_period_length = 4;
255
+ */
256
+ stakeSubsidyPeriodLength?: bigint;
257
+ /**
258
+ * The rate at which the distribution amount decays at the end of each
259
+ * period. Expressed in basis points.
260
+ *
261
+ * @generated from protobuf field: optional uint32 stake_subsidy_decrease_rate = 5;
262
+ */
263
+ stakeSubsidyDecreaseRate?: number;
264
+ /**
265
+ * Any extra fields that's not defined statically.
266
+ *
267
+ * @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 6;
268
+ */
269
+ extraFields?: MoveTable;
270
270
  }
271
271
  /**
272
272
  * Struct representing the onchain storage fund.
@@ -274,101 +274,101 @@ export interface StakeSubsidy {
274
274
  * @generated from protobuf message sui.rpc.v2.StorageFund
275
275
  */
276
276
  export interface StorageFund {
277
- /**
278
- * This is the sum of `storage_rebate` of
279
- * all objects currently stored on-chain. To maintain this invariant, the only inflow of this
280
- * balance is storage charges collected from transactions, and the only outflow is storage rebates
281
- * of transactions, including both the portion refunded to the transaction senders as well as
282
- * the non-refundable portion taken out and put into `non_refundable_balance`.
283
- *
284
- * @generated from protobuf field: optional uint64 total_object_storage_rebates = 1;
285
- */
286
- totalObjectStorageRebates?: bigint;
287
- /**
288
- * Represents any remaining inflow of the storage fund that should not
289
- * be taken out of the fund.
290
- *
291
- * @generated from protobuf field: optional uint64 non_refundable_balance = 2;
292
- */
293
- nonRefundableBalance?: bigint;
277
+ /**
278
+ * This is the sum of `storage_rebate` of
279
+ * all objects currently stored on-chain. To maintain this invariant, the only inflow of this
280
+ * balance is storage charges collected from transactions, and the only outflow is storage rebates
281
+ * of transactions, including both the portion refunded to the transaction senders as well as
282
+ * the non-refundable portion taken out and put into `non_refundable_balance`.
283
+ *
284
+ * @generated from protobuf field: optional uint64 total_object_storage_rebates = 1;
285
+ */
286
+ totalObjectStorageRebates?: bigint;
287
+ /**
288
+ * Represents any remaining inflow of the storage fund that should not
289
+ * be taken out of the fund.
290
+ *
291
+ * @generated from protobuf field: optional uint64 non_refundable_balance = 2;
292
+ */
293
+ nonRefundableBalance?: bigint;
294
294
  }
295
295
  /**
296
296
  * @generated from protobuf message sui.rpc.v2.ValidatorSet
297
297
  */
298
298
  export interface ValidatorSet {
299
- /**
300
- * Total amount of stake from all active validators at the beginning of the epoch.
301
- * Written only once per epoch, in `advance_epoch` function.
302
- *
303
- * @generated from protobuf field: optional uint64 total_stake = 1;
304
- */
305
- totalStake?: bigint;
306
- /**
307
- * The current list of active validators.
308
- *
309
- * @generated from protobuf field: repeated sui.rpc.v2.Validator active_validators = 2;
310
- */
311
- activeValidators: Validator[];
312
- /**
313
- * List of new validator candidates added during the current epoch.
314
- * They will be processed at the end of the epoch.
315
- *
316
- * key: u64 (index), value: 0x3::validator::Validator
317
- *
318
- * @generated from protobuf field: optional sui.rpc.v2.MoveTable pending_active_validators = 3;
319
- */
320
- pendingActiveValidators?: MoveTable;
321
- /**
322
- * Removal requests from the validators. Each element is an index
323
- * pointing to `active_validators`.
324
- *
325
- * @generated from protobuf field: repeated uint64 pending_removals = 4;
326
- */
327
- pendingRemovals: bigint[];
328
- /**
329
- * Mappings from staking pool's ID to the sui address of a validator.
330
- *
331
- * key: address (staking pool Id), value: address (sui address of the validator)
332
- *
333
- * @generated from protobuf field: optional sui.rpc.v2.MoveTable staking_pool_mappings = 5;
334
- */
335
- stakingPoolMappings?: MoveTable;
336
- /**
337
- * Mapping from a staking pool ID to the inactive validator that has that pool as its staking pool.
338
- * When a validator is deactivated the validator is removed from `active_validators` it
339
- * is added to this table so that stakers can continue to withdraw their stake from it.
340
- *
341
- * key: address (staking pool Id), value: 0x3::validator_wrapper::ValidatorWrapper
342
- *
343
- * @generated from protobuf field: optional sui.rpc.v2.MoveTable inactive_validators = 6;
344
- */
345
- inactiveValidators?: MoveTable;
346
- /**
347
- * Table storing preactive/candidate validators, mapping their addresses to their `Validator ` structs.
348
- * When an address calls `request_add_validator_candidate`, they get added to this table and become a preactive
349
- * validator.
350
- * When the candidate has met the min stake requirement, they can call `request_add_validator` to
351
- * officially add them to the active validator set `active_validators` next epoch.
352
- *
353
- * key: address (sui address of the validator), value: 0x3::validator_wrapper::ValidatorWrapper
354
- *
355
- * @generated from protobuf field: optional sui.rpc.v2.MoveTable validator_candidates = 7;
356
- */
357
- validatorCandidates?: MoveTable;
358
- /**
359
- * Table storing the number of epochs during which a validator's stake has been below the low stake threshold.
360
- *
361
- * @generated from protobuf field: map<string, uint64> at_risk_validators = 8;
362
- */
363
- atRiskValidators: {
364
- [key: string]: bigint;
365
- };
366
- /**
367
- * Any extra fields that's not defined statically.
368
- *
369
- * @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 9;
370
- */
371
- extraFields?: MoveTable;
299
+ /**
300
+ * Total amount of stake from all active validators at the beginning of the epoch.
301
+ * Written only once per epoch, in `advance_epoch` function.
302
+ *
303
+ * @generated from protobuf field: optional uint64 total_stake = 1;
304
+ */
305
+ totalStake?: bigint;
306
+ /**
307
+ * The current list of active validators.
308
+ *
309
+ * @generated from protobuf field: repeated sui.rpc.v2.Validator active_validators = 2;
310
+ */
311
+ activeValidators: Validator[];
312
+ /**
313
+ * List of new validator candidates added during the current epoch.
314
+ * They will be processed at the end of the epoch.
315
+ *
316
+ * key: u64 (index), value: 0x3::validator::Validator
317
+ *
318
+ * @generated from protobuf field: optional sui.rpc.v2.MoveTable pending_active_validators = 3;
319
+ */
320
+ pendingActiveValidators?: MoveTable;
321
+ /**
322
+ * Removal requests from the validators. Each element is an index
323
+ * pointing to `active_validators`.
324
+ *
325
+ * @generated from protobuf field: repeated uint64 pending_removals = 4;
326
+ */
327
+ pendingRemovals: bigint[];
328
+ /**
329
+ * Mappings from staking pool's ID to the sui address of a validator.
330
+ *
331
+ * key: address (staking pool Id), value: address (sui address of the validator)
332
+ *
333
+ * @generated from protobuf field: optional sui.rpc.v2.MoveTable staking_pool_mappings = 5;
334
+ */
335
+ stakingPoolMappings?: MoveTable;
336
+ /**
337
+ * Mapping from a staking pool ID to the inactive validator that has that pool as its staking pool.
338
+ * When a validator is deactivated the validator is removed from `active_validators` it
339
+ * is added to this table so that stakers can continue to withdraw their stake from it.
340
+ *
341
+ * key: address (staking pool Id), value: 0x3::validator_wrapper::ValidatorWrapper
342
+ *
343
+ * @generated from protobuf field: optional sui.rpc.v2.MoveTable inactive_validators = 6;
344
+ */
345
+ inactiveValidators?: MoveTable;
346
+ /**
347
+ * Table storing preactive/candidate validators, mapping their addresses to their `Validator ` structs.
348
+ * When an address calls `request_add_validator_candidate`, they get added to this table and become a preactive
349
+ * validator.
350
+ * When the candidate has met the min stake requirement, they can call `request_add_validator` to
351
+ * officially add them to the active validator set `active_validators` next epoch.
352
+ *
353
+ * key: address (sui address of the validator), value: 0x3::validator_wrapper::ValidatorWrapper
354
+ *
355
+ * @generated from protobuf field: optional sui.rpc.v2.MoveTable validator_candidates = 7;
356
+ */
357
+ validatorCandidates?: MoveTable;
358
+ /**
359
+ * Table storing the number of epochs during which a validator's stake has been below the low stake threshold.
360
+ *
361
+ * @generated from protobuf field: map<string, uint64> at_risk_validators = 8;
362
+ */
363
+ atRiskValidators: {
364
+ [key: string]: bigint;
365
+ };
366
+ /**
367
+ * Any extra fields that's not defined statically.
368
+ *
369
+ * @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 9;
370
+ */
371
+ extraFields?: MoveTable;
372
372
  }
373
373
  /**
374
374
  * Definition of a Validator in the system contracts
@@ -378,174 +378,174 @@ export interface ValidatorSet {
378
378
  * @generated from protobuf message sui.rpc.v2.Validator
379
379
  */
380
380
  export interface Validator {
381
- /**
382
- * A unique human-readable name of this validator.
383
- *
384
- * @generated from protobuf field: optional string name = 1;
385
- */
386
- name?: string;
387
- /**
388
- * The Sui Address of the validator. This is the sender that created the Validator object,
389
- * and also the address to send validator/coins to during withdraws.
390
- *
391
- * @generated from protobuf field: optional string address = 2;
392
- */
393
- address?: string;
394
- /**
395
- * @generated from protobuf field: optional string description = 3;
396
- */
397
- description?: string;
398
- /**
399
- * @generated from protobuf field: optional string image_url = 4;
400
- */
401
- imageUrl?: string;
402
- /**
403
- * @generated from protobuf field: optional string project_url = 5;
404
- */
405
- projectUrl?: string;
406
- /**
407
- * The public key bytes corresponding to the private key that the validator
408
- * holds to sign transactions. For now, this is the same as AuthorityName.
409
- *
410
- * @generated from protobuf field: optional bytes protocol_public_key = 7;
411
- */
412
- protocolPublicKey?: Uint8Array;
413
- /**
414
- * This is a proof that the validator has ownership of the protocol private key
415
- *
416
- * @generated from protobuf field: optional bytes proof_of_possession = 8;
417
- */
418
- proofOfPossession?: Uint8Array;
419
- /**
420
- * The public key bytes corresponding to the private key that the validator
421
- * uses to establish TLS connections
422
- *
423
- * @generated from protobuf field: optional bytes network_public_key = 10;
424
- */
425
- networkPublicKey?: Uint8Array;
426
- /**
427
- * The public key bytes corresponding to the Narwhal Worker
428
- *
429
- * @generated from protobuf field: optional bytes worker_public_key = 12;
430
- */
431
- workerPublicKey?: Uint8Array;
432
- /**
433
- * The network address of the validator (could also contain extra info such as port, DNS and etc.).
434
- *
435
- * @generated from protobuf field: optional string network_address = 13;
436
- */
437
- networkAddress?: string;
438
- /**
439
- * The address of the validator used for p2p activities such as state sync (could also contain extra info such as port, DNS and etc.).
440
- *
441
- * @generated from protobuf field: optional string p2p_address = 14 [json_name = "p2pAddress"];
442
- */
443
- p2PAddress?: string;
444
- /**
445
- * The address of the narwhal primary
446
- *
447
- * @generated from protobuf field: optional string primary_address = 15;
448
- */
449
- primaryAddress?: string;
450
- /**
451
- * The address of the narwhal worker
452
- *
453
- * @generated from protobuf field: optional string worker_address = 16;
454
- */
455
- workerAddress?: string;
456
- /**
457
- * @generated from protobuf field: optional bytes next_epoch_protocol_public_key = 18;
458
- */
459
- nextEpochProtocolPublicKey?: Uint8Array;
460
- /**
461
- * @generated from protobuf field: optional bytes next_epoch_proof_of_possession = 19;
462
- */
463
- nextEpochProofOfPossession?: Uint8Array;
464
- /**
465
- * @generated from protobuf field: optional bytes next_epoch_network_public_key = 21;
466
- */
467
- nextEpochNetworkPublicKey?: Uint8Array;
468
- /**
469
- * @generated from protobuf field: optional bytes next_epoch_worker_public_key = 23;
470
- */
471
- nextEpochWorkerPublicKey?: Uint8Array;
472
- /**
473
- * @generated from protobuf field: optional string next_epoch_network_address = 24;
474
- */
475
- nextEpochNetworkAddress?: string;
476
- /**
477
- * @generated from protobuf field: optional string next_epoch_p2p_address = 25 [json_name = "nextEpochP2pAddress"];
478
- */
479
- nextEpochP2PAddress?: string;
480
- /**
481
- * @generated from protobuf field: optional string next_epoch_primary_address = 26;
482
- */
483
- nextEpochPrimaryAddress?: string;
484
- /**
485
- * @generated from protobuf field: optional string next_epoch_worker_address = 27;
486
- */
487
- nextEpochWorkerAddress?: string;
488
- /**
489
- * Any extra fields that's not defined statically in the `ValidatorMetadata` struct
490
- *
491
- * @generated from protobuf field: optional sui.rpc.v2.MoveTable metadata_extra_fields = 28;
492
- */
493
- metadataExtraFields?: MoveTable;
494
- /**
495
- * The voting power of this validator, which might be different from its
496
- * stake amount.
497
- *
498
- * @generated from protobuf field: optional uint64 voting_power = 29;
499
- */
500
- votingPower?: bigint;
501
- /**
502
- * The ID of this validator's current valid `UnverifiedValidatorOperationCap`
503
- *
504
- * @generated from protobuf field: optional string operation_cap_id = 30;
505
- */
506
- operationCapId?: string;
507
- /**
508
- * Gas price quote, updated only at end of epoch.
509
- *
510
- * @generated from protobuf field: optional uint64 gas_price = 31;
511
- */
512
- gasPrice?: bigint;
513
- /**
514
- * Staking pool for this validator.
515
- *
516
- * @generated from protobuf field: optional sui.rpc.v2.StakingPool staking_pool = 32;
517
- */
518
- stakingPool?: StakingPool;
519
- /**
520
- * Commission rate of the validator, in basis point.
521
- *
522
- * @generated from protobuf field: optional uint64 commission_rate = 33;
523
- */
524
- commissionRate?: bigint;
525
- /**
526
- * Total amount of stake that would be active in the next epoch.
527
- *
528
- * @generated from protobuf field: optional uint64 next_epoch_stake = 34;
529
- */
530
- nextEpochStake?: bigint;
531
- /**
532
- * This validator's gas price quote for the next epoch.
533
- *
534
- * @generated from protobuf field: optional uint64 next_epoch_gas_price = 35;
535
- */
536
- nextEpochGasPrice?: bigint;
537
- /**
538
- * The commission rate of the validator starting the next epoch, in basis point.
539
- *
540
- * @generated from protobuf field: optional uint64 next_epoch_commission_rate = 36;
541
- */
542
- nextEpochCommissionRate?: bigint;
543
- /**
544
- * Any extra fields that's not defined statically.
545
- *
546
- * @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 37;
547
- */
548
- extraFields?: MoveTable;
381
+ /**
382
+ * A unique human-readable name of this validator.
383
+ *
384
+ * @generated from protobuf field: optional string name = 1;
385
+ */
386
+ name?: string;
387
+ /**
388
+ * The Sui Address of the validator. This is the sender that created the Validator object,
389
+ * and also the address to send validator/coins to during withdraws.
390
+ *
391
+ * @generated from protobuf field: optional string address = 2;
392
+ */
393
+ address?: string;
394
+ /**
395
+ * @generated from protobuf field: optional string description = 3;
396
+ */
397
+ description?: string;
398
+ /**
399
+ * @generated from protobuf field: optional string image_url = 4;
400
+ */
401
+ imageUrl?: string;
402
+ /**
403
+ * @generated from protobuf field: optional string project_url = 5;
404
+ */
405
+ projectUrl?: string;
406
+ /**
407
+ * The public key bytes corresponding to the private key that the validator
408
+ * holds to sign transactions. For now, this is the same as AuthorityName.
409
+ *
410
+ * @generated from protobuf field: optional bytes protocol_public_key = 7;
411
+ */
412
+ protocolPublicKey?: Uint8Array;
413
+ /**
414
+ * This is a proof that the validator has ownership of the protocol private key
415
+ *
416
+ * @generated from protobuf field: optional bytes proof_of_possession = 8;
417
+ */
418
+ proofOfPossession?: Uint8Array;
419
+ /**
420
+ * The public key bytes corresponding to the private key that the validator
421
+ * uses to establish TLS connections
422
+ *
423
+ * @generated from protobuf field: optional bytes network_public_key = 10;
424
+ */
425
+ networkPublicKey?: Uint8Array;
426
+ /**
427
+ * The public key bytes corresponding to the Narwhal Worker
428
+ *
429
+ * @generated from protobuf field: optional bytes worker_public_key = 12;
430
+ */
431
+ workerPublicKey?: Uint8Array;
432
+ /**
433
+ * The network address of the validator (could also contain extra info such as port, DNS and etc.).
434
+ *
435
+ * @generated from protobuf field: optional string network_address = 13;
436
+ */
437
+ networkAddress?: string;
438
+ /**
439
+ * The address of the validator used for p2p activities such as state sync (could also contain extra info such as port, DNS and etc.).
440
+ *
441
+ * @generated from protobuf field: optional string p2p_address = 14 [json_name = "p2pAddress"];
442
+ */
443
+ p2PAddress?: string;
444
+ /**
445
+ * The address of the narwhal primary
446
+ *
447
+ * @generated from protobuf field: optional string primary_address = 15;
448
+ */
449
+ primaryAddress?: string;
450
+ /**
451
+ * The address of the narwhal worker
452
+ *
453
+ * @generated from protobuf field: optional string worker_address = 16;
454
+ */
455
+ workerAddress?: string;
456
+ /**
457
+ * @generated from protobuf field: optional bytes next_epoch_protocol_public_key = 18;
458
+ */
459
+ nextEpochProtocolPublicKey?: Uint8Array;
460
+ /**
461
+ * @generated from protobuf field: optional bytes next_epoch_proof_of_possession = 19;
462
+ */
463
+ nextEpochProofOfPossession?: Uint8Array;
464
+ /**
465
+ * @generated from protobuf field: optional bytes next_epoch_network_public_key = 21;
466
+ */
467
+ nextEpochNetworkPublicKey?: Uint8Array;
468
+ /**
469
+ * @generated from protobuf field: optional bytes next_epoch_worker_public_key = 23;
470
+ */
471
+ nextEpochWorkerPublicKey?: Uint8Array;
472
+ /**
473
+ * @generated from protobuf field: optional string next_epoch_network_address = 24;
474
+ */
475
+ nextEpochNetworkAddress?: string;
476
+ /**
477
+ * @generated from protobuf field: optional string next_epoch_p2p_address = 25 [json_name = "nextEpochP2pAddress"];
478
+ */
479
+ nextEpochP2PAddress?: string;
480
+ /**
481
+ * @generated from protobuf field: optional string next_epoch_primary_address = 26;
482
+ */
483
+ nextEpochPrimaryAddress?: string;
484
+ /**
485
+ * @generated from protobuf field: optional string next_epoch_worker_address = 27;
486
+ */
487
+ nextEpochWorkerAddress?: string;
488
+ /**
489
+ * Any extra fields that's not defined statically in the `ValidatorMetadata` struct
490
+ *
491
+ * @generated from protobuf field: optional sui.rpc.v2.MoveTable metadata_extra_fields = 28;
492
+ */
493
+ metadataExtraFields?: MoveTable;
494
+ /**
495
+ * The voting power of this validator, which might be different from its
496
+ * stake amount.
497
+ *
498
+ * @generated from protobuf field: optional uint64 voting_power = 29;
499
+ */
500
+ votingPower?: bigint;
501
+ /**
502
+ * The ID of this validator's current valid `UnverifiedValidatorOperationCap`
503
+ *
504
+ * @generated from protobuf field: optional string operation_cap_id = 30;
505
+ */
506
+ operationCapId?: string;
507
+ /**
508
+ * Gas price quote, updated only at end of epoch.
509
+ *
510
+ * @generated from protobuf field: optional uint64 gas_price = 31;
511
+ */
512
+ gasPrice?: bigint;
513
+ /**
514
+ * Staking pool for this validator.
515
+ *
516
+ * @generated from protobuf field: optional sui.rpc.v2.StakingPool staking_pool = 32;
517
+ */
518
+ stakingPool?: StakingPool;
519
+ /**
520
+ * Commission rate of the validator, in basis point.
521
+ *
522
+ * @generated from protobuf field: optional uint64 commission_rate = 33;
523
+ */
524
+ commissionRate?: bigint;
525
+ /**
526
+ * Total amount of stake that would be active in the next epoch.
527
+ *
528
+ * @generated from protobuf field: optional uint64 next_epoch_stake = 34;
529
+ */
530
+ nextEpochStake?: bigint;
531
+ /**
532
+ * This validator's gas price quote for the next epoch.
533
+ *
534
+ * @generated from protobuf field: optional uint64 next_epoch_gas_price = 35;
535
+ */
536
+ nextEpochGasPrice?: bigint;
537
+ /**
538
+ * The commission rate of the validator starting the next epoch, in basis point.
539
+ *
540
+ * @generated from protobuf field: optional uint64 next_epoch_commission_rate = 36;
541
+ */
542
+ nextEpochCommissionRate?: bigint;
543
+ /**
544
+ * Any extra fields that's not defined statically.
545
+ *
546
+ * @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 37;
547
+ */
548
+ extraFields?: MoveTable;
549
549
  }
550
550
  /**
551
551
  * A staking pool embedded in each validator struct in the system state object.
@@ -553,104 +553,173 @@ export interface Validator {
553
553
  * @generated from protobuf message sui.rpc.v2.StakingPool
554
554
  */
555
555
  export interface StakingPool {
556
- /**
557
- * UID of the StakingPool object
558
- *
559
- * @generated from protobuf field: optional string id = 1;
560
- */
561
- id?: string;
562
- /**
563
- * The epoch at which this pool became active.
564
- * The value is `None` if the pool is pre-active and `Some(<epoch_number>)` if active or inactive.
565
- *
566
- * @generated from protobuf field: optional uint64 activation_epoch = 2;
567
- */
568
- activationEpoch?: bigint;
569
- /**
570
- * The epoch at which this staking pool ceased to be active. `None` = {pre-active, active},
571
- * `Some(<epoch_number>)` if in-active, and it was de-activated at epoch `<epoch_number>`.
572
- *
573
- * @generated from protobuf field: optional uint64 deactivation_epoch = 3;
574
- */
575
- deactivationEpoch?: bigint;
576
- /**
577
- * The total number of SUI tokens in this pool, including the SUI in the rewards_pool, as well as in all the principal
578
- * in the `StakedSui` object, updated at epoch boundaries.
579
- *
580
- * @generated from protobuf field: optional uint64 sui_balance = 4;
581
- */
582
- suiBalance?: bigint;
583
- /**
584
- * The epoch stake rewards will be added here at the end of each epoch.
585
- *
586
- * @generated from protobuf field: optional uint64 rewards_pool = 5;
587
- */
588
- rewardsPool?: bigint;
589
- /**
590
- * Total number of pool tokens issued by the pool.
591
- *
592
- * @generated from protobuf field: optional uint64 pool_token_balance = 6;
593
- */
594
- poolTokenBalance?: bigint;
595
- /**
596
- * Exchange rate history of previous epochs.
597
- *
598
- * The entries start from the `activation_epoch` of this pool and contains exchange rates at the beginning of each epoch,
599
- * i.e., right after the rewards for the previous epoch have been deposited into the pool.
600
- *
601
- * key: u64 (epoch number), value: PoolTokenExchangeRate
602
- *
603
- * @generated from protobuf field: optional sui.rpc.v2.MoveTable exchange_rates = 7;
604
- */
605
- exchangeRates?: MoveTable;
606
- /**
607
- * Pending stake amount for this epoch, emptied at epoch boundaries.
608
- *
609
- * @generated from protobuf field: optional uint64 pending_stake = 8;
610
- */
611
- pendingStake?: bigint;
612
- /**
613
- * Pending stake withdrawn during the current epoch, emptied at epoch boundaries.
614
- * This includes both the principal and rewards SUI withdrawn.
615
- *
616
- * @generated from protobuf field: optional uint64 pending_total_sui_withdraw = 9;
617
- */
618
- pendingTotalSuiWithdraw?: bigint;
619
- /**
620
- * Pending pool token withdrawn during the current epoch, emptied at epoch boundaries.
621
- *
622
- * @generated from protobuf field: optional uint64 pending_pool_token_withdraw = 10;
623
- */
624
- pendingPoolTokenWithdraw?: bigint;
625
- /**
626
- * Any extra fields that's not defined statically.
627
- *
628
- * @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 11;
629
- */
630
- extraFields?: MoveTable;
556
+ /**
557
+ * UID of the StakingPool object
558
+ *
559
+ * @generated from protobuf field: optional string id = 1;
560
+ */
561
+ id?: string;
562
+ /**
563
+ * The epoch at which this pool became active.
564
+ * The value is `None` if the pool is pre-active and `Some(<epoch_number>)` if active or inactive.
565
+ *
566
+ * @generated from protobuf field: optional uint64 activation_epoch = 2;
567
+ */
568
+ activationEpoch?: bigint;
569
+ /**
570
+ * The epoch at which this staking pool ceased to be active. `None` = {pre-active, active},
571
+ * `Some(<epoch_number>)` if in-active, and it was de-activated at epoch `<epoch_number>`.
572
+ *
573
+ * @generated from protobuf field: optional uint64 deactivation_epoch = 3;
574
+ */
575
+ deactivationEpoch?: bigint;
576
+ /**
577
+ * The total number of SUI tokens in this pool, including the SUI in the rewards_pool, as well as in all the principal
578
+ * in the `StakedSui` object, updated at epoch boundaries.
579
+ *
580
+ * @generated from protobuf field: optional uint64 sui_balance = 4;
581
+ */
582
+ suiBalance?: bigint;
583
+ /**
584
+ * The epoch stake rewards will be added here at the end of each epoch.
585
+ *
586
+ * @generated from protobuf field: optional uint64 rewards_pool = 5;
587
+ */
588
+ rewardsPool?: bigint;
589
+ /**
590
+ * Total number of pool tokens issued by the pool.
591
+ *
592
+ * @generated from protobuf field: optional uint64 pool_token_balance = 6;
593
+ */
594
+ poolTokenBalance?: bigint;
595
+ /**
596
+ * Exchange rate history of previous epochs.
597
+ *
598
+ * The entries start from the `activation_epoch` of this pool and contains exchange rates at the beginning of each epoch,
599
+ * i.e., right after the rewards for the previous epoch have been deposited into the pool.
600
+ *
601
+ * key: u64 (epoch number), value: PoolTokenExchangeRate
602
+ *
603
+ * @generated from protobuf field: optional sui.rpc.v2.MoveTable exchange_rates = 7;
604
+ */
605
+ exchangeRates?: MoveTable;
606
+ /**
607
+ * Pending stake amount for this epoch, emptied at epoch boundaries.
608
+ *
609
+ * @generated from protobuf field: optional uint64 pending_stake = 8;
610
+ */
611
+ pendingStake?: bigint;
612
+ /**
613
+ * Pending stake withdrawn during the current epoch, emptied at epoch boundaries.
614
+ * This includes both the principal and rewards SUI withdrawn.
615
+ *
616
+ * @generated from protobuf field: optional uint64 pending_total_sui_withdraw = 9;
617
+ */
618
+ pendingTotalSuiWithdraw?: bigint;
619
+ /**
620
+ * Pending pool token withdrawn during the current epoch, emptied at epoch boundaries.
621
+ *
622
+ * @generated from protobuf field: optional uint64 pending_pool_token_withdraw = 10;
623
+ */
624
+ pendingPoolTokenWithdraw?: bigint;
625
+ /**
626
+ * Any extra fields that's not defined statically.
627
+ *
628
+ * @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 11;
629
+ */
630
+ extraFields?: MoveTable;
631
631
  }
632
632
  // @generated message type with reflection information, may provide speed optimized methods
633
633
  class SystemState$Type extends MessageType<SystemState> {
634
- constructor() {
635
- super("sui.rpc.v2.SystemState", [
636
- { no: 1, name: "version", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
637
- { no: 2, name: "epoch", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
638
- { no: 3, name: "protocol_version", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
639
- { no: 4, name: "validators", kind: "message", T: () => ValidatorSet },
640
- { no: 5, name: "storage_fund", kind: "message", T: () => StorageFund },
641
- { no: 6, name: "parameters", kind: "message", T: () => SystemParameters },
642
- { no: 7, name: "reference_gas_price", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
643
- { no: 8, name: "validator_report_records", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ValidatorReportRecord },
644
- { no: 9, name: "stake_subsidy", kind: "message", T: () => StakeSubsidy },
645
- { no: 10, name: "safe_mode", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
646
- { no: 11, name: "safe_mode_storage_rewards", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
647
- { no: 12, name: "safe_mode_computation_rewards", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
648
- { no: 13, name: "safe_mode_storage_rebates", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
649
- { no: 14, name: "safe_mode_non_refundable_storage_fee", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
650
- { no: 15, name: "epoch_start_timestamp_ms", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
651
- { no: 16, name: "extra_fields", kind: "message", T: () => MoveTable }
652
- ]);
653
- }
634
+ constructor() {
635
+ super('sui.rpc.v2.SystemState', [
636
+ {
637
+ no: 1,
638
+ name: 'version',
639
+ kind: 'scalar',
640
+ opt: true,
641
+ T: 4 /*ScalarType.UINT64*/,
642
+ L: 0 /*LongType.BIGINT*/,
643
+ },
644
+ {
645
+ no: 2,
646
+ name: 'epoch',
647
+ kind: 'scalar',
648
+ opt: true,
649
+ T: 4 /*ScalarType.UINT64*/,
650
+ L: 0 /*LongType.BIGINT*/,
651
+ },
652
+ {
653
+ no: 3,
654
+ name: 'protocol_version',
655
+ kind: 'scalar',
656
+ opt: true,
657
+ T: 4 /*ScalarType.UINT64*/,
658
+ L: 0 /*LongType.BIGINT*/,
659
+ },
660
+ { no: 4, name: 'validators', kind: 'message', T: () => ValidatorSet },
661
+ { no: 5, name: 'storage_fund', kind: 'message', T: () => StorageFund },
662
+ { no: 6, name: 'parameters', kind: 'message', T: () => SystemParameters },
663
+ {
664
+ no: 7,
665
+ name: 'reference_gas_price',
666
+ kind: 'scalar',
667
+ opt: true,
668
+ T: 4 /*ScalarType.UINT64*/,
669
+ L: 0 /*LongType.BIGINT*/,
670
+ },
671
+ {
672
+ no: 8,
673
+ name: 'validator_report_records',
674
+ kind: 'message',
675
+ repeat: 1 /*RepeatType.PACKED*/,
676
+ T: () => ValidatorReportRecord,
677
+ },
678
+ { no: 9, name: 'stake_subsidy', kind: 'message', T: () => StakeSubsidy },
679
+ { no: 10, name: 'safe_mode', kind: 'scalar', opt: true, T: 8 /*ScalarType.BOOL*/ },
680
+ {
681
+ no: 11,
682
+ name: 'safe_mode_storage_rewards',
683
+ kind: 'scalar',
684
+ opt: true,
685
+ T: 4 /*ScalarType.UINT64*/,
686
+ L: 0 /*LongType.BIGINT*/,
687
+ },
688
+ {
689
+ no: 12,
690
+ name: 'safe_mode_computation_rewards',
691
+ kind: 'scalar',
692
+ opt: true,
693
+ T: 4 /*ScalarType.UINT64*/,
694
+ L: 0 /*LongType.BIGINT*/,
695
+ },
696
+ {
697
+ no: 13,
698
+ name: 'safe_mode_storage_rebates',
699
+ kind: 'scalar',
700
+ opt: true,
701
+ T: 4 /*ScalarType.UINT64*/,
702
+ L: 0 /*LongType.BIGINT*/,
703
+ },
704
+ {
705
+ no: 14,
706
+ name: 'safe_mode_non_refundable_storage_fee',
707
+ kind: 'scalar',
708
+ opt: true,
709
+ T: 4 /*ScalarType.UINT64*/,
710
+ L: 0 /*LongType.BIGINT*/,
711
+ },
712
+ {
713
+ no: 15,
714
+ name: 'epoch_start_timestamp_ms',
715
+ kind: 'scalar',
716
+ opt: true,
717
+ T: 4 /*ScalarType.UINT64*/,
718
+ L: 0 /*LongType.BIGINT*/,
719
+ },
720
+ { no: 16, name: 'extra_fields', kind: 'message', T: () => MoveTable },
721
+ ]);
722
+ }
654
723
  }
655
724
  /**
656
725
  * @generated MessageType for protobuf message sui.rpc.v2.SystemState
@@ -658,12 +727,18 @@ class SystemState$Type extends MessageType<SystemState> {
658
727
  export const SystemState = new SystemState$Type();
659
728
  // @generated message type with reflection information, may provide speed optimized methods
660
729
  class ValidatorReportRecord$Type extends MessageType<ValidatorReportRecord> {
661
- constructor() {
662
- super("sui.rpc.v2.ValidatorReportRecord", [
663
- { no: 1, name: "reported", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
664
- { no: 2, name: "reporters", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
665
- ]);
666
- }
730
+ constructor() {
731
+ super('sui.rpc.v2.ValidatorReportRecord', [
732
+ { no: 1, name: 'reported', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
733
+ {
734
+ no: 2,
735
+ name: 'reporters',
736
+ kind: 'scalar',
737
+ repeat: 2 /*RepeatType.UNPACKED*/,
738
+ T: 9 /*ScalarType.STRING*/,
739
+ },
740
+ ]);
741
+ }
667
742
  }
668
743
  /**
669
744
  * @generated MessageType for protobuf message sui.rpc.v2.ValidatorReportRecord
@@ -671,19 +746,75 @@ class ValidatorReportRecord$Type extends MessageType<ValidatorReportRecord> {
671
746
  export const ValidatorReportRecord = new ValidatorReportRecord$Type();
672
747
  // @generated message type with reflection information, may provide speed optimized methods
673
748
  class SystemParameters$Type extends MessageType<SystemParameters> {
674
- constructor() {
675
- super("sui.rpc.v2.SystemParameters", [
676
- { no: 1, name: "epoch_duration_ms", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
677
- { no: 2, name: "stake_subsidy_start_epoch", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
678
- { no: 3, name: "min_validator_count", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
679
- { no: 4, name: "max_validator_count", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
680
- { no: 5, name: "min_validator_joining_stake", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
681
- { no: 6, name: "validator_low_stake_threshold", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
682
- { no: 7, name: "validator_very_low_stake_threshold", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
683
- { no: 8, name: "validator_low_stake_grace_period", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
684
- { no: 9, name: "extra_fields", kind: "message", T: () => MoveTable }
685
- ]);
686
- }
749
+ constructor() {
750
+ super('sui.rpc.v2.SystemParameters', [
751
+ {
752
+ no: 1,
753
+ name: 'epoch_duration_ms',
754
+ kind: 'scalar',
755
+ opt: true,
756
+ T: 4 /*ScalarType.UINT64*/,
757
+ L: 0 /*LongType.BIGINT*/,
758
+ },
759
+ {
760
+ no: 2,
761
+ name: 'stake_subsidy_start_epoch',
762
+ kind: 'scalar',
763
+ opt: true,
764
+ T: 4 /*ScalarType.UINT64*/,
765
+ L: 0 /*LongType.BIGINT*/,
766
+ },
767
+ {
768
+ no: 3,
769
+ name: 'min_validator_count',
770
+ kind: 'scalar',
771
+ opt: true,
772
+ T: 4 /*ScalarType.UINT64*/,
773
+ L: 0 /*LongType.BIGINT*/,
774
+ },
775
+ {
776
+ no: 4,
777
+ name: 'max_validator_count',
778
+ kind: 'scalar',
779
+ opt: true,
780
+ T: 4 /*ScalarType.UINT64*/,
781
+ L: 0 /*LongType.BIGINT*/,
782
+ },
783
+ {
784
+ no: 5,
785
+ name: 'min_validator_joining_stake',
786
+ kind: 'scalar',
787
+ opt: true,
788
+ T: 4 /*ScalarType.UINT64*/,
789
+ L: 0 /*LongType.BIGINT*/,
790
+ },
791
+ {
792
+ no: 6,
793
+ name: 'validator_low_stake_threshold',
794
+ kind: 'scalar',
795
+ opt: true,
796
+ T: 4 /*ScalarType.UINT64*/,
797
+ L: 0 /*LongType.BIGINT*/,
798
+ },
799
+ {
800
+ no: 7,
801
+ name: 'validator_very_low_stake_threshold',
802
+ kind: 'scalar',
803
+ opt: true,
804
+ T: 4 /*ScalarType.UINT64*/,
805
+ L: 0 /*LongType.BIGINT*/,
806
+ },
807
+ {
808
+ no: 8,
809
+ name: 'validator_low_stake_grace_period',
810
+ kind: 'scalar',
811
+ opt: true,
812
+ T: 4 /*ScalarType.UINT64*/,
813
+ L: 0 /*LongType.BIGINT*/,
814
+ },
815
+ { no: 9, name: 'extra_fields', kind: 'message', T: () => MoveTable },
816
+ ]);
817
+ }
687
818
  }
688
819
  /**
689
820
  * @generated MessageType for protobuf message sui.rpc.v2.SystemParameters
@@ -691,12 +822,19 @@ class SystemParameters$Type extends MessageType<SystemParameters> {
691
822
  export const SystemParameters = new SystemParameters$Type();
692
823
  // @generated message type with reflection information, may provide speed optimized methods
693
824
  class MoveTable$Type extends MessageType<MoveTable> {
694
- constructor() {
695
- super("sui.rpc.v2.MoveTable", [
696
- { no: 1, name: "id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
697
- { no: 2, name: "size", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
698
- ]);
699
- }
825
+ constructor() {
826
+ super('sui.rpc.v2.MoveTable', [
827
+ { no: 1, name: 'id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
828
+ {
829
+ no: 2,
830
+ name: 'size',
831
+ kind: 'scalar',
832
+ opt: true,
833
+ T: 4 /*ScalarType.UINT64*/,
834
+ L: 0 /*LongType.BIGINT*/,
835
+ },
836
+ ]);
837
+ }
700
838
  }
701
839
  /**
702
840
  * @generated MessageType for protobuf message sui.rpc.v2.MoveTable
@@ -704,16 +842,50 @@ class MoveTable$Type extends MessageType<MoveTable> {
704
842
  export const MoveTable = new MoveTable$Type();
705
843
  // @generated message type with reflection information, may provide speed optimized methods
706
844
  class StakeSubsidy$Type extends MessageType<StakeSubsidy> {
707
- constructor() {
708
- super("sui.rpc.v2.StakeSubsidy", [
709
- { no: 1, name: "balance", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
710
- { no: 2, name: "distribution_counter", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
711
- { no: 3, name: "current_distribution_amount", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
712
- { no: 4, name: "stake_subsidy_period_length", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
713
- { no: 5, name: "stake_subsidy_decrease_rate", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
714
- { no: 6, name: "extra_fields", kind: "message", T: () => MoveTable }
715
- ]);
716
- }
845
+ constructor() {
846
+ super('sui.rpc.v2.StakeSubsidy', [
847
+ {
848
+ no: 1,
849
+ name: 'balance',
850
+ kind: 'scalar',
851
+ opt: true,
852
+ T: 4 /*ScalarType.UINT64*/,
853
+ L: 0 /*LongType.BIGINT*/,
854
+ },
855
+ {
856
+ no: 2,
857
+ name: 'distribution_counter',
858
+ kind: 'scalar',
859
+ opt: true,
860
+ T: 4 /*ScalarType.UINT64*/,
861
+ L: 0 /*LongType.BIGINT*/,
862
+ },
863
+ {
864
+ no: 3,
865
+ name: 'current_distribution_amount',
866
+ kind: 'scalar',
867
+ opt: true,
868
+ T: 4 /*ScalarType.UINT64*/,
869
+ L: 0 /*LongType.BIGINT*/,
870
+ },
871
+ {
872
+ no: 4,
873
+ name: 'stake_subsidy_period_length',
874
+ kind: 'scalar',
875
+ opt: true,
876
+ T: 4 /*ScalarType.UINT64*/,
877
+ L: 0 /*LongType.BIGINT*/,
878
+ },
879
+ {
880
+ no: 5,
881
+ name: 'stake_subsidy_decrease_rate',
882
+ kind: 'scalar',
883
+ opt: true,
884
+ T: 13 /*ScalarType.UINT32*/,
885
+ },
886
+ { no: 6, name: 'extra_fields', kind: 'message', T: () => MoveTable },
887
+ ]);
888
+ }
717
889
  }
718
890
  /**
719
891
  * @generated MessageType for protobuf message sui.rpc.v2.StakeSubsidy
@@ -721,12 +893,26 @@ class StakeSubsidy$Type extends MessageType<StakeSubsidy> {
721
893
  export const StakeSubsidy = new StakeSubsidy$Type();
722
894
  // @generated message type with reflection information, may provide speed optimized methods
723
895
  class StorageFund$Type extends MessageType<StorageFund> {
724
- constructor() {
725
- super("sui.rpc.v2.StorageFund", [
726
- { no: 1, name: "total_object_storage_rebates", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
727
- { no: 2, name: "non_refundable_balance", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
728
- ]);
729
- }
896
+ constructor() {
897
+ super('sui.rpc.v2.StorageFund', [
898
+ {
899
+ no: 1,
900
+ name: 'total_object_storage_rebates',
901
+ kind: 'scalar',
902
+ opt: true,
903
+ T: 4 /*ScalarType.UINT64*/,
904
+ L: 0 /*LongType.BIGINT*/,
905
+ },
906
+ {
907
+ no: 2,
908
+ name: 'non_refundable_balance',
909
+ kind: 'scalar',
910
+ opt: true,
911
+ T: 4 /*ScalarType.UINT64*/,
912
+ L: 0 /*LongType.BIGINT*/,
913
+ },
914
+ ]);
915
+ }
730
916
  }
731
917
  /**
732
918
  * @generated MessageType for protobuf message sui.rpc.v2.StorageFund
@@ -734,19 +920,45 @@ class StorageFund$Type extends MessageType<StorageFund> {
734
920
  export const StorageFund = new StorageFund$Type();
735
921
  // @generated message type with reflection information, may provide speed optimized methods
736
922
  class ValidatorSet$Type extends MessageType<ValidatorSet> {
737
- constructor() {
738
- super("sui.rpc.v2.ValidatorSet", [
739
- { no: 1, name: "total_stake", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
740
- { no: 2, name: "active_validators", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Validator },
741
- { no: 3, name: "pending_active_validators", kind: "message", T: () => MoveTable },
742
- { no: 4, name: "pending_removals", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
743
- { no: 5, name: "staking_pool_mappings", kind: "message", T: () => MoveTable },
744
- { no: 6, name: "inactive_validators", kind: "message", T: () => MoveTable },
745
- { no: 7, name: "validator_candidates", kind: "message", T: () => MoveTable },
746
- { no: 8, name: "at_risk_validators", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ } },
747
- { no: 9, name: "extra_fields", kind: "message", T: () => MoveTable }
748
- ]);
749
- }
923
+ constructor() {
924
+ super('sui.rpc.v2.ValidatorSet', [
925
+ {
926
+ no: 1,
927
+ name: 'total_stake',
928
+ kind: 'scalar',
929
+ opt: true,
930
+ T: 4 /*ScalarType.UINT64*/,
931
+ L: 0 /*LongType.BIGINT*/,
932
+ },
933
+ {
934
+ no: 2,
935
+ name: 'active_validators',
936
+ kind: 'message',
937
+ repeat: 1 /*RepeatType.PACKED*/,
938
+ T: () => Validator,
939
+ },
940
+ { no: 3, name: 'pending_active_validators', kind: 'message', T: () => MoveTable },
941
+ {
942
+ no: 4,
943
+ name: 'pending_removals',
944
+ kind: 'scalar',
945
+ repeat: 1 /*RepeatType.PACKED*/,
946
+ T: 4 /*ScalarType.UINT64*/,
947
+ L: 0 /*LongType.BIGINT*/,
948
+ },
949
+ { no: 5, name: 'staking_pool_mappings', kind: 'message', T: () => MoveTable },
950
+ { no: 6, name: 'inactive_validators', kind: 'message', T: () => MoveTable },
951
+ { no: 7, name: 'validator_candidates', kind: 'message', T: () => MoveTable },
952
+ {
953
+ no: 8,
954
+ name: 'at_risk_validators',
955
+ kind: 'map',
956
+ K: 9 /*ScalarType.STRING*/,
957
+ V: { kind: 'scalar', T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
958
+ },
959
+ { no: 9, name: 'extra_fields', kind: 'message', T: () => MoveTable },
960
+ ]);
961
+ }
750
962
  }
751
963
  /**
752
964
  * @generated MessageType for protobuf message sui.rpc.v2.ValidatorSet
@@ -754,41 +966,139 @@ class ValidatorSet$Type extends MessageType<ValidatorSet> {
754
966
  export const ValidatorSet = new ValidatorSet$Type();
755
967
  // @generated message type with reflection information, may provide speed optimized methods
756
968
  class Validator$Type extends MessageType<Validator> {
757
- constructor() {
758
- super("sui.rpc.v2.Validator", [
759
- { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
760
- { no: 2, name: "address", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
761
- { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
762
- { no: 4, name: "image_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
763
- { no: 5, name: "project_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
764
- { no: 7, name: "protocol_public_key", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
765
- { no: 8, name: "proof_of_possession", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
766
- { no: 10, name: "network_public_key", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
767
- { no: 12, name: "worker_public_key", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
768
- { no: 13, name: "network_address", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
769
- { no: 14, name: "p2p_address", kind: "scalar", jsonName: "p2pAddress", opt: true, T: 9 /*ScalarType.STRING*/ },
770
- { no: 15, name: "primary_address", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
771
- { no: 16, name: "worker_address", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
772
- { no: 18, name: "next_epoch_protocol_public_key", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
773
- { no: 19, name: "next_epoch_proof_of_possession", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
774
- { no: 21, name: "next_epoch_network_public_key", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
775
- { no: 23, name: "next_epoch_worker_public_key", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
776
- { no: 24, name: "next_epoch_network_address", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
777
- { no: 25, name: "next_epoch_p2p_address", kind: "scalar", jsonName: "nextEpochP2pAddress", opt: true, T: 9 /*ScalarType.STRING*/ },
778
- { no: 26, name: "next_epoch_primary_address", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
779
- { no: 27, name: "next_epoch_worker_address", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
780
- { no: 28, name: "metadata_extra_fields", kind: "message", T: () => MoveTable },
781
- { no: 29, name: "voting_power", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
782
- { no: 30, name: "operation_cap_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
783
- { no: 31, name: "gas_price", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
784
- { no: 32, name: "staking_pool", kind: "message", T: () => StakingPool },
785
- { no: 33, name: "commission_rate", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
786
- { no: 34, name: "next_epoch_stake", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
787
- { no: 35, name: "next_epoch_gas_price", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
788
- { no: 36, name: "next_epoch_commission_rate", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
789
- { no: 37, name: "extra_fields", kind: "message", T: () => MoveTable }
790
- ]);
791
- }
969
+ constructor() {
970
+ super('sui.rpc.v2.Validator', [
971
+ { no: 1, name: 'name', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
972
+ { no: 2, name: 'address', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
973
+ { no: 3, name: 'description', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
974
+ { no: 4, name: 'image_url', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
975
+ { no: 5, name: 'project_url', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
976
+ { no: 7, name: 'protocol_public_key', kind: 'scalar', opt: true, T: 12 /*ScalarType.BYTES*/ },
977
+ { no: 8, name: 'proof_of_possession', kind: 'scalar', opt: true, T: 12 /*ScalarType.BYTES*/ },
978
+ { no: 10, name: 'network_public_key', kind: 'scalar', opt: true, T: 12 /*ScalarType.BYTES*/ },
979
+ { no: 12, name: 'worker_public_key', kind: 'scalar', opt: true, T: 12 /*ScalarType.BYTES*/ },
980
+ { no: 13, name: 'network_address', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
981
+ {
982
+ no: 14,
983
+ name: 'p2p_address',
984
+ kind: 'scalar',
985
+ jsonName: 'p2pAddress',
986
+ opt: true,
987
+ T: 9 /*ScalarType.STRING*/,
988
+ },
989
+ { no: 15, name: 'primary_address', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
990
+ { no: 16, name: 'worker_address', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
991
+ {
992
+ no: 18,
993
+ name: 'next_epoch_protocol_public_key',
994
+ kind: 'scalar',
995
+ opt: true,
996
+ T: 12 /*ScalarType.BYTES*/,
997
+ },
998
+ {
999
+ no: 19,
1000
+ name: 'next_epoch_proof_of_possession',
1001
+ kind: 'scalar',
1002
+ opt: true,
1003
+ T: 12 /*ScalarType.BYTES*/,
1004
+ },
1005
+ {
1006
+ no: 21,
1007
+ name: 'next_epoch_network_public_key',
1008
+ kind: 'scalar',
1009
+ opt: true,
1010
+ T: 12 /*ScalarType.BYTES*/,
1011
+ },
1012
+ {
1013
+ no: 23,
1014
+ name: 'next_epoch_worker_public_key',
1015
+ kind: 'scalar',
1016
+ opt: true,
1017
+ T: 12 /*ScalarType.BYTES*/,
1018
+ },
1019
+ {
1020
+ no: 24,
1021
+ name: 'next_epoch_network_address',
1022
+ kind: 'scalar',
1023
+ opt: true,
1024
+ T: 9 /*ScalarType.STRING*/,
1025
+ },
1026
+ {
1027
+ no: 25,
1028
+ name: 'next_epoch_p2p_address',
1029
+ kind: 'scalar',
1030
+ jsonName: 'nextEpochP2pAddress',
1031
+ opt: true,
1032
+ T: 9 /*ScalarType.STRING*/,
1033
+ },
1034
+ {
1035
+ no: 26,
1036
+ name: 'next_epoch_primary_address',
1037
+ kind: 'scalar',
1038
+ opt: true,
1039
+ T: 9 /*ScalarType.STRING*/,
1040
+ },
1041
+ {
1042
+ no: 27,
1043
+ name: 'next_epoch_worker_address',
1044
+ kind: 'scalar',
1045
+ opt: true,
1046
+ T: 9 /*ScalarType.STRING*/,
1047
+ },
1048
+ { no: 28, name: 'metadata_extra_fields', kind: 'message', T: () => MoveTable },
1049
+ {
1050
+ no: 29,
1051
+ name: 'voting_power',
1052
+ kind: 'scalar',
1053
+ opt: true,
1054
+ T: 4 /*ScalarType.UINT64*/,
1055
+ L: 0 /*LongType.BIGINT*/,
1056
+ },
1057
+ { no: 30, name: 'operation_cap_id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
1058
+ {
1059
+ no: 31,
1060
+ name: 'gas_price',
1061
+ kind: 'scalar',
1062
+ opt: true,
1063
+ T: 4 /*ScalarType.UINT64*/,
1064
+ L: 0 /*LongType.BIGINT*/,
1065
+ },
1066
+ { no: 32, name: 'staking_pool', kind: 'message', T: () => StakingPool },
1067
+ {
1068
+ no: 33,
1069
+ name: 'commission_rate',
1070
+ kind: 'scalar',
1071
+ opt: true,
1072
+ T: 4 /*ScalarType.UINT64*/,
1073
+ L: 0 /*LongType.BIGINT*/,
1074
+ },
1075
+ {
1076
+ no: 34,
1077
+ name: 'next_epoch_stake',
1078
+ kind: 'scalar',
1079
+ opt: true,
1080
+ T: 4 /*ScalarType.UINT64*/,
1081
+ L: 0 /*LongType.BIGINT*/,
1082
+ },
1083
+ {
1084
+ no: 35,
1085
+ name: 'next_epoch_gas_price',
1086
+ kind: 'scalar',
1087
+ opt: true,
1088
+ T: 4 /*ScalarType.UINT64*/,
1089
+ L: 0 /*LongType.BIGINT*/,
1090
+ },
1091
+ {
1092
+ no: 36,
1093
+ name: 'next_epoch_commission_rate',
1094
+ kind: 'scalar',
1095
+ opt: true,
1096
+ T: 4 /*ScalarType.UINT64*/,
1097
+ L: 0 /*LongType.BIGINT*/,
1098
+ },
1099
+ { no: 37, name: 'extra_fields', kind: 'message', T: () => MoveTable },
1100
+ ]);
1101
+ }
792
1102
  }
793
1103
  /**
794
1104
  * @generated MessageType for protobuf message sui.rpc.v2.Validator
@@ -796,21 +1106,77 @@ class Validator$Type extends MessageType<Validator> {
796
1106
  export const Validator = new Validator$Type();
797
1107
  // @generated message type with reflection information, may provide speed optimized methods
798
1108
  class StakingPool$Type extends MessageType<StakingPool> {
799
- constructor() {
800
- super("sui.rpc.v2.StakingPool", [
801
- { no: 1, name: "id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
802
- { no: 2, name: "activation_epoch", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
803
- { no: 3, name: "deactivation_epoch", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
804
- { no: 4, name: "sui_balance", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
805
- { no: 5, name: "rewards_pool", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
806
- { no: 6, name: "pool_token_balance", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
807
- { no: 7, name: "exchange_rates", kind: "message", T: () => MoveTable },
808
- { no: 8, name: "pending_stake", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
809
- { no: 9, name: "pending_total_sui_withdraw", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
810
- { no: 10, name: "pending_pool_token_withdraw", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
811
- { no: 11, name: "extra_fields", kind: "message", T: () => MoveTable }
812
- ]);
813
- }
1109
+ constructor() {
1110
+ super('sui.rpc.v2.StakingPool', [
1111
+ { no: 1, name: 'id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
1112
+ {
1113
+ no: 2,
1114
+ name: 'activation_epoch',
1115
+ kind: 'scalar',
1116
+ opt: true,
1117
+ T: 4 /*ScalarType.UINT64*/,
1118
+ L: 0 /*LongType.BIGINT*/,
1119
+ },
1120
+ {
1121
+ no: 3,
1122
+ name: 'deactivation_epoch',
1123
+ kind: 'scalar',
1124
+ opt: true,
1125
+ T: 4 /*ScalarType.UINT64*/,
1126
+ L: 0 /*LongType.BIGINT*/,
1127
+ },
1128
+ {
1129
+ no: 4,
1130
+ name: 'sui_balance',
1131
+ kind: 'scalar',
1132
+ opt: true,
1133
+ T: 4 /*ScalarType.UINT64*/,
1134
+ L: 0 /*LongType.BIGINT*/,
1135
+ },
1136
+ {
1137
+ no: 5,
1138
+ name: 'rewards_pool',
1139
+ kind: 'scalar',
1140
+ opt: true,
1141
+ T: 4 /*ScalarType.UINT64*/,
1142
+ L: 0 /*LongType.BIGINT*/,
1143
+ },
1144
+ {
1145
+ no: 6,
1146
+ name: 'pool_token_balance',
1147
+ kind: 'scalar',
1148
+ opt: true,
1149
+ T: 4 /*ScalarType.UINT64*/,
1150
+ L: 0 /*LongType.BIGINT*/,
1151
+ },
1152
+ { no: 7, name: 'exchange_rates', kind: 'message', T: () => MoveTable },
1153
+ {
1154
+ no: 8,
1155
+ name: 'pending_stake',
1156
+ kind: 'scalar',
1157
+ opt: true,
1158
+ T: 4 /*ScalarType.UINT64*/,
1159
+ L: 0 /*LongType.BIGINT*/,
1160
+ },
1161
+ {
1162
+ no: 9,
1163
+ name: 'pending_total_sui_withdraw',
1164
+ kind: 'scalar',
1165
+ opt: true,
1166
+ T: 4 /*ScalarType.UINT64*/,
1167
+ L: 0 /*LongType.BIGINT*/,
1168
+ },
1169
+ {
1170
+ no: 10,
1171
+ name: 'pending_pool_token_withdraw',
1172
+ kind: 'scalar',
1173
+ opt: true,
1174
+ T: 4 /*ScalarType.UINT64*/,
1175
+ L: 0 /*LongType.BIGINT*/,
1176
+ },
1177
+ { no: 11, name: 'extra_fields', kind: 'message', T: () => MoveTable },
1178
+ ]);
1179
+ }
814
1180
  }
815
1181
  /**
816
1182
  * @generated MessageType for protobuf message sui.rpc.v2.StakingPool