@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
@@ -75,6 +75,36 @@ var Event$Type = class extends MessageType {
75
75
  name: "json",
76
76
  kind: "message",
77
77
  T: () => Value
78
+ },
79
+ {
80
+ no: 7,
81
+ name: "checkpoint",
82
+ kind: "scalar",
83
+ opt: true,
84
+ T: 4,
85
+ L: 0
86
+ },
87
+ {
88
+ no: 8,
89
+ name: "transaction_digest",
90
+ kind: "scalar",
91
+ opt: true,
92
+ T: 9
93
+ },
94
+ {
95
+ no: 9,
96
+ name: "transaction_index",
97
+ kind: "scalar",
98
+ opt: true,
99
+ T: 4,
100
+ L: 0
101
+ },
102
+ {
103
+ no: 10,
104
+ name: "event_index",
105
+ kind: "scalar",
106
+ opt: true,
107
+ T: 13
78
108
  }
79
109
  ]);
80
110
  }
@@ -1 +1 @@
1
- {"version":3,"file":"event.mjs","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/event.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"sui/rpc/v2/event.proto\" (package \"sui.rpc.v2\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n//\nimport { MessageType } from '@protobuf-ts/runtime';\nimport { Value } from '../../../google/protobuf/struct.js';\nimport { Bcs } from './bcs.js';\n/**\n * Events emitted during the successful execution of a transaction.\n *\n * @generated from protobuf message sui.rpc.v2.TransactionEvents\n */\nexport interface TransactionEvents {\n\t/**\n\t * This TransactionEvents serialized as BCS.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.Bcs bcs = 1;\n\t */\n\tbcs?: Bcs;\n\t/**\n\t * The digest of this TransactionEvents.\n\t *\n\t * @generated from protobuf field: optional string digest = 2;\n\t */\n\tdigest?: string;\n\t/**\n\t * Set of events emitted by a transaction.\n\t *\n\t * @generated from protobuf field: repeated sui.rpc.v2.Event events = 3;\n\t */\n\tevents: Event[];\n}\n/**\n * An event.\n *\n * @generated from protobuf message sui.rpc.v2.Event\n */\nexport interface Event {\n\t/**\n\t * Package ID of the top-level function invoked by a `MoveCall` command that triggered this\n\t * event to be emitted.\n\t *\n\t * @generated from protobuf field: optional string package_id = 1;\n\t */\n\tpackageId?: string;\n\t/**\n\t * Module name of the top-level function invoked by a `MoveCall` command that triggered this\n\t * event to be emitted.\n\t *\n\t * @generated from protobuf field: optional string module = 2;\n\t */\n\tmodule?: string;\n\t/**\n\t * Address of the account that sent the transaction where this event was emitted.\n\t *\n\t * @generated from protobuf field: optional string sender = 3;\n\t */\n\tsender?: string;\n\t/**\n\t * The type of the event emitted.\n\t *\n\t * @generated from protobuf field: optional string event_type = 4;\n\t */\n\teventType?: string;\n\t/**\n\t * BCS serialized bytes of the event.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.Bcs contents = 5;\n\t */\n\tcontents?: Bcs;\n\t/**\n\t * JSON rendering of the event.\n\t *\n\t * @generated from protobuf field: optional google.protobuf.Value json = 6;\n\t */\n\tjson?: Value;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass TransactionEvents$Type extends MessageType<TransactionEvents> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.TransactionEvents', [\n\t\t\t{ no: 1, name: 'bcs', kind: 'message', T: () => Bcs },\n\t\t\t{ no: 2, name: 'digest', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 3, name: 'events', kind: 'message', repeat: 2 /*RepeatType.UNPACKED*/, T: () => Event },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.TransactionEvents\n */\nexport const TransactionEvents = new TransactionEvents$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass Event$Type extends MessageType<Event> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.Event', [\n\t\t\t{ no: 1, name: 'package_id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'module', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 3, name: 'sender', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 4, name: 'event_type', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 5, name: 'contents', kind: 'message', T: () => Bcs },\n\t\t\t{ no: 6, name: 'json', kind: 'message', T: () => Value },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.Event\n */\nexport const Event = new Event$Type();\n"],"mappings":";;;;;AAqFA,IAAM,yBAAN,cAAqC,YAA+B;CACnE,cAAc;AACb,QAAM,gCAAgC;GACrC;IAAE,IAAI;IAAG,MAAM;IAAO,MAAM;IAAW,SAAS;IAAK;GACrD;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GAChF;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAW,QAAQ;IAA2B,SAAS;IAAO;GAC7F,CAAC;;;;;;AAMJ,MAAa,oBAAoB,IAAI,wBAAwB;AAE7D,IAAM,aAAN,cAAyB,YAAmB;CAC3C,cAAc;AACb,QAAM,oBAAoB;GACzB;IAAE,IAAI;IAAG,MAAM;IAAc,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GACpF;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GAChF;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GAChF;IAAE,IAAI;IAAG,MAAM;IAAc,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GACpF;IAAE,IAAI;IAAG,MAAM;IAAY,MAAM;IAAW,SAAS;IAAK;GAC1D;IAAE,IAAI;IAAG,MAAM;IAAQ,MAAM;IAAW,SAAS;IAAO;GACxD,CAAC;;;;;;AAMJ,MAAa,QAAQ,IAAI,YAAY"}
1
+ {"version":3,"file":"event.mjs","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/event.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"sui/rpc/v2/event.proto\" (package \"sui.rpc.v2\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n//\nimport { MessageType } from '@protobuf-ts/runtime';\nimport { Value } from '../../../google/protobuf/struct.js';\nimport { Bcs } from './bcs.js';\n/**\n * Events emitted during the successful execution of a transaction.\n *\n * @generated from protobuf message sui.rpc.v2.TransactionEvents\n */\nexport interface TransactionEvents {\n\t/**\n\t * This TransactionEvents serialized as BCS.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.Bcs bcs = 1;\n\t */\n\tbcs?: Bcs;\n\t/**\n\t * The digest of this TransactionEvents.\n\t *\n\t * @generated from protobuf field: optional string digest = 2;\n\t */\n\tdigest?: string;\n\t/**\n\t * Set of events emitted by a transaction.\n\t *\n\t * @generated from protobuf field: repeated sui.rpc.v2.Event events = 3;\n\t */\n\tevents: Event[];\n}\n/**\n * An event.\n *\n * @generated from protobuf message sui.rpc.v2.Event\n */\nexport interface Event {\n\t/**\n\t * Package ID of the top-level function invoked by a `MoveCall` command that triggered this\n\t * event to be emitted.\n\t *\n\t * @generated from protobuf field: optional string package_id = 1;\n\t */\n\tpackageId?: string;\n\t/**\n\t * Module name of the top-level function invoked by a `MoveCall` command that triggered this\n\t * event to be emitted.\n\t *\n\t * @generated from protobuf field: optional string module = 2;\n\t */\n\tmodule?: string;\n\t/**\n\t * Address of the account that sent the transaction where this event was emitted.\n\t *\n\t * @generated from protobuf field: optional string sender = 3;\n\t */\n\tsender?: string;\n\t/**\n\t * The type of the event emitted.\n\t *\n\t * @generated from protobuf field: optional string event_type = 4;\n\t */\n\teventType?: string;\n\t/**\n\t * BCS serialized bytes of the event.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.Bcs contents = 5;\n\t */\n\tcontents?: Bcs;\n\t/**\n\t * JSON rendering of the event.\n\t *\n\t * @generated from protobuf field: optional google.protobuf.Value json = 6;\n\t */\n\tjson?: Value;\n\t/**\n\t * The sequence number of the checkpoint that includes the transaction\n\t * that emitted this event. Populated when the event is delivered on its\n\t * own (for example via `LedgerService.ListEvents`); left unset when the\n\t * event is carried inside its transaction's `events` list, where the\n\t * enclosing `ExecutedTransaction` already provides this context.\n\t *\n\t * @generated from protobuf field: optional uint64 checkpoint = 7;\n\t */\n\tcheckpoint?: bigint;\n\t/**\n\t * The digest of the transaction that emitted this event.\n\t *\n\t * @generated from protobuf field: optional string transaction_digest = 8;\n\t */\n\ttransactionDigest?: string;\n\t/**\n\t * Zero-based position of the emitting transaction within its containing\n\t * checkpoint. For clients verifying authenticated event streams this\n\t * index is part of the BCS-encoded `EventCommitment` leaf used to\n\t * construct the per-checkpoint merkle root.\n\t *\n\t * @generated from protobuf field: optional uint64 transaction_index = 9;\n\t */\n\ttransactionIndex?: bigint;\n\t/**\n\t * Zero-based index of this event within its transaction's event list.\n\t *\n\t * @generated from protobuf field: optional uint32 event_index = 10;\n\t */\n\teventIndex?: number;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass TransactionEvents$Type extends MessageType<TransactionEvents> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.TransactionEvents', [\n\t\t\t{ no: 1, name: 'bcs', kind: 'message', T: () => Bcs },\n\t\t\t{ no: 2, name: 'digest', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 3, name: 'events', kind: 'message', repeat: 2 /*RepeatType.UNPACKED*/, T: () => Event },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.TransactionEvents\n */\nexport const TransactionEvents = new TransactionEvents$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass Event$Type extends MessageType<Event> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.Event', [\n\t\t\t{ no: 1, name: 'package_id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'module', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 3, name: 'sender', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 4, name: 'event_type', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 5, name: 'contents', kind: 'message', T: () => Bcs },\n\t\t\t{ no: 6, name: 'json', kind: 'message', T: () => Value },\n\t\t\t{\n\t\t\t\tno: 7,\n\t\t\t\tname: 'checkpoint',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 8, name: 'transaction_digest', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{\n\t\t\t\tno: 9,\n\t\t\t\tname: 'transaction_index',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 10, name: 'event_index', kind: 'scalar', opt: true, T: 13 /*ScalarType.UINT32*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.Event\n */\nexport const Event = new Event$Type();\n"],"mappings":";;;;;AAoHA,IAAM,yBAAN,cAAqC,YAA+B;CACnE,cAAc;AACb,QAAM,gCAAgC;GACrC;IAAE,IAAI;IAAG,MAAM;IAAO,MAAM;IAAW,SAAS;IAAK;GACrD;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GAChF;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAW,QAAQ;IAA2B,SAAS;IAAO;GAC7F,CAAC;;;;;;AAMJ,MAAa,oBAAoB,IAAI,wBAAwB;AAE7D,IAAM,aAAN,cAAyB,YAAmB;CAC3C,cAAc;AACb,QAAM,oBAAoB;GACzB;IAAE,IAAI;IAAG,MAAM;IAAc,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GACpF;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GAChF;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GAChF;IAAE,IAAI;IAAG,MAAM;IAAc,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GACpF;IAAE,IAAI;IAAG,MAAM;IAAY,MAAM;IAAW,SAAS;IAAK;GAC1D;IAAE,IAAI;IAAG,MAAM;IAAQ,MAAM;IAAW,SAAS;IAAO;GACxD;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,GAAG;IACH,GAAG;IACH;GACD;IAAE,IAAI;IAAG,MAAM;IAAsB,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GAC5F;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,GAAG;IACH,GAAG;IACH;GACD;IAAE,IAAI;IAAI,MAAM;IAAe,MAAM;IAAU,KAAK;IAAM,GAAG;IAA0B;GACvF,CAAC;;;;;;AAMJ,MAAa,QAAQ,IAAI,YAAY"}
@@ -71,6 +71,13 @@ interface ExecutedTransaction {
71
71
  * @generated from protobuf field: optional sui.rpc.v2.ObjectSet objects = 9;
72
72
  */
73
73
  objects?: ObjectSet;
74
+ /**
75
+ * Zero-based position of this transaction within the checkpoint that
76
+ * includes it.
77
+ *
78
+ * @generated from protobuf field: optional uint64 transaction_index = 10;
79
+ */
80
+ transactionIndex?: bigint;
74
81
  }
