@mysten/sui 2.22.1 → 2.23.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 (139) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/bcs/bcs.d.mts +6 -6
  3. package/dist/bcs/bcs.d.mts.map +1 -1
  4. package/dist/bcs/bcs.mjs +1 -19
  5. package/dist/bcs/bcs.mjs.map +1 -1
  6. package/dist/bcs/index.d.mts +3812 -906
  7. package/dist/bcs/index.d.mts.map +1 -1
  8. package/dist/bcs/index.mjs +2 -1
  9. package/dist/bcs/index.mjs.map +1 -1
  10. package/dist/bcs/transactions.mjs +147 -0
  11. package/dist/bcs/transactions.mjs.map +1 -0
  12. package/dist/client/core-resolver.mjs +2 -1
  13. package/dist/client/core-resolver.mjs.map +1 -1
  14. package/dist/client/core.d.mts +2 -0
  15. package/dist/client/core.d.mts.map +1 -1
  16. package/dist/client/core.mjs.map +1 -1
  17. package/dist/client/query-filters.mjs +119 -0
  18. package/dist/client/query-filters.mjs.map +1 -0
  19. package/dist/client/types.d.mts +166 -1
  20. package/dist/client/types.d.mts.map +1 -1
  21. package/dist/client/utils.d.mts.map +1 -1
  22. package/dist/client/utils.mjs +13 -1
  23. package/dist/client/utils.mjs.map +1 -1
  24. package/dist/cryptography/signature.d.mts +6 -6
  25. package/dist/graphql/client.d.mts +15 -2
  26. package/dist/graphql/client.d.mts.map +1 -1
  27. package/dist/graphql/client.mjs +6 -0
  28. package/dist/graphql/client.mjs.map +1 -1
  29. package/dist/graphql/core.d.mts +5 -1
  30. package/dist/graphql/core.d.mts.map +1 -1
  31. package/dist/graphql/core.mjs +85 -3
  32. package/dist/graphql/core.mjs.map +1 -1
  33. package/dist/graphql/generated/queries.d.mts.map +1 -1
  34. package/dist/graphql/generated/queries.mjs +137 -1
  35. package/dist/graphql/generated/queries.mjs.map +1 -1
  36. package/dist/graphql/generated/tada-env.d.mts +108 -0
  37. package/dist/graphql/index.d.mts +2 -2
  38. package/dist/grpc/client.d.mts +11 -0
  39. package/dist/grpc/client.d.mts.map +1 -1
  40. package/dist/grpc/client.mjs +6 -0
  41. package/dist/grpc/client.mjs.map +1 -1
  42. package/dist/grpc/core.d.mts +5 -1
  43. package/dist/grpc/core.d.mts.map +1 -1
  44. package/dist/grpc/core.mjs +100 -2
  45. package/dist/grpc/core.mjs.map +1 -1
  46. package/dist/grpc/filters.mjs +45 -0
  47. package/dist/grpc/filters.mjs.map +1 -0
  48. package/dist/grpc/proto/sui/rpc/v2/event.d.mts +31 -0
  49. package/dist/grpc/proto/sui/rpc/v2/event.d.mts.map +1 -1
  50. package/dist/grpc/proto/sui/rpc/v2/event.mjs +30 -0
  51. package/dist/grpc/proto/sui/rpc/v2/event.mjs.map +1 -1
  52. package/dist/grpc/proto/sui/rpc/v2/executed_transaction.d.mts +7 -0
  53. package/dist/grpc/proto/sui/rpc/v2/executed_transaction.d.mts.map +1 -1
  54. package/dist/grpc/proto/sui/rpc/v2/executed_transaction.mjs +8 -0
  55. package/dist/grpc/proto/sui/rpc/v2/executed_transaction.mjs.map +1 -1
  56. package/dist/grpc/proto/sui/rpc/v2/filter.d.mts +423 -0
  57. package/dist/grpc/proto/sui/rpc/v2/filter.d.mts.map +1 -0
  58. package/dist/grpc/proto/sui/rpc/v2/filter.mjs +297 -0
  59. package/dist/grpc/proto/sui/rpc/v2/filter.mjs.map +1 -0
  60. package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts +62 -6
  61. package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts.map +1 -1
  62. package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.mjs +37 -0
  63. package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.mjs.map +1 -1
  64. package/dist/grpc/proto/sui/rpc/v2/ledger_service.d.mts +293 -1
  65. package/dist/grpc/proto/sui/rpc/v2/ledger_service.d.mts.map +1 -1
  66. package/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs +241 -1
  67. package/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs.map +1 -1
  68. package/dist/grpc/proto/sui/rpc/v2/move_package_service.client.d.mts +4 -4
  69. package/dist/grpc/proto/sui/rpc/v2/name_service.client.d.mts +4 -4
  70. package/dist/grpc/proto/sui/rpc/v2/protocol_config.d.mts +15 -2
  71. package/dist/grpc/proto/sui/rpc/v2/protocol_config.d.mts.map +1 -1
  72. package/dist/grpc/proto/sui/rpc/v2/protocol_config.mjs +11 -0
  73. package/dist/grpc/proto/sui/rpc/v2/protocol_config.mjs.map +1 -1
  74. package/dist/grpc/proto/sui/rpc/v2/query_options.d.mts +211 -0
  75. package/dist/grpc/proto/sui/rpc/v2/query_options.d.mts.map +1 -0
  76. package/dist/grpc/proto/sui/rpc/v2/query_options.mjs +163 -0
  77. package/dist/grpc/proto/sui/rpc/v2/query_options.mjs.map +1 -0
  78. package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.mts +4 -4
  79. package/dist/grpc/proto/sui/rpc/v2/state_service.client.d.mts +4 -4
  80. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +105 -23
  81. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts.map +1 -1
  82. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.mjs +56 -9
  83. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.mjs.map +1 -1
  84. package/dist/grpc/proto/sui/rpc/v2/subscription_service.d.mts +148 -8
  85. package/dist/grpc/proto/sui/rpc/v2/subscription_service.d.mts.map +1 -1
  86. package/dist/grpc/proto/sui/rpc/v2/subscription_service.mjs +109 -8
  87. package/dist/grpc/proto/sui/rpc/v2/subscription_service.mjs.map +1 -1
  88. package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.mts +4 -4
  89. package/dist/grpc/proto/types.d.mts +5 -3
  90. package/dist/grpc/proto/types.mjs +33 -2
  91. package/dist/grpc/proto/types.mjs.map +1 -1
  92. package/dist/jsonRpc/core.d.mts +10 -0
  93. package/dist/jsonRpc/core.d.mts.map +1 -1
  94. package/dist/jsonRpc/core.mjs +85 -2
  95. package/dist/jsonRpc/core.mjs.map +1 -1
  96. package/dist/transactions/Transaction.d.mts +9 -9
  97. package/dist/transactions/Transaction.d.mts.map +1 -1
  98. package/dist/transactions/intents/CoinWithBalance.mjs +14 -18
  99. package/dist/transactions/intents/CoinWithBalance.mjs.map +1 -1
  100. package/dist/version.mjs +1 -1
  101. package/dist/version.mjs.map +1 -1
  102. package/dist/zklogin/bcs.d.mts +14 -14
  103. package/dist/zklogin/bcs.d.mts.map +1 -1
  104. package/docs/clients/core.md +115 -1
  105. package/docs/clients/grpc.md +68 -0
  106. package/docs/migrations/sui-2.0/json-rpc-migration.md +104 -101
  107. package/package.json +2 -2
  108. package/src/bcs/bcs.ts +0 -27
  109. package/src/bcs/index.ts +7 -5
  110. package/src/bcs/transactions.ts +226 -0
  111. package/src/client/core-resolver.ts +5 -1
  112. package/src/client/core.ts +8 -0
  113. package/src/client/query-filters.ts +195 -0
  114. package/src/client/types.ts +186 -1
  115. package/src/client/utils.ts +13 -0
  116. package/src/graphql/client.ts +25 -1
  117. package/src/graphql/core.ts +143 -3
  118. package/src/graphql/generated/queries.ts +226 -0
  119. package/src/graphql/generated/schema.graphql +75 -0
  120. package/src/graphql/generated/tada-env.ts +133 -0
  121. package/src/graphql/index.ts +1 -0
  122. package/src/graphql/queries/listEvents.graphql +40 -0
  123. package/src/graphql/queries/transactions.graphql +26 -0
  124. package/src/grpc/client.ts +19 -0
  125. package/src/grpc/core.ts +187 -3
  126. package/src/grpc/filters.ts +68 -0
  127. package/src/grpc/proto/sui/rpc/v2/event.ts +49 -0
  128. package/src/grpc/proto/sui/rpc/v2/executed_transaction.ts +15 -0
  129. package/src/grpc/proto/sui/rpc/v2/filter.ts +589 -0
  130. package/src/grpc/proto/sui/rpc/v2/ledger_service.client.ts +111 -0
  131. package/src/grpc/proto/sui/rpc/v2/ledger_service.ts +406 -0
  132. package/src/grpc/proto/sui/rpc/v2/protocol_config.ts +22 -2
  133. package/src/grpc/proto/sui/rpc/v2/query_options.ts +255 -0
  134. package/src/grpc/proto/sui/rpc/v2/subscription_service.client.ts +136 -18
  135. package/src/grpc/proto/sui/rpc/v2/subscription_service.ts +187 -7
  136. package/src/grpc/proto/types.ts +2 -0
  137. package/src/jsonRpc/core.ts +136 -2
  138. package/src/transactions/intents/CoinWithBalance.ts +41 -41
  139. package/src/version.ts +1 -1
