@mysten/sui 2.20.3 → 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/bcs/bcs.d.mts +6 -6
  3. package/dist/bcs/index.d.mts +20 -20
  4. package/dist/client/core.d.mts.map +1 -1
  5. package/dist/client/core.mjs +4 -1
  6. package/dist/client/core.mjs.map +1 -1
  7. package/dist/client/mvr.d.mts.map +1 -1
  8. package/dist/client/mvr.mjs +29 -7
  9. package/dist/client/mvr.mjs.map +1 -1
  10. package/dist/cryptography/signature.d.mts +6 -6
  11. package/dist/grpc/client.d.mts.map +1 -1
  12. package/dist/grpc/client.mjs +1 -1
  13. package/dist/grpc/client.mjs.map +1 -1
  14. package/dist/grpc/core.d.mts +13 -5
  15. package/dist/grpc/core.d.mts.map +1 -1
  16. package/dist/grpc/core.mjs +68 -46
  17. package/dist/grpc/core.mjs.map +1 -1
  18. package/dist/grpc/index.d.mts +2 -2
  19. package/dist/grpc/index.mjs +2 -2
  20. package/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.d.mts +4 -4
  21. package/dist/grpc/proto/sui/rpc/v2/name_service.client.d.mts +4 -4
  22. package/dist/grpc/proto/sui/rpc/v2/state_service.client.d.mts +4 -4
  23. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +4 -4
  24. package/dist/jsonRpc/client.d.mts +160 -0
  25. package/dist/jsonRpc/client.d.mts.map +1 -1
  26. package/dist/jsonRpc/client.mjs +142 -0
  27. package/dist/jsonRpc/client.mjs.map +1 -1
  28. package/dist/jsonRpc/core.d.mts +80 -0
  29. package/dist/jsonRpc/core.d.mts.map +1 -1
  30. package/dist/jsonRpc/core.mjs +80 -0
  31. package/dist/jsonRpc/core.mjs.map +1 -1
  32. package/dist/jsonRpc/errors.d.mts +12 -0
  33. package/dist/jsonRpc/errors.d.mts.map +1 -1
  34. package/dist/jsonRpc/errors.mjs +12 -0
  35. package/dist/jsonRpc/errors.mjs.map +1 -1
  36. package/dist/jsonRpc/http-transport.d.mts +30 -0
  37. package/dist/jsonRpc/http-transport.d.mts.map +1 -1
  38. package/dist/jsonRpc/http-transport.mjs +16 -0
  39. package/dist/jsonRpc/http-transport.mjs.map +1 -1
  40. package/dist/jsonRpc/network.d.mts +4 -0
  41. package/dist/jsonRpc/network.d.mts.map +1 -1
  42. package/dist/jsonRpc/network.mjs +4 -0
  43. package/dist/jsonRpc/network.mjs.map +1 -1
  44. package/dist/jsonRpc/types/chain.d.mts +68 -0
  45. package/dist/jsonRpc/types/chain.d.mts.map +1 -1
  46. package/dist/jsonRpc/types/changes.d.mts +24 -0
  47. package/dist/jsonRpc/types/changes.d.mts.map +1 -1
  48. package/dist/jsonRpc/types/coins.d.mts +4 -0
  49. package/dist/jsonRpc/types/coins.d.mts.map +1 -1
  50. package/dist/jsonRpc/types/common.d.mts +4 -0
  51. package/dist/jsonRpc/types/common.d.mts.map +1 -1
  52. package/dist/jsonRpc/types/generated.d.mts +497 -16
  53. package/dist/jsonRpc/types/generated.d.mts.map +1 -1
  54. package/dist/jsonRpc/types/params.d.mts +289 -41
  55. package/dist/jsonRpc/types/params.d.mts.map +1 -1
  56. package/dist/transactions/Transaction.d.mts +9 -9
  57. package/dist/transactions/Transaction.d.mts.map +1 -1
  58. package/dist/version.mjs +1 -1
  59. package/dist/version.mjs.map +1 -1
  60. package/dist/zklogin/bcs.d.mts +14 -14
  61. package/dist/zklogin/bcs.d.mts.map +1 -1
  62. package/package.json +1 -1
  63. package/src/client/core.ts +1 -0
  64. package/src/client/mvr.ts +39 -6
  65. package/src/grpc/client.ts +10 -7
  66. package/src/grpc/core.ts +251 -168
  67. package/src/grpc/index.ts +5 -1
  68. package/src/jsonRpc/client.ts +160 -0
  69. package/src/jsonRpc/core.ts +80 -0
  70. package/src/jsonRpc/errors.ts +12 -0
  71. package/src/jsonRpc/http-transport.ts +30 -0
  72. package/src/jsonRpc/network.ts +4 -0
  73. package/src/jsonRpc/types/chain.ts +68 -0
  74. package/src/jsonRpc/types/changes.ts +24 -0
  75. package/src/jsonRpc/types/coins.ts +4 -0
  76. package/src/jsonRpc/types/common.ts +4 -0
  77. package/src/jsonRpc/types/generated.ts +497 -16
  78. package/src/jsonRpc/types/params.ts +289 -41
  79. package/src/version.ts +1 -1