75
82
  declare class ExecutedTransaction$Type extends MessageType<ExecutedTransaction> {
76
83
  constructor();
@@ -1 +1 @@
1
- {"version":3,"file":"executed_transaction.d.mts","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/executed_transaction.ts"],"mappings":";;;;;;;;;;;;AAsBA;UAAiB,mBAAA;;;;;;EAMhB,MAAA;EA8CgB;;;;;EAxChB,WAAA,GAAc,WAAA;EAAA;;;;;;EAOd,UAAA,EAAY,aAAA;EAuBZ;;;;;EAjBA,OAAA,GAAU,kBAAA;EAkCA;;;AACV;;;;;;;EAxBA,MAAA,GAAS,iBAAA;;AA+DV;;;;EAzDC,UAAA;;;;;;EAMA,SAAA,GAAY,SAAA;;;;EAIZ,cAAA,EAAgB,aAAA;;;;;;;EAOhB,OAAA,GAAU,SAAA;AAAA;AAAA,cAGL,wBAAA,SAAiC,WAAA,CAAY,mBAAA;;;;;;cAqCtC,mBAAA,EAAmB,wBAAA"}
1
+ {"version":3,"file":"executed_transaction.d.mts","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/executed_transaction.ts"],"mappings":";;;;;;;;;;;;AAsBA;UAAiB,mBAAA;;;;;;EAMhB,MAAA;EA8CgB;;;;;EAxChB,WAAA,GAAc,WAAA;EAAA;;;;;;EAOd,UAAA,EAAY,aAAA;EAuBZ;;;;;EAjBA,OAAA,GAAU,kBAAA;EAkCA;;;;AAQV;;;;;;EA/BA,MAAA,GAAS,iBAAA;;;AA8EV;;;EAxEC,UAAA;EAwEgE;;;;;EAlEhE,SAAA,GAAY,SAAA;;;;EAIZ,cAAA,EAAgB,aAAA;;;;;;;EAOhB,OAAA,GAAU,SAAA;;;;;;;EAOV,gBAAA;AAAA;AAAA,cAGK,wBAAA,SAAiC,WAAA,CAAY,mBAAA;;;;;;cA6CtC,mBAAA,EAAmB,wBAAA"}
@@ -69,6 +69,14 @@ var ExecutedTransaction$Type = class extends MessageType {
69
69
  name: "objects",
70
70
  kind: "message",
71
71
  T: () => ObjectSet
72
+ },
73
+ {
74
+ no: 10,
75
+ name: "transaction_index",
76
+ kind: "scalar",
77
+ opt: true,
78
+ T: 4,
79
+ L: 0
72
80
  }