@@ -11,6 +11,12 @@
11
11
  //
12
12
  import { ServiceType } from '@protobuf-ts/runtime-rpc';
13
13
  import { MessageType } from '@protobuf-ts/runtime';
14
+ import { Event } from './event.js';
15
+ import { EventFilter } from './filter.js';
16
+ import { QueryEnd } from './query_options.js';
17
+ import { Watermark } from './query_options.js';
18
+ import { QueryOptions } from './query_options.js';
19
+ import { TransactionFilter } from './filter.js';
14
20
  import { Epoch } from './epoch.js';
15
21
  import { Checkpoint } from './checkpoint.js';
16
22
  import { ExecutedTransaction } from './executed_transaction.js';
@@ -320,6 +326,253 @@ export interface GetEpochResponse {
320
326
  */
321
327
  epoch?: Epoch;
322
328
  }
329
+ /**
330
+ * Request message for LedgerService.ListCheckpoints.
331
+ *
332
+ * @generated from protobuf message sui.rpc.v2.ListCheckpointsRequest
333
+ */
334
+ export interface ListCheckpointsRequest {
335
+ /**
336
+ * Optional. Mask for specifying which parts of the Checkpoint should be
337
+ * returned (e.g. summary, contents, signatures).
338
+ *
339
+ * @generated from protobuf field: optional google.protobuf.FieldMask read_mask = 1;
340
+ */
341
+ readMask?: FieldMask;
342
+ /**
343
+ * Optional. Start of the checkpoint range to query (inclusive). Defaults to
344
+ * genesis.
345
+ *
346
+ * @generated from protobuf field: optional uint64 start_checkpoint = 2;
347
+ */
348
+ startCheckpoint?: bigint;
349
+ /**
350
+ * Optional. End of the checkpoint range to query (exclusive). Defaults to the
351
+ * current indexed ledger tip.
352
+ *
353
+ * @generated from protobuf field: optional uint64 end_checkpoint = 3;
354
+ */
355
+ endCheckpoint?: bigint;
356
+ /**
357
+ * Optional. DNF filter over indexed transaction dimensions. A checkpoint
358
+ * matches if any transaction it contains satisfies the filter. If absent,
359
+ * all checkpoints in the range are returned.
360
+ *
361
+ * @generated from protobuf field: optional sui.rpc.v2.TransactionFilter filter = 4;
362
+ */
363
+ filter?: TransactionFilter;
364
+ /**
365
+ * Optional cursor-bounded query options. If unspecified, reads in ascending
366
+ * order with the default item limit. The server enforces a maximum item
367
+ * limit and silently coerces larger values down to it. To paginate, pass
368
+ * the last received `Watermark.cursor` as `options.after` (ascending) or
369
+ * `options.before` (descending) on the next request.
370
+ *
371
+ * @generated from protobuf field: optional sui.rpc.v2.QueryOptions options = 5;
372
+ */
373
+ options?: QueryOptions;
374
+ }
375
+ /**
376
+ * Response message for LedgerService.ListCheckpoints.
377
+ *
378
+ * Every frame carries a `watermark` with a safe resume cursor. A frame
379
+ * with `checkpoint` set delivers one matching item; a frame without it reports
380
+ * scan progress or terminal completion. Watermarks never regress in the
381
+ * requested ordering but may repeat.
382
+ *
383
+ * `end` is set exactly once, on the final frame of a successful stream. For
384
+ * `QUERY_END_REASON_ITEM_LIMIT`, that frame also carries the final item. For
385
+ * every other end reason, the final frame has no `checkpoint` payload.
386
+ *
387
+ * @generated from protobuf message sui.rpc.v2.ListCheckpointsResponse
388
+ */
389
+ export interface ListCheckpointsResponse {
390
+ /**
391
+ * One matching checkpoint.
392
+ *
393
+ * @generated from protobuf field: optional sui.rpc.v2.Checkpoint checkpoint = 1;
394
+ */
395
+ checkpoint?: Checkpoint;
396
+ /**
397
+ * Progress watermark as of this frame. Present on every frame. A
398
+ * ScanLimit terminal watermark may repeat the previous frame's cursor when
399
+ * its authoritative scan frontier was already emitted.
400
+ *
401
+ * @generated from protobuf field: optional sui.rpc.v2.Watermark watermark = 2;
402
+ */
403
+ watermark?: Watermark;
404
+ /**
405
+ * Set exactly once, on the final frame of a successful query stream.
406
+ *
407
+ * @generated from protobuf field: optional sui.rpc.v2.QueryEnd end = 3;
408
+ */
409
+ end?: QueryEnd;
410
+ }
411
+ /**
412
+ * Request message for LedgerService.ListTransactions.
413
+ *
414
+ * @generated from protobuf message sui.rpc.v2.ListTransactionsRequest
415
+ */
416
+ export interface ListTransactionsRequest {
417
+ /**
418
+ * Optional. Mask for specifying which parts of the ExecutedTransaction
419
+ * should be returned.
420
+ *
421
+ * @generated from protobuf field: optional google.protobuf.FieldMask read_mask = 1;
422
+ */
423
+ readMask?: FieldMask;
424
+ /**
425
+ * Optional. Start of the checkpoint range to query (inclusive). Defaults to
426
+ * genesis.
427
+ *
428
+ * @generated from protobuf field: optional uint64 start_checkpoint = 2;
429
+ */
430
+ startCheckpoint?: bigint;
431
+ /**
432
+ * Optional. End of the checkpoint range to query (exclusive). Defaults to the
433
+ * current indexed ledger tip.
434
+ *
435
+ * @generated from protobuf field: optional uint64 end_checkpoint = 3;
436
+ */
437
+ endCheckpoint?: bigint;
438
+ /**
439
+ * Optional. DNF filter over indexed dimensions.
440
+ * If absent, all transactions in the range are returned.
441
+ *
442
+ * @generated from protobuf field: optional sui.rpc.v2.TransactionFilter filter = 4;
443
+ */
444
+ filter?: TransactionFilter;
445
+ /**
446
+ * Optional cursor-bounded query options. If unspecified, reads in ascending
447
+ * order with the default item limit. The server enforces a maximum item
448
+ * limit and silently coerces larger values down to it. To paginate, pass
449
+ * the last received `Watermark.cursor` as `options.after` (ascending) or
450
+ * `options.before` (descending) on the next request.
451
+ *
452
+ * @generated from protobuf field: optional sui.rpc.v2.QueryOptions options = 5;
453
+ */
454
+ options?: QueryOptions;
455
+ }
456
+ /**
457
+ * Response message for LedgerService.ListTransactions.
458
+ *
459
+ * Every frame carries a `watermark` with a safe resume cursor. A frame
460
+ * with `transaction` set delivers one matching item; a frame without it reports
461
+ * scan progress or terminal completion. Watermarks never regress in the
462
+ * requested ordering but may repeat.
463
+ *
464
+ * `end` is set exactly once, on the final frame of a successful stream. For
465
+ * `QUERY_END_REASON_ITEM_LIMIT`, that frame also carries the final item. For
466
+ * every other end reason, the final frame has no `transaction` payload.
467
+ *
468
+ * @generated from protobuf message sui.rpc.v2.ListTransactionsResponse
469
+ */
470
+ export interface ListTransactionsResponse {
471
+ /**
472
+ * One matching transaction. Its position within the containing checkpoint
473
+ * is reported by `ExecutedTransaction.transaction_index`.
474
+ *
475
+ * @generated from protobuf field: optional sui.rpc.v2.ExecutedTransaction transaction = 1;
476
+ */
477
+ transaction?: ExecutedTransaction;
478
+ /**
479
+ * Progress watermark as of this frame. Present on every frame. A
480
+ * ScanLimit terminal watermark may repeat the previous frame's cursor when
481
+ * its authoritative scan frontier was already emitted.
482
+ *
483
+ * @generated from protobuf field: optional sui.rpc.v2.Watermark watermark = 2;
484
+ */
485
+ watermark?: Watermark;
486
+ /**
487
+ * Set exactly once, on the final frame of a successful query stream.
488
+ *
489
+ * @generated from protobuf field: optional sui.rpc.v2.QueryEnd end = 3;
490
+ */
491
+ end?: QueryEnd;
492
+ }
493
+ /**
494
+ * Request message for LedgerService.ListEvents.
495
+ *
496
+ * @generated from protobuf message sui.rpc.v2.ListEventsRequest
497
+ */
498
+ export interface ListEventsRequest {
499
+ /**
500
+ * Optional. Mask for specifying which parts of the Event should be returned.
501
+ *
502
+ * @generated from protobuf field: optional google.protobuf.FieldMask read_mask = 1;
503
+ */
504
+ readMask?: FieldMask;
505
+ /**
506
+ * Optional. Start of the checkpoint range to query (inclusive). Defaults to
507
+ * genesis.
508
+ *
509
+ * @generated from protobuf field: optional uint64 start_checkpoint = 2;
510
+ */
511
+ startCheckpoint?: bigint;
512
+ /**
513
+ * Optional. End of the checkpoint range to query (exclusive). Defaults to the
514
+ * current indexed ledger tip.
515
+ *
516
+ * @generated from protobuf field: optional uint64 end_checkpoint = 3;
517
+ */
518
+ endCheckpoint?: bigint;
519
+ /**
520
+ * Optional. DNF filter over indexed dimensions.
521
+ * If absent, all events in the range are returned.
522
+ *
523
+ * @generated from protobuf field: optional sui.rpc.v2.EventFilter filter = 4;
524
+ */
525
+ filter?: EventFilter;
526
+ /**
527
+ * Optional cursor-bounded query options. If unspecified, reads in ascending
528
+ * order with the default item limit. The server enforces a maximum item
529
+ * limit and silently coerces larger values down to it. To paginate, pass
530
+ * the last received `Watermark.cursor` as `options.after` (ascending) or
531
+ * `options.before` (descending) on the next request.
532
+ *
533
+ * @generated from protobuf field: optional sui.rpc.v2.QueryOptions options = 5;
534
+ */
535
+ options?: QueryOptions;
536
+ }
537
+ /**
538
+ * Response message for LedgerService.ListEvents.
539
+ *
540
+ * Every frame carries a `watermark` with a safe resume cursor. A frame
541
+ * with `event` set delivers one matching item; a frame without it reports scan
542
+ * progress or terminal completion. Watermarks never regress in the requested
543
+ * ordering but may repeat.
544
+ *
545
+ * `end` is set exactly once, on the final frame of a successful stream. For
546
+ * `QUERY_END_REASON_ITEM_LIMIT`, that frame also carries the final item. For
547
+ * every other end reason, the final frame has no `event` payload.
548
+ *
549
+ * @generated from protobuf message sui.rpc.v2.ListEventsResponse
550
+ */
551
+ export interface ListEventsResponse {
552
+ /**
553
+ * One matching event. Its ledger position -- containing checkpoint,
554
+ * emitting transaction digest and offset, and index within that
555
+ * transaction's event list -- is reported by the corresponding fields on
556
+ * `Event`.
557
+ *
558
+ * @generated from protobuf field: optional sui.rpc.v2.Event event = 1;
559
+ */
560
+ event?: Event;
561
+ /**
562
+ * Progress watermark as of this frame. Present on every frame. A
563
+ * ScanLimit terminal watermark may repeat the previous frame's cursor when
564
+ * its authoritative scan frontier was already emitted.
565
+ *
566
+ * @generated from protobuf field: optional sui.rpc.v2.Watermark watermark = 2;
567
+ */
568
+ watermark?: Watermark;
569
+ /**
570
+ * Set exactly once, on the final frame of a successful query stream.
571
+ *
572
+ * @generated from protobuf field: optional sui.rpc.v2.QueryEnd end = 3;
573
+ */
574
+ end?: QueryEnd;
575
+ }
323
576
  // @generated message type with reflection information, may provide speed optimized methods