@@ -16,6 +16,9 @@ import type { Transaction } from '../../transactions/index.js';
16
16
  * Runs the transaction in dev-inspect mode. Which allows for nearly any transaction (or Move call)
17
17
  * with any arguments. Detailed results are provided, including both the transaction effects and any
18
18
  * return values.
19
+ *
20
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
21
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
19
22
  */
20
23
  export interface DevInspectTransactionBlockParams {
21
24
  sender: string;
@@ -32,6 +35,9 @@ export interface DevInspectTransactionBlockParams {
32
35
  /**
33
36
  * Return transaction execution effects including the gas cost summary, while the effects are not
34
37
  * committed to the chain.
38
+ *
39
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
40
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
35
41
  */
36
42
  export interface DryRunTransactionBlockParams {
37
43
  transactionBlock: Uint8Array | string;
@@ -46,6 +52,9 @@ export interface DryRunTransactionBlockParams {
46
52
  * the transaction locally in a timely manner, a bool type in the response is set to false to indicated
47
53
  * the case. request_type is default to be `WaitForEffectsCert` unless options.show_events or
48
54
  * options.show_effects is true
55
+ *
56
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
57
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
49
58
  */
50
59
  export interface ExecuteTransactionBlockParams {
51
60
  /** BCS serialized transaction data bytes without its type tag, as base-64 encoded string. */
@@ -57,21 +66,36 @@ export interface ExecuteTransactionBlockParams {
57
66
  signature: string | string[];
58
67
  /** options for specifying the content to be returned */
59
68
  options?: RpcTypes.SuiTransactionBlockResponseOptions | null | undefined;
60
- /** @deprecated requestType will be ignored by JSON RPC in the future */
69
+ /** @deprecated requestType is deprecated and should not be used */
61
70
  requestType?: RpcTypes.ExecuteTransactionRequestType | null | undefined;
62
71
  signal?: AbortSignal;
63
72
  }
64
- /** Return the first four bytes of the chain's genesis checkpoint digest. */
73
+ /**
74
+ * Return the first four bytes of the chain's genesis checkpoint digest.
75
+ *
76
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
77
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
78
+ */
65
79
  export interface GetChainIdentifierParams {
66
80
  signal?: AbortSignal;
67
81
  }
68
- /** Return a checkpoint */
82
+ /**
83
+ * Return a checkpoint
84
+ *
85
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
86
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
87
+ */
69
88
  export interface GetCheckpointParams {
70
89
  /** Checkpoint identifier, can use either checkpoint digest, or checkpoint sequence number as input. */
71
90
  id: RpcTypes.CheckpointId;
72
91
  signal?: AbortSignal;
73
92
  }
74
- /** Return paginated list of checkpoints */
93
+ /**
94
+ * Return paginated list of checkpoints
95
+ *
96
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
97
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
98
+ */
75
99
  export interface GetCheckpointsParams {
76
100
  /**
77
101
  * An optional paging cursor. If provided, the query will start from the next item after the specified
@@ -84,49 +108,89 @@ export interface GetCheckpointsParams {
84
108
  descendingOrder: boolean;
85
109
  signal?: AbortSignal;
86
110
  }
87
- /** Return transaction events. */
111
+ /**
112
+ * Return transaction events.
113
+ *
114
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
115
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
116
+ */
88
117
  export interface GetEventsParams {
89
118
  /** the event query criteria. */
90
119
  transactionDigest: string;
91
120
  signal?: AbortSignal;
92
121
  }
93
- /** Return the sequence number of the latest checkpoint that has been executed */
122
+ /**
123
+ * Return the sequence number of the latest checkpoint that has been executed
124
+ *
125
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
126
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
127
+ */
94
128
  export interface GetLatestCheckpointSequenceNumberParams {
95
129
  signal?: AbortSignal;
96
130
  }
97
- /** Return the argument types of a Move function, based on normalized Type. */
131
+ /**
132
+ * Return the argument types of a Move function, based on normalized Type.
133
+ *
134
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
135
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
136
+ */
98
137
  export interface GetMoveFunctionArgTypesParams {
99
138
  package: string;
100
139
  module: string;
101
140
  function: string;
102
141
  signal?: AbortSignal;
103
142
  }
104
- /** Return a structured representation of Move function */
143
+ /**
144
+ * Return a structured representation of Move function
145
+ *
146
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
147
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
148
+ */
105
149
  export interface GetNormalizedMoveFunctionParams {
106
150
  package: string;
107
151
  module: string;
108
152
  function: string;
109
153
  signal?: AbortSignal;
110
154
  }
111
- /** Return a structured representation of Move module */
155
+ /**
156
+ * Return a structured representation of Move module
157
+ *
158
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
159
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
160
+ */
112
161
  export interface GetNormalizedMoveModuleParams {
113
162
  package: string;
114
163
  module: string;
115
164
  signal?: AbortSignal;
116
165
  }
117
- /** Return structured representations of all modules in the given package */
166
+ /**
167
+ * Return structured representations of all modules in the given package
168
+ *
169
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
170
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
171
+ */
118
172
  export interface GetNormalizedMoveModulesByPackageParams {
119
173
  package: string;
120
174
  signal?: AbortSignal;
121
175
  }
122
- /** Return a structured representation of Move struct */
176
+ /**
177
+ * Return a structured representation of Move struct
178
+ *
179
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
180
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
181
+ */
123
182
  export interface GetNormalizedMoveStructParams {
124
183
  package: string;
125
184
  module: string;
126
185
  struct: string;
127
186
  signal?: AbortSignal;
128
187
  }
129
- /** Return the object information for a specified object */
188
+ /**
189
+ * Return the object information for a specified object
190
+ *
191
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
192
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
193
+ */
130
194
  export interface GetObjectParams {
131
195
  /** the ID of the queried object */
132
196
  id: string;
@@ -137,6 +201,9 @@ export interface GetObjectParams {
137
201
  /**
138
202
  * Return the protocol config table for the given version number. If none is specified, the node uses
139
203
  * the version of the latest epoch it has processed.
204
+ *
205
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
206
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
140
207
  */
141
208
  export interface GetProtocolConfigParams {
142
209
  /**
@@ -146,11 +213,21 @@ export interface GetProtocolConfigParams {
146
213
  version?: string | null | undefined;
147
214
  signal?: AbortSignal;
148
215
  }
149
- /** Return the total number of transaction blocks known to the server. */
216
+ /**
217
+ * Return the total number of transaction blocks known to the server.
218
+ *
219
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
220
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
221
+ */
150
222
  export interface GetTotalTransactionBlocksParams {
151
223
  signal?: AbortSignal;
152
224
  }
153
- /** Return the transaction response object. */
225
+ /**
226
+ * Return the transaction response object.
227
+ *
228
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
229
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
230
+ */
154
231
  export interface GetTransactionBlockParams {
155
232
  /** the digest of the queried transaction */
156
233
  digest: string;
@@ -158,7 +235,12 @@ export interface GetTransactionBlockParams {
158
235
  options?: RpcTypes.SuiTransactionBlockResponseOptions | null | undefined;
159
236
  signal?: AbortSignal;
160
237
  }
161
- /** Return the object data for a list of objects */
238
+ /**
239
+ * Return the object data for a list of objects
240
+ *
241
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
242
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
243
+ */
162
244
  export interface MultiGetObjectsParams {
163
245
  /** the IDs of the queried objects */
164
246
  ids: string[];
@@ -169,6 +251,9 @@ export interface MultiGetObjectsParams {
169
251
  /**
170
252
  * Returns an ordered list of transaction responses The method will throw an error if the input
171
253
  * contains any duplicate or the input size exceeds QUERY_MAX_RESULT_LIMIT
254
+ *
255
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
256
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
172
257
  */
173
258
  export interface MultiGetTransactionBlocksParams {
174
259
  /** A list of transaction digests. */
@@ -181,6 +266,9 @@ export interface MultiGetTransactionBlocksParams {
181
266
  * Note there is no software-level guarantee/SLA that objects with past versions can be retrieved by
182
267
  * this API, even if the object and version exists/existed. The result may vary across nodes depending
183
268
  * on their pruning policies. Return the object information for a specified version
269
+ *
270
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
271
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
184
272
  */
185
273
  export interface TryGetPastObjectParams {
186
274
  /** the ID of the queried object */
@@ -195,6 +283,9 @@ export interface TryGetPastObjectParams {
195
283
  * Note there is no software-level guarantee/SLA that objects with past versions can be retrieved by
196
284
  * this API, even if the object and version exists/existed. The result may vary across nodes depending
197
285
  * on their pruning policies. Return the object information for a specified version
286
+ *
287
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
288
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
198
289
  */
199
290
  export interface TryMultiGetPastObjectsParams {
200
291
  /** a vector of object and versions to be queried */
@@ -203,7 +294,12 @@ export interface TryMultiGetPastObjectsParams {
203
294
  options?: RpcTypes.SuiObjectDataOptions | null | undefined;
204
295
  signal?: AbortSignal;
205
296
  }
206
- /** Verify a zklogin signature for the given bytes, intent scope and author. */
297
+ /**
298
+ * Verify a zklogin signature for the given bytes, intent scope and author.
299
+ *
300
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
301
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
302
+ */
207
303
  export interface VerifyZkLoginSignatureParams {
208
304
  /**
209
305
  * The Base64 string of bcs bytes for raw transaction data or personal message indicated by
@@ -218,13 +314,23 @@ export interface VerifyZkLoginSignatureParams {
218
314
  author: string;
219
315
  signal?: AbortSignal;
220
316
  }
221
- /** Return the total coin balance for all coin type, owned by the address owner. */
317
+ /**
318
+ * Return the total coin balance for all coin type, owned by the address owner.
319
+ *
320
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
321
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
322
+ */
222
323
  export interface GetAllBalancesParams {
223
324
  /** the owner's Sui address */
224
325
  owner: string;
225
326
  signal?: AbortSignal;
226
327
  }
227
- /** Return all Coin objects owned by an address. */
328
+ /**
329
+ * Return all Coin objects owned by an address.
330
+ *
331
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
332
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
333
+ */
228
334
  export interface GetAllCoinsParams {
229
335
  /** the owner's Sui address */
230
336
  owner: string;
@@ -234,7 +340,12 @@ export interface GetAllCoinsParams {
234
340
  limit?: number | null | undefined;
235
341
  signal?: AbortSignal;
236
342
  }
237
- /** Return the total coin balance for one coin type, owned by the address owner. */
343
+ /**
344
+ * Return the total coin balance for one coin type, owned by the address owner.
345
+ *
346
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
347
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
348
+ */
238
349
  export interface GetBalanceParams {
239
350
  /** the owner's Sui address */
240
351
  owner: string;
@@ -249,13 +360,21 @@ export interface GetBalanceParams {
249
360
  * Return metadata (e.g., symbol, decimals) for a coin. Note that if the coin's metadata was wrapped in
250
361
  * the transaction that published its marker type, or the latest version of the metadata object is
251
362
  * wrapped or deleted, it will not be found.
363
+ *
364
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
365
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
252
366
  */
253
367
  export interface GetCoinMetadataParams {
254
368
  /** type name for the coin (e.g., 0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC) */
255
369
  coinType: string;
256
370
  signal?: AbortSignal;
257
371
  }
258
- /** Return all Coin<`coin_type`> objects owned by an address. */
372
+ /**
373
+ * Return all Coin<`coin_type`> objects owned by an address.
374
+ *
375
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
376
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
377
+ */
259
378
  export interface GetCoinsParams {
260
379
  /** the owner's Sui address */
261
380
  owner: string;
@@ -270,13 +389,23 @@ export interface GetCoinsParams {
270
389
  limit?: number | null | undefined;
271
390
  signal?: AbortSignal;
272
391
  }
273
- /** Return the committee information for the asked `epoch`. */
392
+ /**
393
+ * Return the committee information for the asked `epoch`.
394
+ *
395
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
396
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
397
+ */
274
398
  export interface GetCommitteeInfoParams {
275
399
  /** The epoch of interest. If None, default to the latest epoch */
276
400
  epoch?: string | null | undefined;
277
401
  signal?: AbortSignal;
278
402
  }
279
- /** Return the dynamic field object information for a specified object */
403
+ /**
404
+ * Return the dynamic field object information for a specified object
405
+ *
406
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
407
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
408
+ */
280
409
  export interface GetDynamicFieldObjectParams {
281
410
  /** The ID of the queried parent object */
282
411
  parentId: string;
@@ -284,7 +413,12 @@ export interface GetDynamicFieldObjectParams {
284
413
  name: RpcTypes.DynamicFieldName;
285
414
  signal?: AbortSignal;
286
415
  }
287
- /** Return the list of dynamic field objects owned by an object. */
416
+ /**
417
+ * Return the list of dynamic field objects owned by an object.
418
+ *
419
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
420
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
421
+ */
288
422
  export interface GetDynamicFieldsParams {
289
423
  /** The ID of the parent object */
290
424
  parentId: string;
@@ -297,7 +431,12 @@ export interface GetDynamicFieldsParams {
297
431
  limit?: number | null | undefined;
298
432
  signal?: AbortSignal;
299
433
  }
300
- /** Return the latest SUI system state object on-chain. */
434
+ /**
435
+ * Return the latest SUI system state object on-chain.
436
+ *
437
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
438
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
439
+ */
301
440
  export interface GetLatestSuiSystemStateParams {
302
441
  signal?: AbortSignal;
303
442
  }
@@ -305,6 +444,9 @@ export interface GetLatestSuiSystemStateParams {
305
444
  * Return the list of objects owned by an address. Note that if the address owns more than
306
445
  * `QUERY_MAX_RESULT_LIMIT` objects, the pagination is not accurate, because previous page may have
307
446
  * been updated when the next page is fetched. Please use suix_queryObjects if this is a concern.
447
+ *
448
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
449
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
308
450
  */
309
451
  export type GetOwnedObjectsParams = {
310
452
  /** the owner's Sui address */
@@ -318,31 +460,61 @@ export type GetOwnedObjectsParams = {
318
460
  limit?: number | null | undefined;
319
461
  signal?: AbortSignal;
320
462
  } & RpcTypes.SuiObjectResponseQuery;
321
- /** Return the reference gas price for the network */
463
+ /**
464
+ * Return the reference gas price for the network
465
+ *
466
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
467
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
468
+ */
322
469
  export interface GetReferenceGasPriceParams {
323
470
  signal?: AbortSignal;
324
471
  }
325
- /** Return all [DelegatedStake]. */
472
+ /**
473
+ * Return all [DelegatedStake].
474
+ *
475
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
476
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
477
+ */
326
478
  export interface GetStakesParams {
327
479
  owner: string;
328
480
  signal?: AbortSignal;
329
481
  }
330
- /** Return one or more [DelegatedStake]. If a Stake was withdrawn its status will be Unstaked. */
482
+ /**
483
+ * Return one or more [DelegatedStake]. If a Stake was withdrawn its status will be Unstaked.
484
+ *
485
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
486
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
487
+ */
331
488
  export interface GetStakesByIdsParams {
332
489
  stakedSuiIds: string[];
333
490
  signal?: AbortSignal;
334
491
  }
335
- /** Return total supply for a coin */
492
+ /**
493
+ * Return total supply for a coin
494
+ *
495
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
496
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
497
+ */
336
498
  export interface GetTotalSupplyParams {
337
499
  /** type name for the coin (e.g., 0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC) */
338
500
  coinType: string;
339
501
  signal?: AbortSignal;
340
502
  }
341
- /** Return the validator APY */
503
+ /**
504
+ * Return the validator APY
505
+ *
506
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
507
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
508
+ */
342
509
  export interface GetValidatorsApyParams {
343
510
  signal?: AbortSignal;
344
511
  }
345
- /** Return list of events for a specified query criteria. */
512
+ /**
513
+ * Return list of events for a specified query criteria.
514
+ *
515
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
516
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
517
+ */
346
518
  export interface QueryEventsParams {
347
519
  /**
348
520
  * The event query criteria. See [Event filter](https://docs.sui.io/build/event_api#event-filters)
@@ -357,7 +529,12 @@ export interface QueryEventsParams {
357
529
  order?: 'ascending' | 'descending' | null | undefined;
358
530
  signal?: AbortSignal;
359
531
  }
360
- /** Return list of transactions for a specified query criteria. */
532
+ /**
533
+ * Return list of transactions for a specified query criteria.
534
+ *
535
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
536
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
537
+ */
361
538
  export type QueryTransactionBlocksParams = {
362
539
  /**
363
540
  * An optional paging cursor. If provided, the query will start from the next item after the specified
@@ -370,7 +547,12 @@ export type QueryTransactionBlocksParams = {
370
547
  order?: 'ascending' | 'descending' | null | undefined;
371
548
  signal?: AbortSignal;
372
549
  } & RpcTypes.SuiTransactionBlockResponseQuery;
373
- /** Return the resolved address given resolver and name */
550
+ /**
551
+ * Return the resolved address given resolver and name
552
+ *
553
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
554
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
555
+ */
374
556
  export interface ResolveNameServiceAddressParams {
375
557
  /** The name to resolve */
376
558
  name: string;
@@ -379,6 +561,9 @@ export interface ResolveNameServiceAddressParams {
379
561
  /**
380
562
  * Return the resolved names given address, if multiple names are resolved, the first one is the
381
563
  * primary name.
564
+ *
565
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
566
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
382
567
  */
383
568
  export interface ResolveNameServiceNamesParams {
384
569
  /** The address to resolve */
@@ -387,7 +572,12 @@ export interface ResolveNameServiceNamesParams {
387
572
  limit?: number | null | undefined;
388
573
  signal?: AbortSignal;
389
574
  }
390
- /** Subscribe to a stream of Sui event */
575
+ /**
576
+ * Subscribe to a stream of Sui event
577
+ *
578
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
579
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
580
+ */
391
581
  export interface SubscribeEventParams {
392
582
  /**
393
583
  * The filter criteria of the event stream. See
@@ -396,12 +586,22 @@ export interface SubscribeEventParams {
396
586
  filter: RpcTypes.SuiEventFilter;
397
587
  signal?: AbortSignal;
398
588
  }
399
- /** Subscribe to a stream of Sui transaction effects */
589
+ /**
590
+ * Subscribe to a stream of Sui transaction effects
591
+ *
592
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
593
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
594
+ */
400
595
  export interface SubscribeTransactionParams {
401
596
  filter: RpcTypes.TransactionFilter;
402
597
  signal?: AbortSignal;
403
598
  }
404
- /** Create an unsigned batched transaction. */
599
+ /**
600
+ * Create an unsigned batched transaction.
601
+ *
602
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
603
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
604
+ */
405
605
  export interface UnsafeBatchTransactionParams {
406
606
  /** the transaction signer's Sui address */
407
607
  signer: string;
@@ -418,7 +618,12 @@ export interface UnsafeBatchTransactionParams {
418
618
  txnBuilderMode?: RpcTypes.SuiTransactionBlockBuilderMode | null | undefined;
419
619
  signal?: AbortSignal;
420
620
  }
421
- /** Create an unsigned transaction to merge multiple coins into one coin. */
621
+ /**
622
+ * Create an unsigned transaction to merge multiple coins into one coin.
623
+ *
624
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
625
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
626
+ */
422
627
  export interface UnsafeMergeCoinsParams {
423
628
  /** the transaction signer's Sui address */
424
629
  signer: string;
@@ -441,6 +646,9 @@ export interface UnsafeMergeCoinsParams {
441
646
  /**
442
647
  * Create an unsigned transaction to execute a Move call on the network, by calling the specified
443
648
  * function in the module of a given package.
649
+ *
650
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
651
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
444
652
  */
445
653
  export interface UnsafeMoveCallParams {
446
654
  /** the transaction signer's Sui address */
@@ -477,6 +685,9 @@ export interface UnsafeMoveCallParams {
477
685
  * The object specified in the `gas` field will be used to pay the gas fee for the transaction. The gas
478
686
  * object can not appear in `input_coins`. If the gas object is not specified, the RPC server will
479
687
  * auto-select one.
688
+ *
689
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
690
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
480
691
  */
481
692
  export interface UnsafePayParams {
482
693
  /** the transaction signer's Sui address */
@@ -502,6 +713,9 @@ export interface UnsafePayParams {
502
713
  * deposit all SUI to the first input coin 2. transfer the updated first coin to the recipient and also
503
714
  * use this first coin as gas coin object. 3. the balance of the first input coin after tx is
504
715
  * sum(input_coins) - actual_gas_cost. 4. all other input coins other than the first are deleted.
716
+ *
717
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
718
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
505
719
  */
506
720
  export interface UnsafePayAllSuiParams {
507
721
  /** the transaction signer's Sui address */
@@ -522,6 +736,9 @@ export interface UnsafePayAllSuiParams {
522
736
  * input coin, then use the first input coin as the gas coin object. 3. the balance of the first input
523
737
  * coin after tx is sum(input_coins) - sum(amounts) - actual_gas_cost 4. all other input coins other
524
738
  * than the first one are deleted.
739
+ *
740
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
741
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
525
742
  */
526
743
  export interface UnsafePaySuiParams {
527
744
  /** the transaction signer's Sui address */
@@ -536,7 +753,12 @@ export interface UnsafePaySuiParams {
536
753
  gasBudget: string;
537
754
  signal?: AbortSignal;
538
755
  }
539
- /** Create an unsigned transaction to publish a Move package. */
756
+ /**
757
+ * Create an unsigned transaction to publish a Move package.
758
+ *
759
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
760
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
761
+ */
540
762
  export interface UnsafePublishParams {
541
763
  /** the transaction signer's Sui address */
542
764
  sender: string;
@@ -553,7 +775,12 @@ export interface UnsafePublishParams {
553
775
  gasBudget: string;
554
776
  signal?: AbortSignal;
555
777
  }
556
- /** Add stake to a validator's staking pool using multiple coins and amount. */
778
+ /**
779
+ * Add stake to a validator's staking pool using multiple coins and amount.
780
+ *
781
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
782
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
783
+ */
557
784
  export interface UnsafeRequestAddStakeParams {
558
785
  /** the transaction signer's Sui address */
559
786
  signer: string;
@@ -572,7 +799,12 @@ export interface UnsafeRequestAddStakeParams {
572
799
  gasBudget: string;
573
800
  signal?: AbortSignal;
574
801
  }
575
- /** Withdraw stake from a validator's staking pool. */
802
+ /**
803
+ * Withdraw stake from a validator's staking pool.
804
+ *
805
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
806
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
807
+ */
576
808
  export interface UnsafeRequestWithdrawStakeParams {
577
809
  /** the transaction signer's Sui address */
578
810
  signer: string;
@@ -587,7 +819,12 @@ export interface UnsafeRequestWithdrawStakeParams {
587
819
  gasBudget: string;
588
820
  signal?: AbortSignal;
589
821
  }
590
- /** Create an unsigned transaction to split a coin object into multiple coins. */
822
+ /**
823
+ * Create an unsigned transaction to split a coin object into multiple coins.
824
+ *
825
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
826
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
827
+ */
591
828
  export interface UnsafeSplitCoinParams {
592
829
  /** the transaction signer's Sui address */
593
830
  signer: string;
@@ -604,7 +841,12 @@ export interface UnsafeSplitCoinParams {
604
841
  gasBudget: string;
605
842
  signal?: AbortSignal;
606
843
  }
607
- /** Create an unsigned transaction to split a coin object into multiple equal-size coins. */
844
+ /**
845
+ * Create an unsigned transaction to split a coin object into multiple equal-size coins.
846
+ *
847
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
848
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
849
+ */
608
850
  export interface UnsafeSplitCoinEqualParams {
609
851
  /** the transaction signer's Sui address */
610
852
  signer: string;
@@ -624,6 +866,9 @@ export interface UnsafeSplitCoinEqualParams {
624
866
  /**
625
867
  * Create an unsigned transaction to transfer an object from one address to another. The object's type
626
868
  * must allow public transfers
869
+ *
870
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
871
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
627
872
  */
628
873
  export interface UnsafeTransferObjectParams {
629
874
  /** the transaction signer's Sui address */
@@ -644,6 +889,9 @@ export interface UnsafeTransferObjectParams {
644
889
  /**
645
890
  * Create an unsigned transaction to send SUI coin object to a Sui address. The SUI object is also used
646
891
  * as the gas object.
892
+ *
893
+ * @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient` from
894
+ * `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
647
895
  */
648
896
  export interface UnsafeTransferSuiParams {
649
897
  /** the transaction signer's Sui address */
package/src/version.ts CHANGED
@@ -3,4 +3,4 @@
3
3
 
4
4
  // This file is generated by genversion.mjs. Do not edit it directly.
5
5
 
6
- export const PACKAGE_VERSION = '2.20.3';
6
+ export const PACKAGE_VERSION = '2.21.0';