73
81
  ]);
74
82
  }
@@ -1 +1 @@
1
- {"version":3,"file":"executed_transaction.mjs","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/executed_transaction.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"sui/rpc/v2/executed_transaction.proto\" (package \"sui.rpc.v2\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n//\nimport { MessageType } from '@protobuf-ts/runtime';\nimport { ObjectSet } from './object.js';\nimport { BalanceChange } from './balance_change.js';\nimport { Timestamp } from '../../../google/protobuf/timestamp.js';\nimport { TransactionEvents } from './event.js';\nimport { TransactionEffects } from './effects.js';\nimport { UserSignature } from './signature.js';\nimport { Transaction } from './transaction.js';\n/**\n * @generated from protobuf message sui.rpc.v2.ExecutedTransaction\n */\nexport interface ExecutedTransaction {\n\t/**\n\t * The digest of this Transaction.\n\t *\n\t * @generated from protobuf field: optional string digest = 1;\n\t */\n\tdigest?: string;\n\t/**\n\t * The transaction itself.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.Transaction transaction = 2;\n\t */\n\ttransaction?: Transaction;\n\t/**\n\t * List of user signatures that are used to authorize the\n\t * execution of this transaction.\n\t *\n\t * @generated from protobuf field: repeated sui.rpc.v2.UserSignature signatures = 3;\n\t */\n\tsignatures: UserSignature[];\n\t/**\n\t * The `TransactionEffects` for this transaction.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.TransactionEffects effects = 4;\n\t */\n\teffects?: TransactionEffects;\n\t/**\n\t * The `TransactionEvents` for this transaction.\n\t *\n\t * This field might be empty, even if it was explicitly requested, if the\n\t * transaction didn't produce any events.\n\t * `sui.types.TransactionEffects.events_digest` is populated if the\n\t * transaction produced any events.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.TransactionEvents events = 5;\n\t */\n\tevents?: TransactionEvents;\n\t/**\n\t * The sequence number for the checkpoint that includes this transaction.\n\t *\n\t * @generated from protobuf field: optional uint64 checkpoint = 6;\n\t */\n\tcheckpoint?: bigint;\n\t/**\n\t * The Unix timestamp of the checkpoint that includes this transaction.\n\t *\n\t * @generated from protobuf field: optional google.protobuf.Timestamp timestamp = 7;\n\t */\n\ttimestamp?: Timestamp;\n\t/**\n\t * @generated from protobuf field: repeated sui.rpc.v2.BalanceChange balance_changes = 8;\n\t */\n\tbalanceChanges: BalanceChange[];\n\t/**\n\t * Set of objects either referenced as inputs or produced as\n\t * outputs from this Transaction.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.ObjectSet objects = 9;\n\t */\n\tobjects?: ObjectSet;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass ExecutedTransaction$Type extends MessageType<ExecutedTransaction> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.ExecutedTransaction', [\n\t\t\t{ no: 1, name: 'digest', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'transaction', kind: 'message', T: () => Transaction },\n\t\t\t{\n\t\t\t\tno: 3,\n\t\t\t\tname: 'signatures',\n\t\t\t\tkind: 'message',\n\t\t\t\trepeat: 2 /*RepeatType.UNPACKED*/,\n\t\t\t\tT: () => UserSignature,\n\t\t\t},\n\t\t\t{ no: 4, name: 'effects', kind: 'message', T: () => TransactionEffects },\n\t\t\t{ no: 5, name: 'events', kind: 'message', T: () => TransactionEvents },\n\t\t\t{\n\t\t\t\tno: 6,\n\t\t\t\tname: 'checkpoint',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 7, name: 'timestamp', kind: 'message', T: () => Timestamp },\n\t\t\t{\n\t\t\t\tno: 8,\n\t\t\t\tname: 'balance_changes',\n\t\t\t\tkind: 'message',\n\t\t\t\trepeat: 2 /*RepeatType.UNPACKED*/,\n\t\t\t\tT: () => BalanceChange,\n\t\t\t},\n\t\t\t{ no: 9, name: 'objects', kind: 'message', T: () => ObjectSet },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.ExecutedTransaction\n */\nexport const ExecutedTransaction = new ExecutedTransaction$Type();\n"],"mappings":";;;;;;;;;;AAoFA,IAAM,2BAAN,cAAuC,YAAiC;CACvE,cAAc;AACb,QAAM,kCAAkC;GACvC;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GAChF;IAAE,IAAI;IAAG,MAAM;IAAe,MAAM;IAAW,SAAS;IAAa;GACrE;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,QAAQ;IACR,SAAS;IACT;GACD;IAAE,IAAI;IAAG,MAAM;IAAW,MAAM;IAAW,SAAS;IAAoB;GACxE;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAW,SAAS;IAAmB;GACtE;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,GAAG;IACH,GAAG;IACH;GACD;IAAE,IAAI;IAAG,MAAM;IAAa,MAAM;IAAW,SAAS;IAAW;GACjE;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,QAAQ;IACR,SAAS;IACT;GACD;IAAE,IAAI;IAAG,MAAM;IAAW,MAAM;IAAW,SAAS;IAAW;GAC/D,CAAC;;;;;;AAMJ,MAAa,sBAAsB,IAAI,0BAA0B"}
1
+ {"version":3,"file":"executed_transaction.mjs","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/executed_transaction.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"sui/rpc/v2/executed_transaction.proto\" (package \"sui.rpc.v2\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n//\nimport { MessageType } from '@protobuf-ts/runtime';\nimport { ObjectSet } from './object.js';\nimport { BalanceChange } from './balance_change.js';\nimport { Timestamp } from '../../../google/protobuf/timestamp.js';\nimport { TransactionEvents } from './event.js';\nimport { TransactionEffects } from './effects.js';\nimport { UserSignature } from './signature.js';\nimport { Transaction } from './transaction.js';\n/**\n * @generated from protobuf message sui.rpc.v2.ExecutedTransaction\n */\nexport interface ExecutedTransaction {\n\t/**\n\t * The digest of this Transaction.\n\t *\n\t * @generated from protobuf field: optional string digest = 1;\n\t */\n\tdigest?: string;\n\t/**\n\t * The transaction itself.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.Transaction transaction = 2;\n\t */\n\ttransaction?: Transaction;\n\t/**\n\t * List of user signatures that are used to authorize the\n\t * execution of this transaction.\n\t *\n\t * @generated from protobuf field: repeated sui.rpc.v2.UserSignature signatures = 3;\n\t */\n\tsignatures: UserSignature[];\n\t/**\n\t * The `TransactionEffects` for this transaction.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.TransactionEffects effects = 4;\n\t */\n\teffects?: TransactionEffects;\n\t/**\n\t * The `TransactionEvents` for this transaction.\n\t *\n\t * This field might be empty, even if it was explicitly requested, if the\n\t * transaction didn't produce any events.\n\t * `sui.types.TransactionEffects.events_digest` is populated if the\n\t * transaction produced any events.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.TransactionEvents events = 5;\n\t */\n\tevents?: TransactionEvents;\n\t/**\n\t * The sequence number for the checkpoint that includes this transaction.\n\t *\n\t * @generated from protobuf field: optional uint64 checkpoint = 6;\n\t */\n\tcheckpoint?: bigint;\n\t/**\n\t * The Unix timestamp of the checkpoint that includes this transaction.\n\t *\n\t * @generated from protobuf field: optional google.protobuf.Timestamp timestamp = 7;\n\t */\n\ttimestamp?: Timestamp;\n\t/**\n\t * @generated from protobuf field: repeated sui.rpc.v2.BalanceChange balance_changes = 8;\n\t */\n\tbalanceChanges: BalanceChange[];\n\t/**\n\t * Set of objects either referenced as inputs or produced as\n\t * outputs from this Transaction.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.ObjectSet objects = 9;\n\t */\n\tobjects?: ObjectSet;\n\t/**\n\t * Zero-based position of this transaction within the checkpoint that\n\t * includes it.\n\t *\n\t * @generated from protobuf field: optional uint64 transaction_index = 10;\n\t */\n\ttransactionIndex?: bigint;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass ExecutedTransaction$Type extends MessageType<ExecutedTransaction> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.ExecutedTransaction', [\n\t\t\t{ no: 1, name: 'digest', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'transaction', kind: 'message', T: () => Transaction },\n\t\t\t{\n\t\t\t\tno: 3,\n\t\t\t\tname: 'signatures',\n\t\t\t\tkind: 'message',\n\t\t\t\trepeat: 2 /*RepeatType.UNPACKED*/,\n\t\t\t\tT: () => UserSignature,\n\t\t\t},\n\t\t\t{ no: 4, name: 'effects', kind: 'message', T: () => TransactionEffects },\n\t\t\t{ no: 5, name: 'events', kind: 'message', T: () => TransactionEvents },\n\t\t\t{\n\t\t\t\tno: 6,\n\t\t\t\tname: 'checkpoint',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t\t{ no: 7, name: 'timestamp', kind: 'message', T: () => Timestamp },\n\t\t\t{\n\t\t\t\tno: 8,\n\t\t\t\tname: 'balance_changes',\n\t\t\t\tkind: 'message',\n\t\t\t\trepeat: 2 /*RepeatType.UNPACKED*/,\n\t\t\t\tT: () => BalanceChange,\n\t\t\t},\n\t\t\t{ no: 9, name: 'objects', kind: 'message', T: () => ObjectSet },\n\t\t\t{\n\t\t\t\tno: 10,\n\t\t\t\tname: 'transaction_index',\n\t\t\t\tkind: 'scalar',\n\t\t\t\topt: true,\n\t\t\t\tT: 4 /*ScalarType.UINT64*/,\n\t\t\t\tL: 0 /*LongType.BIGINT*/,\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.ExecutedTransaction\n */\nexport const ExecutedTransaction = new ExecutedTransaction$Type();\n"],"mappings":";;;;;;;;;;AA2FA,IAAM,2BAAN,cAAuC,YAAiC;CACvE,cAAc;AACb,QAAM,kCAAkC;GACvC;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAU,KAAK;IAAM,GAAG;IAAyB;GAChF;IAAE,IAAI;IAAG,MAAM;IAAe,MAAM;IAAW,SAAS;IAAa;GACrE;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,QAAQ;IACR,SAAS;IACT;GACD;IAAE,IAAI;IAAG,MAAM;IAAW,MAAM;IAAW,SAAS;IAAoB;GACxE;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAW,SAAS;IAAmB;GACtE;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,GAAG;IACH,GAAG;IACH;GACD;IAAE,IAAI;IAAG,MAAM;IAAa,MAAM;IAAW,SAAS;IAAW;GACjE;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,QAAQ;IACR,SAAS;IACT;GACD;IAAE,IAAI;IAAG,MAAM;IAAW,MAAM;IAAW,SAAS;IAAW;GAC/D;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,GAAG;IACH,GAAG;IACH;GACD,CAAC;;;;;;AAMJ,MAAa,sBAAsB,IAAI,0BAA0B"}
@@ -0,0 +1,423 @@
1
+ import { MessageType } from "@protobuf-ts/runtime";
2
+
3
+ //#region src/grpc/proto/sui/rpc/v2/filter.d.ts
4
+ /**
5
+ * DNF filter for transactions: any term may match, and each term is an AND
6
+ * of signed literals.
7
+ * An absent filter matches everything. A present filter must have at least one
8
+ * term.
9
+ *
10
+ * @generated from protobuf message sui.rpc.v2.TransactionFilter
11
+ */
12
+ interface TransactionFilter {
13
+ /**
14
+ * Terms are ORed together.
15
+ *
16
+ * @generated from protobuf field: repeated sui.rpc.v2.TransactionTerm terms = 1;
17
+ */
18
+ terms: TransactionTerm[];
19
+ }
20
+ /**
21
+ * One conjunction in a transaction DNF filter.
22
+ *
23
+ * @generated from protobuf message sui.rpc.v2.TransactionTerm
24
+ */
25
+ interface TransactionTerm {
26
+ /**
27
+ * Literals are ANDed together.
28
+ *
29
+ * @generated from protobuf field: repeated sui.rpc.v2.TransactionLiteral literals = 1;
30
+ */
31
+ literals: TransactionLiteral[];
32
+ }
33
+ /**
34
+ * One signed transaction predicate literal: a predicate, optionally negated.
35
+ *
36
+ * @generated from protobuf message sui.rpc.v2.TransactionLiteral
37
+ */
38
+ interface TransactionLiteral {
39
+ /**
40
+ * When true, the literal matches transactions that the predicate does *not*
41
+ * match.
42
+ *
43
+ * @generated from protobuf field: bool negated = 1;
44
+ */
45
+ negated: boolean;
46
+ /**
47
+ * @generated from protobuf oneof: predicate
48
+ */
49
+ predicate: {
50
+ oneofKind: 'sender';
51
+ /**
52
+ * Match transactions sent by the specified address.
53
+ *
54
+ * @generated from protobuf field: sui.rpc.v2.SenderFilter sender = 2;
55
+ */
56
+ sender: SenderFilter;
57
+ } | {
58
+ oneofKind: 'affectedAddress';
59
+ /**
60
+ * Match transactions where the specified address's state moved as a side
61
+ * effect: it owns an object after the txn, owned an object before the
62
+ * txn that was mutated/transferred away/deleted/wrapped, or its
63
+ * address-balance changed via an accumulator event.
64
+ *
65
+ * @generated from protobuf field: sui.rpc.v2.AffectedAddressFilter affected_address = 3;
66
+ */
67
+ affectedAddress: AffectedAddressFilter;
68
+ } | {
69
+ oneofKind: 'affectedObject';
70
+ /**
71
+ * Match transactions whose effects include a change for the specified
72
+ * object.
73
+ *
74
+ * @generated from protobuf field: sui.rpc.v2.AffectedObjectFilter affected_object = 4;
75
+ */
76
+ affectedObject: AffectedObjectFilter;
77
+ } | {
78
+ oneofKind: 'moveCall';
79
+ /**
80
+ * Match transactions that made a Move call matching the specified filter.
81
+ *
82
+ * @generated from protobuf field: sui.rpc.v2.MoveCallFilter move_call = 5;
83
+ */
84
+ moveCall: MoveCallFilter;
85
+ } | {
86
+ oneofKind: 'emitModule';
87
+ /**
88
+ * Match transactions that emitted an event whose package/module fields
89
+ * match the specified filter.
90
+ *
91
+ * @generated from protobuf field: sui.rpc.v2.EmitModuleFilter emit_module = 6;
92
+ */
93
+ emitModule: EmitModuleFilter;
94
+ } | {
95
+ oneofKind: 'eventType';
96
+ /**
97
+ * Match transactions that emitted an event with a type matching the
98
+ * specified filter.
99
+ *
100
+ * @generated from protobuf field: sui.rpc.v2.EventTypeFilter event_type = 7;
101
+ */
102
+ eventType: EventTypeFilter;
103
+ } | {
104
+ oneofKind: 'eventStreamHead';
105
+ /**
106
+ * Match transactions that wrote to the specified authenticated event
107
+ * stream head.
108
+ *
109
+ * @generated from protobuf field: sui.rpc.v2.EventStreamHeadFilter event_stream_head = 8;
110
+ */
111
+ eventStreamHead: EventStreamHeadFilter;
112
+ } | {
113
+ oneofKind: 'packageWrite';
114
+ /**
115
+ * Match transactions that wrote a Move package — a first publish or an
116
+ * upgrade, of any package.
117
+ *
118
+ * @generated from protobuf field: sui.rpc.v2.PackageWriteFilter package_write = 9;
119
+ */
120
+ packageWrite: PackageWriteFilter;
121
+ } | {
122
+ oneofKind: undefined;
123
+ };
124
+ }
125
+ /**
126
+ * DNF filter for events: any term may match, and each term is an AND of
127
+ * signed literals. Sender predicates match all events from matching
128
+ * transactions; emit-module, event-type, and event-stream-head predicates match
129
+ * individual event-space dimensions. An absent filter matches everything. A
130
+ * present filter must have at least one term.
131
+ *
132
+ * @generated from protobuf message sui.rpc.v2.EventFilter
133
+ */
134
+ interface EventFilter {
135
+ /**
136
+ * Terms are ORed together.
137
+ *
138
+ * @generated from protobuf field: repeated sui.rpc.v2.EventTerm terms = 1;
139
+ */
140
+ terms: EventTerm[];
141
+ }
142
+ /**
143
+ * One conjunction in an event DNF filter.
144
+ *
145
+ * @generated from protobuf message sui.rpc.v2.EventTerm
146
+ */
147
+ interface EventTerm {
148
+ /**
149
+ * Literals are ANDed together.
150
+ *
151
+ * @generated from protobuf field: repeated sui.rpc.v2.EventLiteral literals = 1;
152
+ */
153
+ literals: EventLiteral[];
154
+ }
155
+ /**
156
+ * One signed event predicate literal: a predicate, optionally negated.
157
+ *
158
+ * @generated from protobuf message sui.rpc.v2.EventLiteral
159
+ */
160
+ interface EventLiteral {
161
+ /**
162
+ * When true, the literal matches events that the predicate does *not* match.
163
+ *
164
+ * @generated from protobuf field: bool negated = 1;
165
+ */
166
+ negated: boolean;
167
+ /**
168
+ * @generated from protobuf oneof: predicate
169
+ */
170
+ predicate: {
171
+ oneofKind: 'sender';
172
+ /**
173
+ * Match events from transactions sent by the specified address.
174
+ *
175
+ * @generated from protobuf field: sui.rpc.v2.SenderFilter sender = 2;
176
+ */
177
+ sender: SenderFilter;
178
+ } | {
179
+ oneofKind: 'emitModule';
180
+ /**
181
+ * Match events whose package/module fields match the specified filter.
182
+ *
183
+ * @generated from protobuf field: sui.rpc.v2.EmitModuleFilter emit_module = 3;
184
+ */
185
+ emitModule: EmitModuleFilter;
186
+ } | {
187
+ oneofKind: 'eventType';
188
+ /**
189
+ * Match events whose type matches the specified filter.
190
+ *
191
+ * @generated from protobuf field: sui.rpc.v2.EventTypeFilter event_type = 4;
192
+ */
193
+ eventType: EventTypeFilter;
194
+ } | {
195
+ oneofKind: 'eventStreamHead';
196
+ /**
197
+ * Match events committed to the specified authenticated event stream head.
198
+ *
199
+ * @generated from protobuf field: sui.rpc.v2.EventStreamHeadFilter event_stream_head = 5;
200
+ */
201
+ eventStreamHead: EventStreamHeadFilter;
202
+ } | {
203
+ oneofKind: undefined;
204
+ };
205
+ }
206
+ /**
207
+ * Match by transaction sender address.
208
+ *
209
+ * @generated from protobuf message sui.rpc.v2.SenderFilter
210
+ */
211
+ interface SenderFilter {
212
+ /**
213
+ * The sender address (hex-encoded).
214
+ *
215
+ * @generated from protobuf field: optional string address = 1;
216
+ */
217
+ address?: string;
218
+ }
219
+ /**
220
+ * Match by any address whose state moved as a side effect of the
221
+ * transaction: object ownership changes (in either direction), prior
222
+ * owners of removed/wrapped objects, and address-balance changes via
223
+ * accumulator events.
224
+ *
225
+ * @generated from protobuf message sui.rpc.v2.AffectedAddressFilter
226
+ */
227
+ interface AffectedAddressFilter {
228
+ /**
229
+ * The affected address (hex-encoded).
230
+ *
231
+ * @generated from protobuf field: optional string address = 1;
232
+ */
233
+ address?: string;
234
+ }
235
+ /**
236
+ * Match by changed object ID.
237
+ *
238
+ * @generated from protobuf message sui.rpc.v2.AffectedObjectFilter
239
+ */
240
+ interface AffectedObjectFilter {
241
+ /**
242
+ * The changed object ID (hex-encoded).
243
+ *
244
+ * @generated from protobuf field: optional string object_id = 1;
245
+ */
246
+ objectId?: string;
247
+ }
248
+ /**
249
+ * Match by Move function call, specified as a `::`-delimited Move path.
250
+ *
251
+ * Specificity levels:
252
+ * "0xpkg" -> matches any call in the package
253
+ * "0xpkg::module" -> matches any call in the module
254
+ * "0xpkg::module::function" -> matches calls to the exact function
255
+ *
256
+ * @generated from protobuf message sui.rpc.v2.MoveCallFilter
257
+ */
258
+ interface MoveCallFilter {
259
+ /**
260
+ * Required. Move path of the form `package[::module[::function]]`.
261
+ *
262
+ * @generated from protobuf field: optional string function = 1;
263
+ */
264
+ function?: string;
265
+ }
266
+ /**
267
+ * Match by an event's package/module fields, specified as a `::`-delimited
268
+ * Move path. These identify the top-level Move call that triggered the event.
269
+ *
270
+ * Specificity levels:
271
+ * "0xpkg" -> matches events with this package_id
272
+ * "0xpkg::module" -> matches events with this package_id and module
273
+ *
274
+ * @generated from protobuf message sui.rpc.v2.EmitModuleFilter
275
+ */
276
+ interface EmitModuleFilter {
277
+ /**
278
+ * Required. Move path of the form `package[::module]`.
279
+ *
280
+ * @generated from protobuf field: optional string module = 1;
281
+ */
282
+ module?: string;
283
+ }
284
+ /**
285
+ * Match by event struct type, specified as a Move type string.
286
+ *
287
+ * Specificity levels:
288
+ * "0xaddr" -> matches events whose type is defined at this address
289
+ * "0xaddr::module" -> matches events whose type is in this module
290
+ * "0xaddr::module::Name" -> matches events with this type name (any instantiation)
291
+ * "0xaddr::module::Name<T1, T2>" -> matches events with this exact generic instantiation
292
+ *
293
+ * @generated from protobuf message sui.rpc.v2.EventTypeFilter
294
+ */
295
+ interface EventTypeFilter {
296
+ /**
297
+ * Required. Move type string of the form
298
+ * `address[::module[::Name[<type_params>]]]`.
299
+ *
300
+ * @generated from protobuf field: optional string event_type = 1;
301
+ */
302
+ eventType?: string;
303
+ }
304
+ /**
305
+ * Match by authenticated event stream head.
306
+ *
307
+ * @generated from protobuf message sui.rpc.v2.EventStreamHeadFilter
308
+ */
309
+ interface EventStreamHeadFilter {
310
+ /**
311
+ * The stream id address (hex-encoded).
312
+ *
313
+ * @generated from protobuf field: optional string stream_id = 1;
314
+ */
315
+ streamId?: string;
316
+ }
317
+ /**
318
+ * Match transactions that wrote a Move package.
319
+ *
320
+ * @generated from protobuf message sui.rpc.v2.PackageWriteFilter
321
+ */
322
+ interface PackageWriteFilter {}
323
+ declare class TransactionFilter$Type extends MessageType<TransactionFilter> {
324
+ constructor();
325
+ }
326
+ /**
327
+ * @generated MessageType for protobuf message sui.rpc.v2.TransactionFilter
328
+ */
329
+ declare const TransactionFilter: TransactionFilter$Type;
330
+ declare class TransactionTerm$Type extends MessageType<TransactionTerm> {
331
+ constructor();
332
+ }
333
+ /**
334
+ * @generated MessageType for protobuf message sui.rpc.v2.TransactionTerm
335
+ */
336
+ declare const TransactionTerm: TransactionTerm$Type;
337
+ declare class TransactionLiteral$Type extends MessageType<TransactionLiteral> {
338
+ constructor();
339
+ }
340
+ /**
341
+ * @generated MessageType for protobuf message sui.rpc.v2.TransactionLiteral
342
+ */
343
+ declare const TransactionLiteral: TransactionLiteral$Type;
344
+ declare class EventFilter$Type extends MessageType<EventFilter> {
345
+ constructor();
346
+ }
347
+ /**
348
+ * @generated MessageType for protobuf message sui.rpc.v2.EventFilter
349
+ */
350
+ declare const EventFilter: EventFilter$Type;
351
+ declare class EventTerm$Type extends MessageType<EventTerm> {
352
+ constructor();
353
+ }
354
+ /**
355
+ * @generated MessageType for protobuf message sui.rpc.v2.EventTerm
356
+ */
357
+ declare const EventTerm: EventTerm$Type;
358
+ declare class EventLiteral$Type extends MessageType<EventLiteral> {
359
+ constructor();
360
+ }
361
+ /**
362
+ * @generated MessageType for protobuf message sui.rpc.v2.EventLiteral
363
+ */
364
+ declare const EventLiteral: EventLiteral$Type;
365
+ declare class SenderFilter$Type extends MessageType<SenderFilter> {
366
+ constructor();
367
+ }
368
+ /**
369
+ * @generated MessageType for protobuf message sui.rpc.v2.SenderFilter
370
+ */
371
+ declare const SenderFilter: SenderFilter$Type;
372
+ declare class AffectedAddressFilter$Type extends MessageType<AffectedAddressFilter> {
373
+ constructor();
374
+ }
375
+ /**
376
+ * @generated MessageType for protobuf message sui.rpc.v2.AffectedAddressFilter
377
+ */
378
+ declare const AffectedAddressFilter: AffectedAddressFilter$Type;
379
+ declare class AffectedObjectFilter$Type extends MessageType<AffectedObjectFilter> {
380
+ constructor();
381
+ }
382
+ /**
383
+ * @generated MessageType for protobuf message sui.rpc.v2.AffectedObjectFilter
384
+ */
385
+ declare const AffectedObjectFilter: AffectedObjectFilter$Type;
386
+ declare class MoveCallFilter$Type extends MessageType<MoveCallFilter> {
387
+ constructor();
388
+ }
389
+ /**
390
+ * @generated MessageType for protobuf message sui.rpc.v2.MoveCallFilter
391
+ */
392
+ declare const MoveCallFilter: MoveCallFilter$Type;
393
+ declare class EmitModuleFilter$Type extends MessageType<EmitModuleFilter> {
394
+ constructor();
395
+ }
396
+ /**
397
+ * @generated MessageType for protobuf message sui.rpc.v2.EmitModuleFilter
398
+ */
399
+ declare const EmitModuleFilter: EmitModuleFilter$Type;
400
+ declare class EventTypeFilter$Type extends MessageType<EventTypeFilter> {
401
+ constructor();
402
+ }
403
+ /**
404
+ * @generated MessageType for protobuf message sui.rpc.v2.EventTypeFilter
405
+ */
406
+ declare const EventTypeFilter: EventTypeFilter$Type;
407
+ declare class EventStreamHeadFilter$Type extends MessageType<EventStreamHeadFilter> {
408
+ constructor();
409
+ }
410
+ /**
411
+ * @generated MessageType for protobuf message sui.rpc.v2.EventStreamHeadFilter
412
+ */
413
+ declare const EventStreamHeadFilter: EventStreamHeadFilter$Type;
414
+ declare class PackageWriteFilter$Type extends MessageType<PackageWriteFilter> {
415
+ constructor();
416
+ }
417
+ /**
418
+ * @generated MessageType for protobuf message sui.rpc.v2.PackageWriteFilter
419
+ */
420
+ declare const PackageWriteFilter: PackageWriteFilter$Type;
421
+ //#endregion
422
+ export { AffectedAddressFilter, AffectedObjectFilter, EmitModuleFilter, EventFilter, EventLiteral, EventStreamHeadFilter, EventTerm, EventTypeFilter, MoveCallFilter, PackageWriteFilter, SenderFilter, TransactionFilter, TransactionLiteral, TransactionTerm };
423
+ //# sourceMappingURL=filter.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter.d.mts","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/filter.ts"],"mappings":"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"}