324
577
  class GetServiceInfoRequest$Type extends MessageType<GetServiceInfoRequest> {
325
578
  constructor() {
@@ -606,6 +859,138 @@ class GetEpochResponse$Type extends MessageType<GetEpochResponse> {
606
859
  * @generated MessageType for protobuf message sui.rpc.v2.GetEpochResponse
607
860
  */
608
861
  export const GetEpochResponse = new GetEpochResponse$Type();
862
+ // @generated message type with reflection information, may provide speed optimized methods
863
+ class ListCheckpointsRequest$Type extends MessageType<ListCheckpointsRequest> {
864
+ constructor() {
865
+ super('sui.rpc.v2.ListCheckpointsRequest', [
866
+ { no: 1, name: 'read_mask', kind: 'message', T: () => FieldMask },
867
+ {
868
+ no: 2,
869
+ name: 'start_checkpoint',
870
+ kind: 'scalar',
871
+ opt: true,
872
+ T: 4 /*ScalarType.UINT64*/,
873
+ L: 0 /*LongType.BIGINT*/,
874
+ },
875
+ {
876
+ no: 3,
877
+ name: 'end_checkpoint',
878
+ kind: 'scalar',
879
+ opt: true,
880
+ T: 4 /*ScalarType.UINT64*/,
881
+ L: 0 /*LongType.BIGINT*/,
882
+ },
883
+ { no: 4, name: 'filter', kind: 'message', T: () => TransactionFilter },
884
+ { no: 5, name: 'options', kind: 'message', T: () => QueryOptions },
885
+ ]);
886
+ }
887
+ }
888
+ /**
889
+ * @generated MessageType for protobuf message sui.rpc.v2.ListCheckpointsRequest
890
+ */
891
+ export const ListCheckpointsRequest = new ListCheckpointsRequest$Type();
892
+ // @generated message type with reflection information, may provide speed optimized methods
893
+ class ListCheckpointsResponse$Type extends MessageType<ListCheckpointsResponse> {
894
+ constructor() {
895
+ super('sui.rpc.v2.ListCheckpointsResponse', [
896
+ { no: 1, name: 'checkpoint', kind: 'message', T: () => Checkpoint },
897
+ { no: 2, name: 'watermark', kind: 'message', T: () => Watermark },
898
+ { no: 3, name: 'end', kind: 'message', T: () => QueryEnd },
899
+ ]);
900
+ }
901
+ }
902
+ /**
903
+ * @generated MessageType for protobuf message sui.rpc.v2.ListCheckpointsResponse
904
+ */
905
+ export const ListCheckpointsResponse = new ListCheckpointsResponse$Type();
906
+ // @generated message type with reflection information, may provide speed optimized methods
907
+ class ListTransactionsRequest$Type extends MessageType<ListTransactionsRequest> {
908
+ constructor() {
909
+ super('sui.rpc.v2.ListTransactionsRequest', [
910
+ { no: 1, name: 'read_mask', kind: 'message', T: () => FieldMask },
911
+ {
912
+ no: 2,
913
+ name: 'start_checkpoint',
914
+ kind: 'scalar',
915
+ opt: true,
916
+ T: 4 /*ScalarType.UINT64*/,
917
+ L: 0 /*LongType.BIGINT*/,
918
+ },
919
+ {
920
+ no: 3,
921
+ name: 'end_checkpoint',
922
+ kind: 'scalar',
923
+ opt: true,
924
+ T: 4 /*ScalarType.UINT64*/,
925
+ L: 0 /*LongType.BIGINT*/,
926
+ },
927
+ { no: 4, name: 'filter', kind: 'message', T: () => TransactionFilter },
928
+ { no: 5, name: 'options', kind: 'message', T: () => QueryOptions },
929
+ ]);
930
+ }
931
+ }
932
+ /**
933
+ * @generated MessageType for protobuf message sui.rpc.v2.ListTransactionsRequest
934
+ */
935
+ export const ListTransactionsRequest = new ListTransactionsRequest$Type();
936
+ // @generated message type with reflection information, may provide speed optimized methods
937
+ class ListTransactionsResponse$Type extends MessageType<ListTransactionsResponse> {
938
+ constructor() {
939
+ super('sui.rpc.v2.ListTransactionsResponse', [
940
+ { no: 1, name: 'transaction', kind: 'message', T: () => ExecutedTransaction },
941
+ { no: 2, name: 'watermark', kind: 'message', T: () => Watermark },
942
+ { no: 3, name: 'end', kind: 'message', T: () => QueryEnd },
943
+ ]);
944
+ }
945
+ }
946
+ /**
947
+ * @generated MessageType for protobuf message sui.rpc.v2.ListTransactionsResponse
948
+ */
949
+ export const ListTransactionsResponse = new ListTransactionsResponse$Type();
950
+ // @generated message type with reflection information, may provide speed optimized methods
951
+ class ListEventsRequest$Type extends MessageType<ListEventsRequest> {
952
+ constructor() {
953
+ super('sui.rpc.v2.ListEventsRequest', [
954
+ { no: 1, name: 'read_mask', kind: 'message', T: () => FieldMask },
955
+ {
956
+ no: 2,
957
+ name: 'start_checkpoint',
958
+ kind: 'scalar',
959
+ opt: true,
960
+ T: 4 /*ScalarType.UINT64*/,
961
+ L: 0 /*LongType.BIGINT*/,
962
+ },
963
+ {
964
+ no: 3,
965
+ name: 'end_checkpoint',
966
+ kind: 'scalar',
967
+ opt: true,
968
+ T: 4 /*ScalarType.UINT64*/,
969
+ L: 0 /*LongType.BIGINT*/,
970
+ },
971
+ { no: 4, name: 'filter', kind: 'message', T: () => EventFilter },
972
+ { no: 5, name: 'options', kind: 'message', T: () => QueryOptions },
973
+ ]);
974
+ }
975
+ }
976
+ /**
977
+ * @generated MessageType for protobuf message sui.rpc.v2.ListEventsRequest
978
+ */
979
+ export const ListEventsRequest = new ListEventsRequest$Type();
980
+ // @generated message type with reflection information, may provide speed optimized methods
981
+ class ListEventsResponse$Type extends MessageType<ListEventsResponse> {
982
+ constructor() {
983
+ super('sui.rpc.v2.ListEventsResponse', [
984
+ { no: 1, name: 'event', kind: 'message', T: () => Event },
985
+ { no: 2, name: 'watermark', kind: 'message', T: () => Watermark },
986
+ { no: 3, name: 'end', kind: 'message', T: () => QueryEnd },
987
+ ]);
988
+ }
989
+ }
990
+ /**
991
+ * @generated MessageType for protobuf message sui.rpc.v2.ListEventsResponse
992
+ */
993
+ export const ListEventsResponse = new ListEventsResponse$Type();
609
994
  /**
610
995
  * @generated ServiceType for protobuf service sui.rpc.v2.LedgerService
611
996
  */
@@ -622,4 +1007,25 @@ export const LedgerService = new ServiceType('sui.rpc.v2.LedgerService', [
622
1007
  },
623
1008
  { name: 'GetCheckpoint', options: {}, I: GetCheckpointRequest, O: GetCheckpointResponse },
624
1009
  { name: 'GetEpoch', options: {}, I: GetEpochRequest, O: GetEpochResponse },
1010
+ {
1011
+ name: 'ListCheckpoints',
1012
+ serverStreaming: true,
1013
+ options: {},
1014
+ I: ListCheckpointsRequest,
1015
+ O: ListCheckpointsResponse,
1016
+ },
1017
+ {
1018
+ name: 'ListTransactions',
1019
+ serverStreaming: true,
1020
+ options: {},
1021
+ I: ListTransactionsRequest,
1022
+ O: ListTransactionsResponse,
1023
+ },
1024
+ {
1025
+ name: 'ListEvents',
1026
+ serverStreaming: true,
1027
+ options: {},
1028
+ I: ListEventsRequest,
1029
+ O: ListEventsResponse,
1030
+ },
625
1031
  ]);
@@ -10,6 +10,7 @@
10
10
  // SPDX-License-Identifier: Apache-2.0
11
11
  //
12
12
  import { MessageType } from '@protobuf-ts/runtime';
13
+ import { Value } from '../../../google/protobuf/struct.js';
13
14
  /**
14
15
  * @generated from protobuf message sui.rpc.v2.ProtocolConfig
15
16
  */
@@ -19,17 +20,29 @@ export interface ProtocolConfig {
19
20
  */
20
21
  protocolVersion?: bigint;
21
22
  /**
22
- * @generated from protobuf field: map<string, bool> feature_flags = 2;
23
+ * Deprecated in favor of the lossless `configs` field.
24
+ *
25
+ * @deprecated
26
+ * @generated from protobuf field: map<string, bool> feature_flags = 2 [deprecated = true];
23
27
  */
24
28
  featureFlags: {
25
29
  [key: string]: boolean;
26
30
  };
27
31
  /**
28
- * @generated from protobuf field: map<string, string> attributes = 3;
32
+ * Deprecated in favor of the lossless `configs` field.
33
+ *
34
+ * @deprecated
35
+ * @generated from protobuf field: map<string, string> attributes = 3 [deprecated = true];
29
36
  */
30
37
  attributes: {
31
38
  [key: string]: string;
32
39
  };
40
+ /**
41
+ * @generated from protobuf field: map<string, google.protobuf.Value> configs = 4;
42
+ */
43
+ configs: {
44
+ [key: string]: Value;
45
+ };
33
46
  }
34
47
  // @generated message type with reflection information, may provide speed optimized methods
35
48
  class ProtocolConfig$Type extends MessageType<ProtocolConfig> {
@@ -57,6 +70,13 @@ class ProtocolConfig$Type extends MessageType<ProtocolConfig> {
57
70
  K: 9 /*ScalarType.STRING*/,
58
71
  V: { kind: 'scalar', T: 9 /*ScalarType.STRING*/ },
59
72
  },
73
+ {
74
+ no: 4,
75
+ name: 'configs',
76
+ kind: 'map',
77
+ K: 9 /*ScalarType.STRING*/,
78
+ V: { kind: 'message', T: () => Value },
79
+ },
60
80
  ]);
61
81
  }
62
82
  }