@mysten/sui 2.22.0 → 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.
- package/CHANGELOG.md +47 -0
- package/dist/bcs/bcs.d.mts +6 -6
- package/dist/bcs/bcs.d.mts.map +1 -1
- package/dist/bcs/bcs.mjs +1 -19
- package/dist/bcs/bcs.mjs.map +1 -1
- package/dist/bcs/index.d.mts +4225 -1319
- package/dist/bcs/index.d.mts.map +1 -1
- package/dist/bcs/index.mjs +2 -1
- package/dist/bcs/index.mjs.map +1 -1
- package/dist/bcs/transactions.mjs +147 -0
- package/dist/bcs/transactions.mjs.map +1 -0
- package/dist/client/address-balance-transaction-expiration.mjs +22 -0
- package/dist/client/address-balance-transaction-expiration.mjs.map +1 -0
- package/dist/client/core-resolver.mjs +2 -1
- package/dist/client/core-resolver.mjs.map +1 -1
- package/dist/client/core.d.mts +2 -0
- package/dist/client/core.d.mts.map +1 -1
- package/dist/client/core.mjs.map +1 -1
- package/dist/client/query-filters.mjs +119 -0
- package/dist/client/query-filters.mjs.map +1 -0
- package/dist/client/types.d.mts +166 -1
- package/dist/client/types.d.mts.map +1 -1
- package/dist/client/utils.d.mts.map +1 -1
- package/dist/client/utils.mjs +13 -1
- package/dist/client/utils.mjs.map +1 -1
- package/dist/cryptography/signature.d.mts +6 -6
- package/dist/graphql/client.d.mts +15 -2
- package/dist/graphql/client.d.mts.map +1 -1
- package/dist/graphql/client.mjs +6 -0
- package/dist/graphql/client.mjs.map +1 -1
- package/dist/graphql/core.d.mts +5 -1
- package/dist/graphql/core.d.mts.map +1 -1
- package/dist/graphql/core.mjs +96 -4
- package/dist/graphql/core.mjs.map +1 -1
- package/dist/graphql/generated/queries.d.mts.map +1 -1
- package/dist/graphql/generated/queries.mjs +140 -1
- package/dist/graphql/generated/queries.mjs.map +1 -1
- package/dist/graphql/generated/tada-env.d.mts +108 -0
- package/dist/graphql/index.d.mts +2 -2
- package/dist/grpc/client.d.mts +11 -0
- package/dist/grpc/client.d.mts.map +1 -1
- package/dist/grpc/client.mjs +6 -0
- package/dist/grpc/client.mjs.map +1 -1
- package/dist/grpc/core.d.mts +5 -1
- package/dist/grpc/core.d.mts.map +1 -1
- package/dist/grpc/core.mjs +113 -4
- package/dist/grpc/core.mjs.map +1 -1
- package/dist/grpc/filters.mjs +45 -0
- package/dist/grpc/filters.mjs.map +1 -0
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/event.d.mts +31 -0
- package/dist/grpc/proto/sui/rpc/v2/event.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/event.mjs +30 -0
- package/dist/grpc/proto/sui/rpc/v2/event.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/executed_transaction.d.mts +7 -0
- package/dist/grpc/proto/sui/rpc/v2/executed_transaction.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/executed_transaction.mjs +8 -0
- package/dist/grpc/proto/sui/rpc/v2/executed_transaction.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/filter.d.mts +423 -0
- package/dist/grpc/proto/sui/rpc/v2/filter.d.mts.map +1 -0
- package/dist/grpc/proto/sui/rpc/v2/filter.mjs +297 -0
- package/dist/grpc/proto/sui/rpc/v2/filter.mjs.map +1 -0
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts +62 -6
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.mjs +37 -0
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.d.mts +293 -1
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs +241 -1
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/move_package_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/name_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/protocol_config.d.mts +15 -2
- package/dist/grpc/proto/sui/rpc/v2/protocol_config.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/protocol_config.mjs +11 -0
- package/dist/grpc/proto/sui/rpc/v2/protocol_config.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/query_options.d.mts +211 -0
- package/dist/grpc/proto/sui/rpc/v2/query_options.d.mts.map +1 -0
- package/dist/grpc/proto/sui/rpc/v2/query_options.mjs +163 -0
- package/dist/grpc/proto/sui/rpc/v2/query_options.mjs.map +1 -0
- package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +105 -23
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.mjs +56 -9
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.d.mts +148 -8
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.mjs +109 -8
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.mts +4 -4
- package/dist/grpc/proto/types.d.mts +5 -3
- package/dist/grpc/proto/types.mjs +33 -2
- package/dist/grpc/proto/types.mjs.map +1 -1
- package/dist/jsonRpc/core.d.mts +10 -0
- package/dist/jsonRpc/core.d.mts.map +1 -1
- package/dist/jsonRpc/core.mjs +85 -2
- package/dist/jsonRpc/core.mjs.map +1 -1
- package/dist/transactions/Transaction.d.mts +6 -6
- package/dist/transactions/Transaction.d.mts.map +1 -1
- package/dist/transactions/intents/CoinWithBalance.mjs +14 -18
- package/dist/transactions/intents/CoinWithBalance.mjs.map +1 -1
- package/dist/version.mjs +1 -1
- package/dist/version.mjs.map +1 -1
- package/dist/zklogin/address.mjs +2 -2
- package/dist/zklogin/address.mjs.map +1 -1
- package/dist/zklogin/bcs.d.mts +14 -14
- package/dist/zklogin/poseidon.mjs +5 -2
- package/dist/zklogin/poseidon.mjs.map +1 -1
- package/docs/clients/core.md +115 -1
- package/docs/clients/grpc.md +68 -0
- package/docs/migrations/sui-2.0/json-rpc-migration.md +104 -101
- package/package.json +2 -2
- package/src/bcs/bcs.ts +0 -27
- package/src/bcs/index.ts +7 -5
- package/src/bcs/transactions.ts +226 -0
- package/src/client/address-balance-transaction-expiration.ts +53 -0
- package/src/client/core-resolver.ts +5 -1
- package/src/client/core.ts +8 -0
- package/src/client/query-filters.ts +195 -0
- package/src/client/types.ts +186 -1
- package/src/client/utils.ts +13 -0
- package/src/graphql/client.ts +25 -1
- package/src/graphql/core.ts +156 -6
- package/src/graphql/generated/queries.ts +230 -1
- package/src/graphql/generated/schema.graphql +75 -0
- package/src/graphql/generated/tada-env.ts +133 -0
- package/src/graphql/index.ts +1 -0
- package/src/graphql/queries/listEvents.graphql +40 -0
- package/src/graphql/queries/transactions.graphql +29 -0
- package/src/grpc/client.ts +19 -0
- package/src/grpc/core.ts +201 -6
- package/src/grpc/filters.ts +68 -0
- package/src/grpc/proto/sui/rpc/v2/event.ts +49 -0
- package/src/grpc/proto/sui/rpc/v2/executed_transaction.ts +15 -0
- package/src/grpc/proto/sui/rpc/v2/filter.ts +589 -0
- package/src/grpc/proto/sui/rpc/v2/ledger_service.client.ts +111 -0
- package/src/grpc/proto/sui/rpc/v2/ledger_service.ts +406 -0
- package/src/grpc/proto/sui/rpc/v2/protocol_config.ts +22 -2
- package/src/grpc/proto/sui/rpc/v2/query_options.ts +255 -0
- package/src/grpc/proto/sui/rpc/v2/subscription_service.client.ts +136 -18
- package/src/grpc/proto/sui/rpc/v2/subscription_service.ts +187 -7
- package/src/grpc/proto/types.ts +2 -0
- package/src/jsonRpc/core.ts +136 -2
- package/src/transactions/intents/CoinWithBalance.ts +41 -41
- package/src/version.ts +1 -1
- package/src/zklogin/address.ts +2 -2
- package/src/zklogin/poseidon.ts +6 -4
|
@@ -1,43 +1,155 @@
|
|
|
1
|
+
import { Event } from "./event.mjs";
|
|
2
|
+
import { ExecutedTransaction } from "./executed_transaction.mjs";
|
|
1
3
|
import { FieldMask } from "../../../google/protobuf/field_mask.mjs";
|
|
4
|
+
import { EventFilter, TransactionFilter } from "./filter.mjs";
|
|
5
|
+
import { Watermark } from "./query_options.mjs";
|
|
2
6
|
import { Checkpoint } from "./checkpoint.mjs";
|
|
3
7
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
4
8
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
9
|
|
|
6
10
|
//#region src/grpc/proto/sui/rpc/v2/subscription_service.d.ts
|
|
7
11
|
/**
|
|
8
|
-
* Request message for SubscriptionService.SubscribeCheckpoints
|
|
12
|
+
* Request message for SubscriptionService.SubscribeCheckpoints.
|
|
9
13
|
*
|
|
10
14
|
* @generated from protobuf message sui.rpc.v2.SubscribeCheckpointsRequest
|
|
11
15
|
*/
|
|
12
16
|
interface SubscribeCheckpointsRequest {
|
|
13
17
|
/**
|
|
14
|
-
* Optional. Mask for specifying which parts of the
|
|
15
|
-
*
|
|
18
|
+
* Optional. Mask for specifying which parts of the Checkpoint should be
|
|
19
|
+
* returned (e.g. summary, contents, signatures). `cursor` is always
|
|
20
|
+
* populated and is not subject to the mask.
|
|
16
21
|
*
|
|
17
22
|
* @generated from protobuf field: optional google.protobuf.FieldMask read_mask = 1;
|
|
18
23
|
*/
|
|
19
24
|
readMask?: FieldMask;
|
|
25
|
+
/**
|
|
26
|
+
* Optional. DNF filter over indexed transaction dimensions. A checkpoint
|
|
27
|
+
* matches if any transaction it contains satisfies the filter. If absent,
|
|
28
|
+
* every checkpoint is streamed.
|
|
29
|
+
*
|
|
30
|
+
* @generated from protobuf field: optional sui.rpc.v2.TransactionFilter filter = 2;
|
|
31
|
+
*/
|
|
32
|
+
filter?: TransactionFilter;
|
|
20
33
|
}
|
|
21
34
|
/**
|
|
22
|
-
* Response message for SubscriptionService.SubscribeCheckpoints
|
|
35
|
+
* Response message for SubscriptionService.SubscribeCheckpoints.
|
|
36
|
+
*
|
|
37
|
+
* A checkpoint stream's position is checkpoint-granular, so the `cursor`
|
|
38
|
+
* sequence number stands in for the `Watermark` message the other
|
|
39
|
+
* subscription responses carry. Progress-only frames (with `checkpoint`
|
|
40
|
+
* unset) occur only on filtered streams: on an unfiltered stream every frame
|
|
41
|
+
* carries both fields, in order and without gaps.
|
|
23
42
|
*
|
|
24
43
|
* @generated from protobuf message sui.rpc.v2.SubscribeCheckpointsResponse
|
|
25
44
|
*/
|
|
26
45
|
interface SubscribeCheckpointsResponse {
|
|
27
46
|
/**
|
|
28
|
-
* Required. The checkpoint sequence number
|
|
29
|
-
*
|
|
47
|
+
* Required. The checkpoint sequence number the stream has fully covered,
|
|
48
|
+
* inclusive: every matching checkpoint from the stream's start position
|
|
49
|
+
* through `cursor` has been delivered. Present on every frame and
|
|
50
|
+
* advances monotonically.
|
|
30
51
|
*
|
|
31
52
|
* @generated from protobuf field: optional uint64 cursor = 1;
|
|
32
53
|
*/
|
|
33
54
|
cursor?: bigint;
|
|
34
55
|
/**
|
|
35
|
-
* The
|
|
56
|
+
* The matching checkpoint. Unset when this frame only advances the
|
|
57
|
+
* cursor past non-matching checkpoints.
|
|
36
58
|
*
|
|
37
59
|
* @generated from protobuf field: optional sui.rpc.v2.Checkpoint checkpoint = 2;
|
|
38
60
|
*/
|
|
39
61
|
checkpoint?: Checkpoint;
|
|
40
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Request message for SubscriptionService.SubscribeTransactions.
|
|
65
|
+
*
|
|
66
|
+
* @generated from protobuf message sui.rpc.v2.SubscribeTransactionsRequest
|
|
67
|
+
*/
|
|
68
|
+
interface SubscribeTransactionsRequest {
|
|
69
|
+
/**
|
|
70
|
+
* Optional. Mask for specifying which parts of the ExecutedTransaction
|
|
71
|
+
* should be returned.
|
|
72
|
+
*
|
|
73
|
+
* @generated from protobuf field: optional google.protobuf.FieldMask read_mask = 1;
|
|
74
|
+
*/
|
|
75
|
+
readMask?: FieldMask;
|
|
76
|
+
/**
|
|
77
|
+
* Optional. DNF filter over indexed dimensions. If absent, every
|
|
78
|
+
* transaction is streamed.
|
|
79
|
+
*
|
|
80
|
+
* @generated from protobuf field: optional sui.rpc.v2.TransactionFilter filter = 2;
|
|
81
|
+
*/
|
|
82
|
+
filter?: TransactionFilter;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Response message for SubscriptionService.SubscribeTransactions.
|
|
86
|
+
*
|
|
87
|
+
* Mirrors ListTransactionsResponse, except there is no `end` field: a
|
|
88
|
+
* subscription stream has no successful end.
|
|
89
|
+
*
|
|
90
|
+
* @generated from protobuf message sui.rpc.v2.SubscribeTransactionsResponse
|
|
91
|
+
*/
|
|
92
|
+
interface SubscribeTransactionsResponse {
|
|
93
|
+
/**
|
|
94
|
+
* One matching transaction. Its position within the containing checkpoint
|
|
95
|
+
* is reported by `ExecutedTransaction.transaction_index`.
|
|
96
|
+
*
|
|
97
|
+
* @generated from protobuf field: optional sui.rpc.v2.ExecutedTransaction transaction = 1;
|
|
98
|
+
*/
|
|
99
|
+
transaction?: ExecutedTransaction;
|
|
100
|
+
/**
|
|
101
|
+
* Progress watermark as of this frame. Present on every frame.
|
|
102
|
+
*
|
|
103
|
+
* @generated from protobuf field: optional sui.rpc.v2.Watermark watermark = 2;
|
|
104
|
+
*/
|
|
105
|
+
watermark?: Watermark;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Request message for SubscriptionService.SubscribeEvents.
|
|
109
|
+
*
|
|
110
|
+
* @generated from protobuf message sui.rpc.v2.SubscribeEventsRequest
|
|
111
|
+
*/
|
|
112
|
+
interface SubscribeEventsRequest {
|
|
113
|
+
/**
|
|
114
|
+
* Optional. Mask for specifying which parts of the Event should be
|
|
115
|
+
* returned.
|
|
116
|
+
*
|
|
117
|
+
* @generated from protobuf field: optional google.protobuf.FieldMask read_mask = 1;
|
|
118
|
+
*/
|
|
119
|
+
readMask?: FieldMask;
|
|
120
|
+
/**
|
|
121
|
+
* Optional. DNF filter over indexed dimensions. If absent, every event is
|
|
122
|
+
* streamed.
|
|
123
|
+
*
|
|
124
|
+
* @generated from protobuf field: optional sui.rpc.v2.EventFilter filter = 2;
|
|
125
|
+
*/
|
|
126
|
+
filter?: EventFilter;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Response message for SubscriptionService.SubscribeEvents.
|
|
130
|
+
*
|
|
131
|
+
* Mirrors ListEventsResponse, except there is no `end` field: a subscription
|
|
132
|
+
* stream has no successful end.
|
|
133
|
+
*
|
|
134
|
+
* @generated from protobuf message sui.rpc.v2.SubscribeEventsResponse
|
|
135
|
+
*/
|
|
136
|
+
interface SubscribeEventsResponse {
|
|
137
|
+
/**
|
|
138
|
+
* One matching event. Its ledger position -- containing checkpoint,
|
|
139
|
+
* emitting transaction digest and offset, and index within that
|
|
140
|
+
* transaction's event list -- is reported by the corresponding fields on
|
|
141
|
+
* `Event`.
|
|
142
|
+
*
|
|
143
|
+
* @generated from protobuf field: optional sui.rpc.v2.Event event = 1;
|
|
144
|
+
*/
|
|
145
|
+
event?: Event;
|
|
146
|
+
/**
|
|
147
|
+
* Progress watermark as of this frame. Present on every frame.
|
|
148
|
+
*
|
|
149
|
+
* @generated from protobuf field: optional sui.rpc.v2.Watermark watermark = 2;
|
|
150
|
+
*/
|
|
151
|
+
watermark?: Watermark;
|
|
152
|
+
}
|
|
41
153
|
declare class SubscribeCheckpointsRequest$Type extends MessageType<SubscribeCheckpointsRequest> {
|
|
42
154
|
constructor();
|
|
43
155
|
}
|
|
@@ -52,10 +164,38 @@ declare class SubscribeCheckpointsResponse$Type extends MessageType<SubscribeChe
|
|
|
52
164
|
* @generated MessageType for protobuf message sui.rpc.v2.SubscribeCheckpointsResponse
|
|
53
165
|
*/
|
|
54
166
|
declare const SubscribeCheckpointsResponse: SubscribeCheckpointsResponse$Type;
|
|
167
|
+
declare class SubscribeTransactionsRequest$Type extends MessageType<SubscribeTransactionsRequest> {
|
|
168
|
+
constructor();
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @generated MessageType for protobuf message sui.rpc.v2.SubscribeTransactionsRequest
|
|
172
|
+
*/
|
|
173
|
+
declare const SubscribeTransactionsRequest: SubscribeTransactionsRequest$Type;
|
|
174
|
+
declare class SubscribeTransactionsResponse$Type extends MessageType<SubscribeTransactionsResponse> {
|
|
175
|
+
constructor();
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @generated MessageType for protobuf message sui.rpc.v2.SubscribeTransactionsResponse
|
|
179
|
+
*/
|
|
180
|
+
declare const SubscribeTransactionsResponse: SubscribeTransactionsResponse$Type;
|
|
181
|
+
declare class SubscribeEventsRequest$Type extends MessageType<SubscribeEventsRequest> {
|
|
182
|
+
constructor();
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* @generated MessageType for protobuf message sui.rpc.v2.SubscribeEventsRequest
|
|
186
|
+
*/
|
|
187
|
+
declare const SubscribeEventsRequest: SubscribeEventsRequest$Type;
|
|
188
|
+
declare class SubscribeEventsResponse$Type extends MessageType<SubscribeEventsResponse> {
|
|
189
|
+
constructor();
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* @generated MessageType for protobuf message sui.rpc.v2.SubscribeEventsResponse
|
|
193
|
+
*/
|
|
194
|
+
declare const SubscribeEventsResponse: SubscribeEventsResponse$Type;
|
|
55
195
|
/**
|
|
56
196
|
* @generated ServiceType for protobuf service sui.rpc.v2.SubscriptionService
|
|
57
197
|
*/
|
|
58
198
|
declare const SubscriptionService: ServiceType;
|
|
59
199
|
//#endregion
|
|
60
|
-
export { SubscribeCheckpointsRequest, SubscribeCheckpointsResponse, SubscriptionService };
|
|
200
|
+
export { SubscribeCheckpointsRequest, SubscribeCheckpointsResponse, SubscribeEventsRequest, SubscribeEventsResponse, SubscribeTransactionsRequest, SubscribeTransactionsResponse, SubscriptionService };
|
|
61
201
|
//# sourceMappingURL=subscription_service.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription_service.d.mts","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/subscription_service.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscription_service.d.mts","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/subscription_service.ts"],"mappings":";;;;;;;;;;;AAyBA;;;;UAAiB,2BAAA;EAQL;;;;;AAqBZ;;EArBC,QAAA,GAAW,SAAA;EAqCY;;;;;;AAOxB;EApCC,MAAA,GAAS,iBAAA;AAAA;;;;;;;;AA4DV;;;;UA/CiB,4BAAA;EAsDF;;;;;AAaf;;;EA1DC,MAAA;EAiEA;;;;;;EA1DA,UAAA,GAAa,UAAA;AAAA;;;;;;UAOG,4BAAA;EAmFK;;AACrB;;;;EA7EA,QAAA,GAAW,SAAA;EA+E+C;;;;AAW3D;;EAnFC,MAAA,GAAS,iBAAA;AAAA;;AAmFwE;;;;;;;UAzEjE,6BAAA;;AA6FjB;;;;;EAtFC,WAAA,GAAc,mBAAA;EAwFyB;;;;;EAlFvC,SAAA,GAAY,SAAA;AAAA;;AA6Fb;;;;UAtFiB,sBAAA;EAwFX;;;;;;EAjFL,QAAA,GAAW,SAAA;;;AA4FZ;;;;EArFC,MAAA,GAAS,WAAA;AAAA;;;;;;;;;UAUO,uBAAA;EAwFsD;;;;AAAC;;;;EA/EvE,KAAA,GAAQ,KAAA;EAiF8C;;;;AAWvD;EAtFC,SAAA,GAAY,SAAA;AAAA;AAAA,cAGP,gCAAA,SAAyC,WAAA,CAAY,2BAAA;;;;;;cAW9C,2BAAA,EAA2B,gCAAA;AAAA,cAElC,iCAAA,SAA0C,WAAA,CAAY,4BAAA;;;;;;cAkB/C,4BAAA,EAA4B,iCAAA;AAAA,cAEnC,iCAAA,SAA0C,WAAA,CAAY,4BAAA;;;;;;cAW/C,4BAAA,EAA4B,iCAAA;AAAA,cAEnC,kCAAA,SAA2C,WAAA,CAAY,6BAAA;;;;;;cAWhD,6BAAA,EAA6B,kCAAA;AAAA,cAEpC,2BAAA,SAAoC,WAAA,CAAY,sBAAA;;;;;;cAWzC,sBAAA,EAAsB,2BAAA;AAAA,cAE7B,4BAAA,SAAqC,WAAA,CAAY,uBAAA;;;;;;cAW1C,uBAAA,EAAuB,4BAAA;;;;cAIvB,mBAAA,EAAmB,WAAA"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { Event } from "./event.mjs";
|
|
2
|
+
import { ExecutedTransaction } from "./executed_transaction.mjs";
|
|
1
3
|
import { FieldMask } from "../../../google/protobuf/field_mask.mjs";
|
|
4
|
+
import { EventFilter, TransactionFilter } from "./filter.mjs";
|
|
5
|
+
import { Watermark } from "./query_options.mjs";
|
|
2
6
|
import { Checkpoint } from "./checkpoint.mjs";
|
|
3
7
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
4
8
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -11,6 +15,11 @@ var SubscribeCheckpointsRequest$Type = class extends MessageType {
|
|
|
11
15
|
name: "read_mask",
|
|
12
16
|
kind: "message",
|
|
13
17
|
T: () => FieldMask
|
|
18
|
+
}, {
|
|
19
|
+
no: 2,
|
|
20
|
+
name: "filter",
|
|
21
|
+
kind: "message",
|
|
22
|
+
T: () => TransactionFilter
|
|
14
23
|
}]);
|
|
15
24
|
}
|
|
16
25
|
};
|
|
@@ -39,17 +48,109 @@ var SubscribeCheckpointsResponse$Type = class extends MessageType {
|
|
|
39
48
|
* @generated MessageType for protobuf message sui.rpc.v2.SubscribeCheckpointsResponse
|
|
40
49
|
*/
|
|
41
50
|
const SubscribeCheckpointsResponse = new SubscribeCheckpointsResponse$Type();
|
|
51
|
+
var SubscribeTransactionsRequest$Type = class extends MessageType {
|
|
52
|
+
constructor() {
|
|
53
|
+
super("sui.rpc.v2.SubscribeTransactionsRequest", [{
|
|
54
|
+
no: 1,
|
|
55
|
+
name: "read_mask",
|
|
56
|
+
kind: "message",
|
|
57
|
+
T: () => FieldMask
|
|
58
|
+
}, {
|
|
59
|
+
no: 2,
|
|
60
|
+
name: "filter",
|
|
61
|
+
kind: "message",
|
|
62
|
+
T: () => TransactionFilter
|
|
63
|
+
}]);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* @generated MessageType for protobuf message sui.rpc.v2.SubscribeTransactionsRequest
|
|
68
|
+
*/
|
|
69
|
+
const SubscribeTransactionsRequest = new SubscribeTransactionsRequest$Type();
|
|
70
|
+
var SubscribeTransactionsResponse$Type = class extends MessageType {
|
|
71
|
+
constructor() {
|
|
72
|
+
super("sui.rpc.v2.SubscribeTransactionsResponse", [{
|
|
73
|
+
no: 1,
|
|
74
|
+
name: "transaction",
|
|
75
|
+
kind: "message",
|
|
76
|
+
T: () => ExecutedTransaction
|
|
77
|
+
}, {
|
|
78
|
+
no: 2,
|
|
79
|
+
name: "watermark",
|
|
80
|
+
kind: "message",
|
|
81
|
+
T: () => Watermark
|
|
82
|
+
}]);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* @generated MessageType for protobuf message sui.rpc.v2.SubscribeTransactionsResponse
|
|
87
|
+
*/
|
|
88
|
+
const SubscribeTransactionsResponse = new SubscribeTransactionsResponse$Type();
|
|
89
|
+
var SubscribeEventsRequest$Type = class extends MessageType {
|
|
90
|
+
constructor() {
|
|
91
|
+
super("sui.rpc.v2.SubscribeEventsRequest", [{
|
|
92
|
+
no: 1,
|
|
93
|
+
name: "read_mask",
|
|
94
|
+
kind: "message",
|
|
95
|
+
T: () => FieldMask
|
|
96
|
+
}, {
|
|
97
|
+
no: 2,
|
|
98
|
+
name: "filter",
|
|
99
|
+
kind: "message",
|
|
100
|
+
T: () => EventFilter
|
|
101
|
+
}]);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* @generated MessageType for protobuf message sui.rpc.v2.SubscribeEventsRequest
|
|
106
|
+
*/
|
|
107
|
+
const SubscribeEventsRequest = new SubscribeEventsRequest$Type();
|
|
108
|
+
var SubscribeEventsResponse$Type = class extends MessageType {
|
|
109
|
+
constructor() {
|
|
110
|
+
super("sui.rpc.v2.SubscribeEventsResponse", [{
|
|
111
|
+
no: 1,
|
|
112
|
+
name: "event",
|
|
113
|
+
kind: "message",
|
|
114
|
+
T: () => Event
|
|
115
|
+
}, {
|
|
116
|
+
no: 2,
|
|
117
|
+
name: "watermark",
|
|
118
|
+
kind: "message",
|
|
119
|
+
T: () => Watermark
|
|
120
|
+
}]);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* @generated MessageType for protobuf message sui.rpc.v2.SubscribeEventsResponse
|
|
125
|
+
*/
|
|
126
|
+
const SubscribeEventsResponse = new SubscribeEventsResponse$Type();
|
|
42
127
|
/**
|
|
43
128
|
* @generated ServiceType for protobuf service sui.rpc.v2.SubscriptionService
|
|
44
129
|
*/
|
|
45
|
-
const SubscriptionService = new ServiceType("sui.rpc.v2.SubscriptionService", [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
130
|
+
const SubscriptionService = new ServiceType("sui.rpc.v2.SubscriptionService", [
|
|
131
|
+
{
|
|
132
|
+
name: "SubscribeCheckpoints",
|
|
133
|
+
serverStreaming: true,
|
|
134
|
+
options: {},
|
|
135
|
+
I: SubscribeCheckpointsRequest,
|
|
136
|
+
O: SubscribeCheckpointsResponse
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "SubscribeTransactions",
|
|
140
|
+
serverStreaming: true,
|
|
141
|
+
options: {},
|
|
142
|
+
I: SubscribeTransactionsRequest,
|
|
143
|
+
O: SubscribeTransactionsResponse
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "SubscribeEvents",
|
|
147
|
+
serverStreaming: true,
|
|
148
|
+
options: {},
|
|
149
|
+
I: SubscribeEventsRequest,
|
|
150
|
+
O: SubscribeEventsResponse
|
|
151
|
+
}
|
|
152
|
+
]);
|
|
52
153
|
|
|
53
154
|
//#endregion
|
|
54
|
-
export { SubscribeCheckpointsRequest, SubscribeCheckpointsResponse, SubscriptionService };
|
|
155
|
+
export { SubscribeCheckpointsRequest, SubscribeCheckpointsResponse, SubscribeEventsRequest, SubscribeEventsResponse, SubscribeTransactionsRequest, SubscribeTransactionsResponse, SubscriptionService };
|
|
55
156
|
//# sourceMappingURL=subscription_service.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription_service.mjs","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/subscription_service.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/subscription_service.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 { ServiceType } from '@protobuf-ts/runtime-rpc';\nimport { MessageType } from '@protobuf-ts/runtime';\nimport { Checkpoint } from './checkpoint.js';\nimport { FieldMask } from '../../../google/protobuf/field_mask.js';\n/**\n * Request message for SubscriptionService.SubscribeCheckpoints\n *\n * @generated from protobuf message sui.rpc.v2.SubscribeCheckpointsRequest\n */\nexport interface SubscribeCheckpointsRequest {\n\t/**\n\t * Optional. Mask for specifying which parts of the\n\t * SubscribeCheckpointsResponse should be returned.\n\t *\n\t * @generated from protobuf field: optional google.protobuf.FieldMask read_mask = 1;\n\t */\n\treadMask?: FieldMask;\n}\n/**\n * Response message for SubscriptionService.SubscribeCheckpoints\n *\n * @generated from protobuf message sui.rpc.v2.SubscribeCheckpointsResponse\n */\nexport interface SubscribeCheckpointsResponse {\n\t/**\n\t * Required. The checkpoint sequence number and value of the current cursor\n\t * into the checkpoint stream\n\t *\n\t * @generated from protobuf field: optional uint64 cursor = 1;\n\t */\n\tcursor?: bigint;\n\t/**\n\t * The requested data for this checkpoint\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.Checkpoint checkpoint = 2;\n\t */\n\tcheckpoint?: Checkpoint;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass SubscribeCheckpointsRequest$Type extends MessageType<SubscribeCheckpointsRequest> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.SubscribeCheckpointsRequest', [\n\t\t\t{ no: 1, name: 'read_mask', kind: 'message', T: () => FieldMask },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.SubscribeCheckpointsRequest\n */\nexport const SubscribeCheckpointsRequest = new SubscribeCheckpointsRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass SubscribeCheckpointsResponse$Type extends MessageType<SubscribeCheckpointsResponse> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.SubscribeCheckpointsResponse', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'cursor',\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: 2, name: 'checkpoint', kind: 'message', T: () => Checkpoint },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.SubscribeCheckpointsResponse\n */\nexport const SubscribeCheckpointsResponse = new SubscribeCheckpointsResponse$Type();\n/**\n * @generated ServiceType for protobuf service sui.rpc.v2.SubscriptionService\n */\nexport const SubscriptionService = new ServiceType('sui.rpc.v2.SubscriptionService', [\n\t{\n\t\tname: 'SubscribeCheckpoints',\n\t\tserverStreaming: true,\n\t\toptions: {},\n\t\tI: SubscribeCheckpointsRequest,\n\t\tO: SubscribeCheckpointsResponse,\n\t},\n]);\n"],"mappings":";;;;;;AAkDA,IAAM,mCAAN,cAA+C,YAAyC;CACvF,cAAc;AACb,QAAM,0CAA0C,CAC/C;GAAE,IAAI;GAAG,MAAM;GAAa,MAAM;GAAW,SAAS;GAAW,CACjE,CAAC;;;;;;AAMJ,MAAa,8BAA8B,IAAI,kCAAkC;AAEjF,IAAM,oCAAN,cAAgD,YAA0C;CACzF,cAAc;AACb,QAAM,2CAA2C,CAChD;GACC,IAAI;GACJ,MAAM;GACN,MAAM;GACN,KAAK;GACL,GAAG;GACH,GAAG;GACH,EACD;GAAE,IAAI;GAAG,MAAM;GAAc,MAAM;GAAW,SAAS;GAAY,CACnE,CAAC;;;;;;AAMJ,MAAa,+BAA+B,IAAI,mCAAmC;;;;AAInF,MAAa,sBAAsB,IAAI,YAAY,kCAAkC,CACpF;CACC,MAAM;CACN,iBAAiB;CACjB,SAAS,EAAE;CACX,GAAG;CACH,GAAG;CACH,CACD,CAAC"}
|
|
1
|
+
{"version":3,"file":"subscription_service.mjs","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/subscription_service.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/subscription_service.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 { ServiceType } from '@protobuf-ts/runtime-rpc';\nimport { MessageType } from '@protobuf-ts/runtime';\nimport { Event } from './event.js';\nimport { EventFilter } from './filter.js';\nimport { Watermark } from './query_options.js';\nimport { ExecutedTransaction } from './executed_transaction.js';\nimport { Checkpoint } from './checkpoint.js';\nimport { TransactionFilter } from './filter.js';\nimport { FieldMask } from '../../../google/protobuf/field_mask.js';\n/**\n * Request message for SubscriptionService.SubscribeCheckpoints.\n *\n * @generated from protobuf message sui.rpc.v2.SubscribeCheckpointsRequest\n */\nexport interface SubscribeCheckpointsRequest {\n\t/**\n\t * Optional. Mask for specifying which parts of the Checkpoint should be\n\t * returned (e.g. summary, contents, signatures). `cursor` is always\n\t * populated and is not subject to the mask.\n\t *\n\t * @generated from protobuf field: optional google.protobuf.FieldMask read_mask = 1;\n\t */\n\treadMask?: FieldMask;\n\t/**\n\t * Optional. DNF filter over indexed transaction dimensions. A checkpoint\n\t * matches if any transaction it contains satisfies the filter. If absent,\n\t * every checkpoint is streamed.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.TransactionFilter filter = 2;\n\t */\n\tfilter?: TransactionFilter;\n}\n/**\n * Response message for SubscriptionService.SubscribeCheckpoints.\n *\n * A checkpoint stream's position is checkpoint-granular, so the `cursor`\n * sequence number stands in for the `Watermark` message the other\n * subscription responses carry. Progress-only frames (with `checkpoint`\n * unset) occur only on filtered streams: on an unfiltered stream every frame\n * carries both fields, in order and without gaps.\n *\n * @generated from protobuf message sui.rpc.v2.SubscribeCheckpointsResponse\n */\nexport interface SubscribeCheckpointsResponse {\n\t/**\n\t * Required. The checkpoint sequence number the stream has fully covered,\n\t * inclusive: every matching checkpoint from the stream's start position\n\t * through `cursor` has been delivered. Present on every frame and\n\t * advances monotonically.\n\t *\n\t * @generated from protobuf field: optional uint64 cursor = 1;\n\t */\n\tcursor?: bigint;\n\t/**\n\t * The matching checkpoint. Unset when this frame only advances the\n\t * cursor past non-matching checkpoints.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.Checkpoint checkpoint = 2;\n\t */\n\tcheckpoint?: Checkpoint;\n}\n/**\n * Request message for SubscriptionService.SubscribeTransactions.\n *\n * @generated from protobuf message sui.rpc.v2.SubscribeTransactionsRequest\n */\nexport interface SubscribeTransactionsRequest {\n\t/**\n\t * Optional. Mask for specifying which parts of the ExecutedTransaction\n\t * should be returned.\n\t *\n\t * @generated from protobuf field: optional google.protobuf.FieldMask read_mask = 1;\n\t */\n\treadMask?: FieldMask;\n\t/**\n\t * Optional. DNF filter over indexed dimensions. If absent, every\n\t * transaction is streamed.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.TransactionFilter filter = 2;\n\t */\n\tfilter?: TransactionFilter;\n}\n/**\n * Response message for SubscriptionService.SubscribeTransactions.\n *\n * Mirrors ListTransactionsResponse, except there is no `end` field: a\n * subscription stream has no successful end.\n *\n * @generated from protobuf message sui.rpc.v2.SubscribeTransactionsResponse\n */\nexport interface SubscribeTransactionsResponse {\n\t/**\n\t * One matching transaction. Its position within the containing checkpoint\n\t * is reported by `ExecutedTransaction.transaction_index`.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.ExecutedTransaction transaction = 1;\n\t */\n\ttransaction?: ExecutedTransaction;\n\t/**\n\t * Progress watermark as of this frame. Present on every frame.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.Watermark watermark = 2;\n\t */\n\twatermark?: Watermark;\n}\n/**\n * Request message for SubscriptionService.SubscribeEvents.\n *\n * @generated from protobuf message sui.rpc.v2.SubscribeEventsRequest\n */\nexport interface SubscribeEventsRequest {\n\t/**\n\t * Optional. Mask for specifying which parts of the Event should be\n\t * returned.\n\t *\n\t * @generated from protobuf field: optional google.protobuf.FieldMask read_mask = 1;\n\t */\n\treadMask?: FieldMask;\n\t/**\n\t * Optional. DNF filter over indexed dimensions. If absent, every event is\n\t * streamed.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.EventFilter filter = 2;\n\t */\n\tfilter?: EventFilter;\n}\n/**\n * Response message for SubscriptionService.SubscribeEvents.\n *\n * Mirrors ListEventsResponse, except there is no `end` field: a subscription\n * stream has no successful end.\n *\n * @generated from protobuf message sui.rpc.v2.SubscribeEventsResponse\n */\nexport interface SubscribeEventsResponse {\n\t/**\n\t * One matching event. Its ledger position -- containing checkpoint,\n\t * emitting transaction digest and offset, and index within that\n\t * transaction's event list -- is reported by the corresponding fields on\n\t * `Event`.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.Event event = 1;\n\t */\n\tevent?: Event;\n\t/**\n\t * Progress watermark as of this frame. Present on every frame.\n\t *\n\t * @generated from protobuf field: optional sui.rpc.v2.Watermark watermark = 2;\n\t */\n\twatermark?: Watermark;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass SubscribeCheckpointsRequest$Type extends MessageType<SubscribeCheckpointsRequest> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.SubscribeCheckpointsRequest', [\n\t\t\t{ no: 1, name: 'read_mask', kind: 'message', T: () => FieldMask },\n\t\t\t{ no: 2, name: 'filter', kind: 'message', T: () => TransactionFilter },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.SubscribeCheckpointsRequest\n */\nexport const SubscribeCheckpointsRequest = new SubscribeCheckpointsRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass SubscribeCheckpointsResponse$Type extends MessageType<SubscribeCheckpointsResponse> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.SubscribeCheckpointsResponse', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'cursor',\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: 2, name: 'checkpoint', kind: 'message', T: () => Checkpoint },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.SubscribeCheckpointsResponse\n */\nexport const SubscribeCheckpointsResponse = new SubscribeCheckpointsResponse$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass SubscribeTransactionsRequest$Type extends MessageType<SubscribeTransactionsRequest> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.SubscribeTransactionsRequest', [\n\t\t\t{ no: 1, name: 'read_mask', kind: 'message', T: () => FieldMask },\n\t\t\t{ no: 2, name: 'filter', kind: 'message', T: () => TransactionFilter },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.SubscribeTransactionsRequest\n */\nexport const SubscribeTransactionsRequest = new SubscribeTransactionsRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass SubscribeTransactionsResponse$Type extends MessageType<SubscribeTransactionsResponse> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.SubscribeTransactionsResponse', [\n\t\t\t{ no: 1, name: 'transaction', kind: 'message', T: () => ExecutedTransaction },\n\t\t\t{ no: 2, name: 'watermark', kind: 'message', T: () => Watermark },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.SubscribeTransactionsResponse\n */\nexport const SubscribeTransactionsResponse = new SubscribeTransactionsResponse$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass SubscribeEventsRequest$Type extends MessageType<SubscribeEventsRequest> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.SubscribeEventsRequest', [\n\t\t\t{ no: 1, name: 'read_mask', kind: 'message', T: () => FieldMask },\n\t\t\t{ no: 2, name: 'filter', kind: 'message', T: () => EventFilter },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.SubscribeEventsRequest\n */\nexport const SubscribeEventsRequest = new SubscribeEventsRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass SubscribeEventsResponse$Type extends MessageType<SubscribeEventsResponse> {\n\tconstructor() {\n\t\tsuper('sui.rpc.v2.SubscribeEventsResponse', [\n\t\t\t{ no: 1, name: 'event', kind: 'message', T: () => Event },\n\t\t\t{ no: 2, name: 'watermark', kind: 'message', T: () => Watermark },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message sui.rpc.v2.SubscribeEventsResponse\n */\nexport const SubscribeEventsResponse = new SubscribeEventsResponse$Type();\n/**\n * @generated ServiceType for protobuf service sui.rpc.v2.SubscriptionService\n */\nexport const SubscriptionService = new ServiceType('sui.rpc.v2.SubscriptionService', [\n\t{\n\t\tname: 'SubscribeCheckpoints',\n\t\tserverStreaming: true,\n\t\toptions: {},\n\t\tI: SubscribeCheckpointsRequest,\n\t\tO: SubscribeCheckpointsResponse,\n\t},\n\t{\n\t\tname: 'SubscribeTransactions',\n\t\tserverStreaming: true,\n\t\toptions: {},\n\t\tI: SubscribeTransactionsRequest,\n\t\tO: SubscribeTransactionsResponse,\n\t},\n\t{\n\t\tname: 'SubscribeEvents',\n\t\tserverStreaming: true,\n\t\toptions: {},\n\t\tI: SubscribeEventsRequest,\n\t\tO: SubscribeEventsResponse,\n\t},\n]);\n"],"mappings":";;;;;;;;;;AAmKA,IAAM,mCAAN,cAA+C,YAAyC;CACvF,cAAc;AACb,QAAM,0CAA0C,CAC/C;GAAE,IAAI;GAAG,MAAM;GAAa,MAAM;GAAW,SAAS;GAAW,EACjE;GAAE,IAAI;GAAG,MAAM;GAAU,MAAM;GAAW,SAAS;GAAmB,CACtE,CAAC;;;;;;AAMJ,MAAa,8BAA8B,IAAI,kCAAkC;AAEjF,IAAM,oCAAN,cAAgD,YAA0C;CACzF,cAAc;AACb,QAAM,2CAA2C,CAChD;GACC,IAAI;GACJ,MAAM;GACN,MAAM;GACN,KAAK;GACL,GAAG;GACH,GAAG;GACH,EACD;GAAE,IAAI;GAAG,MAAM;GAAc,MAAM;GAAW,SAAS;GAAY,CACnE,CAAC;;;;;;AAMJ,MAAa,+BAA+B,IAAI,mCAAmC;AAEnF,IAAM,oCAAN,cAAgD,YAA0C;CACzF,cAAc;AACb,QAAM,2CAA2C,CAChD;GAAE,IAAI;GAAG,MAAM;GAAa,MAAM;GAAW,SAAS;GAAW,EACjE;GAAE,IAAI;GAAG,MAAM;GAAU,MAAM;GAAW,SAAS;GAAmB,CACtE,CAAC;;;;;;AAMJ,MAAa,+BAA+B,IAAI,mCAAmC;AAEnF,IAAM,qCAAN,cAAiD,YAA2C;CAC3F,cAAc;AACb,QAAM,4CAA4C,CACjD;GAAE,IAAI;GAAG,MAAM;GAAe,MAAM;GAAW,SAAS;GAAqB,EAC7E;GAAE,IAAI;GAAG,MAAM;GAAa,MAAM;GAAW,SAAS;GAAW,CACjE,CAAC;;;;;;AAMJ,MAAa,gCAAgC,IAAI,oCAAoC;AAErF,IAAM,8BAAN,cAA0C,YAAoC;CAC7E,cAAc;AACb,QAAM,qCAAqC,CAC1C;GAAE,IAAI;GAAG,MAAM;GAAa,MAAM;GAAW,SAAS;GAAW,EACjE;GAAE,IAAI;GAAG,MAAM;GAAU,MAAM;GAAW,SAAS;GAAa,CAChE,CAAC;;;;;;AAMJ,MAAa,yBAAyB,IAAI,6BAA6B;AAEvE,IAAM,+BAAN,cAA2C,YAAqC;CAC/E,cAAc;AACb,QAAM,sCAAsC,CAC3C;GAAE,IAAI;GAAG,MAAM;GAAS,MAAM;GAAW,SAAS;GAAO,EACzD;GAAE,IAAI;GAAG,MAAM;GAAa,MAAM;GAAW,SAAS;GAAW,CACjE,CAAC;;;;;;AAMJ,MAAa,0BAA0B,IAAI,8BAA8B;;;;AAIzE,MAAa,sBAAsB,IAAI,YAAY,kCAAkC;CACpF;EACC,MAAM;EACN,iBAAiB;EACjB,SAAS,EAAE;EACX,GAAG;EACH,GAAG;EACH;CACD;EACC,MAAM;EACN,iBAAiB;EACjB,SAAS,EAAE;EACX,GAAG;EACH,GAAG;EACH;CACD;EACC,MAAM;EACN,iBAAiB;EACjB,SAAS,EAAE;EACX,GAAG;EACH,GAAG;EACH;CACD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExecuteTransactionRequest, ExecuteTransactionResponse, SimulateTransactionRequest, SimulateTransactionResponse } from "./transaction_execution_service.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _protobuf_ts_runtime2 from "@protobuf-ts/runtime";
|
|
3
|
+
import * as _protobuf_ts_runtime_rpc2 from "@protobuf-ts/runtime-rpc";
|
|
4
4
|
import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
|
|
6
6
|
//#region src/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts
|
|
@@ -23,9 +23,9 @@ interface ITransactionExecutionServiceClient {
|
|
|
23
23
|
declare class TransactionExecutionServiceClient implements ITransactionExecutionServiceClient, ServiceInfo {
|
|
24
24
|
private readonly _transport;
|
|
25
25
|
typeName: string;
|
|
26
|
-
methods:
|
|
26
|
+
methods: _protobuf_ts_runtime_rpc2.MethodInfo<any, any>[];
|
|
27
27
|
options: {
|
|
28
|
-
[extensionName: string]:
|
|
28
|
+
[extensionName: string]: _protobuf_ts_runtime2.JsonValue;
|
|
29
29
|
};
|
|
30
30
|
constructor(_transport: RpcTransport);
|
|
31
31
|
/**
|
|
@@ -16,24 +16,26 @@ import { FundsWithdrawal, FundsWithdrawal_Source, Input, Input_InputKind, Input_
|
|
|
16
16
|
import { ActiveJwk, AuthenticatorStateExpire, AuthenticatorStateUpdate, CanceledTransaction, ChangeEpoch, Command, ConsensusCommitPrologue, ConsensusDeterminedVersionAssignments, EndOfEpochTransaction, EndOfEpochTransactionKind, EndOfEpochTransactionKind_Kind, ExecutionTimeObservation, ExecutionTimeObservation_ExecutionTimeObservationKind, ExecutionTimeObservations, GasPayment, GenesisTransaction, MakeMoveVector, MergeCoins, MoveCall, ProgrammableTransaction, Publish, RandomnessStateUpdate, SplitCoins, SystemPackage, Transaction, TransactionExpiration, TransactionExpiration_TransactionExpirationKind, TransactionKind, TransactionKind_Kind, TransferObjects, Upgrade, ValidatorExecutionTimeObservation, VersionAssignment } from "./sui/rpc/v2/transaction.mjs";
|
|
17
17
|
import { ExecutedTransaction } from "./sui/rpc/v2/executed_transaction.mjs";
|
|
18
18
|
import { CommandOutput, CommandResult, ExecuteTransactionRequest, ExecuteTransactionResponse, SimulateTransactionRequest, SimulateTransactionRequest_TransactionChecks, SimulateTransactionResponse, TransactionExecutionService } from "./sui/rpc/v2/transaction_execution_service.mjs";
|
|
19
|
+
import { AffectedAddressFilter, AffectedObjectFilter, EmitModuleFilter, EventFilter, EventLiteral, EventStreamHeadFilter, EventTerm, EventTypeFilter, MoveCallFilter, PackageWriteFilter, SenderFilter, TransactionFilter, TransactionLiteral, TransactionTerm } from "./sui/rpc/v2/filter.mjs";
|
|
20
|
+
import { Ordering, QueryEnd, QueryEndReason, QueryOptions, Watermark } from "./sui/rpc/v2/query_options.mjs";
|
|
19
21
|
import { ProtocolConfig } from "./sui/rpc/v2/protocol_config.mjs";
|
|
20
22
|
import { MoveTable, StakeSubsidy, StakingPool, StorageFund, SystemParameters, SystemState, Validator, ValidatorReportRecord, ValidatorSet } from "./sui/rpc/v2/system_state.mjs";
|
|
21
23
|
import { Epoch } from "./sui/rpc/v2/epoch.mjs";
|
|
22
24
|
import { AddressAliasesVersion, CheckpointContents, CheckpointedTransactionInfo } from "./sui/rpc/v2/checkpoint_contents.mjs";
|
|
23
25
|
import { CheckpointCommitment, CheckpointCommitment_CheckpointCommitmentKind, CheckpointSummary, EndOfEpochData } from "./sui/rpc/v2/checkpoint_summary.mjs";
|
|
24
26
|
import { Checkpoint } from "./sui/rpc/v2/checkpoint.mjs";
|
|
25
|
-
import { BatchGetObjectsRequest, BatchGetObjectsResponse, BatchGetTransactionsRequest, BatchGetTransactionsResponse, GetCheckpointRequest, GetCheckpointResponse, GetEpochRequest, GetEpochResponse, GetObjectRequest, GetObjectResponse, GetObjectResult, GetServiceInfoRequest, GetServiceInfoResponse, GetTransactionRequest, GetTransactionResponse, GetTransactionResult, LedgerService } from "./sui/rpc/v2/ledger_service.mjs";
|
|
27
|
+
import { BatchGetObjectsRequest, BatchGetObjectsResponse, BatchGetTransactionsRequest, BatchGetTransactionsResponse, GetCheckpointRequest, GetCheckpointResponse, GetEpochRequest, GetEpochResponse, GetObjectRequest, GetObjectResponse, GetObjectResult, GetServiceInfoRequest, GetServiceInfoResponse, GetTransactionRequest, GetTransactionResponse, GetTransactionResult, LedgerService, ListCheckpointsRequest, ListCheckpointsResponse, ListEventsRequest, ListEventsResponse, ListTransactionsRequest, ListTransactionsResponse } from "./sui/rpc/v2/ledger_service.mjs";
|
|
26
28
|
import { GetDatatypeRequest, GetDatatypeResponse, GetFunctionRequest, GetFunctionResponse, GetPackageRequest, GetPackageResponse, ListPackageVersionsRequest, ListPackageVersionsResponse, MovePackageService, PackageVersion } from "./sui/rpc/v2/move_package_service.mjs";
|
|
27
29
|
import { SignatureVerificationService, VerifySignatureRequest, VerifySignatureResponse } from "./sui/rpc/v2/signature_verification_service.mjs";
|
|
28
30
|
import { Balance, CoinMetadata, CoinMetadata_MetadataCapState, CoinTreasury, CoinTreasury_SupplyState, DynamicField, DynamicField_DynamicFieldKind, GetBalanceRequest, GetBalanceResponse, GetCoinInfoRequest, GetCoinInfoResponse, ListBalancesRequest, ListBalancesResponse, ListDynamicFieldsRequest, ListDynamicFieldsResponse, ListOwnedObjectsRequest, ListOwnedObjectsResponse, RegulatedCoinMetadata, RegulatedCoinMetadata_CoinRegulatedState, StateService } from "./sui/rpc/v2/state_service.mjs";
|
|
29
|
-
import { SubscribeCheckpointsRequest, SubscribeCheckpointsResponse, SubscriptionService } from "./sui/rpc/v2/subscription_service.mjs";
|
|
31
|
+
import { SubscribeCheckpointsRequest, SubscribeCheckpointsResponse, SubscribeEventsRequest, SubscribeEventsResponse, SubscribeTransactionsRequest, SubscribeTransactionsResponse, SubscriptionService } from "./sui/rpc/v2/subscription_service.mjs";
|
|
30
32
|
import { LookupNameRequest, LookupNameResponse, NameRecord, NameService, ReverseLookupNameRequest, ReverseLookupNameResponse } from "./sui/rpc/v2/name_service.mjs";
|
|
31
33
|
import { AdvanceCheckpointRequest, AdvanceCheckpointResponse, AdvanceClockRequest, AdvanceClockResponse, ForkingService, GetStatusRequest, GetStatusResponse } from "./sui/forking/v1alpha/forking_service.mjs";
|
|
32
34
|
import { ErrorReason } from "./sui/rpc/v2/error_reason.mjs";
|
|
33
35
|
|
|
34
36
|
//#region src/grpc/proto/types.d.ts
|
|
35
37
|
declare namespace types_d_exports {
|
|
36
|
-
export { Ability, AccumulatorWrite, AccumulatorWrite_AccumulatorOperation, AccumulatorWrite_AccumulatorValue, ActiveJwk, AddressAliasesVersion, AdvanceCheckpointRequest, AdvanceCheckpointResponse, AdvanceClockRequest, AdvanceClockResponse, Argument, Argument_ArgumentKind, AuthenticatorStateExpire, AuthenticatorStateUpdate, Balance, BalanceChange, BatchGetObjectsRequest, BatchGetObjectsResponse, BatchGetTransactionsRequest, BatchGetTransactionsResponse, Bcs, CanceledTransaction, ChangeEpoch, ChangedObject, ChangedObject_IdOperation, ChangedObject_InputObjectState, ChangedObject_OutputObjectState, Checkpoint, CheckpointCommitment, CheckpointCommitment_CheckpointCommitmentKind, CheckpointContents, CheckpointSummary, CheckpointedTransactionInfo, CircomG1, CircomG2, CleverError, CoinDenyListError, CoinMetadata, CoinMetadata_MetadataCapState, CoinTreasury, CoinTreasury_SupplyState, Command, CommandArgumentError, CommandArgumentError_CommandArgumentErrorKind, CommandOutput, CommandResult, CongestedObjects, ConsensusCommitPrologue, ConsensusDeterminedVersionAssignments, DatatypeDescriptor, DatatypeDescriptor_DatatypeKind, Display, DynamicField, DynamicField_DynamicFieldKind, EndOfEpochData, EndOfEpochTransaction, EndOfEpochTransactionKind, EndOfEpochTransactionKind_Kind, Epoch, ErrorReason, Event, EventDigestEntry, ExecuteTransactionRequest, ExecuteTransactionResponse, ExecutedTransaction, ExecutionError, ExecutionError_ExecutionErrorKind, ExecutionStatus, ExecutionTimeObservation, ExecutionTimeObservation_ExecutionTimeObservationKind, ExecutionTimeObservations, FieldDescriptor, ForkingService, FunctionDescriptor, FunctionDescriptor_Visibility, FundsWithdrawal, FundsWithdrawal_Source, GasCostSummary, GasPayment, GenesisTransaction, GetBalanceRequest, GetBalanceResponse, GetCheckpointRequest, GetCheckpointResponse, GetCoinInfoRequest, GetCoinInfoResponse, GetDatatypeRequest, GetDatatypeResponse, GetEpochRequest, GetEpochResponse, GetFunctionRequest, GetFunctionResponse, GetObjectRequest, GetObjectResponse, GetObjectResult, GetPackageRequest, GetPackageResponse, GetServiceInfoRequest, GetServiceInfoResponse, GetStatusRequest, GetStatusResponse, GetTransactionRequest, GetTransactionResponse, GetTransactionResult, IndexError, Input, Input_InputKind, Input_Mutability, Jwk, JwkId, LedgerService, Linkage, ListBalancesRequest, ListBalancesResponse, ListDynamicFieldsRequest, ListDynamicFieldsResponse, ListOwnedObjectsRequest, ListOwnedObjectsResponse, ListPackageVersionsRequest, ListPackageVersionsResponse, LookupNameRequest, LookupNameResponse, MakeMoveVector, MergeCoins, Module, MoveAbort, MoveCall, MoveLocation, MovePackageService, MoveTable, MultisigAggregatedSignature, MultisigCommittee, MultisigMember, MultisigMemberPublicKey, MultisigMemberSignature, NameRecord, NameService, Object$1 as Object, ObjectReference, ObjectSet, OpenSignature, OpenSignatureBody, OpenSignatureBody_Type, OpenSignature_Reference, Owner, Owner_OwnerKind, Package, PackageUpgradeError, PackageUpgradeError_PackageUpgradeErrorKind, PackageVersion, PasskeyAuthenticator, ProgrammableTransaction, ProtocolConfig, Publish, RandomnessStateUpdate, RegulatedCoinMetadata, RegulatedCoinMetadata_CoinRegulatedState, ReverseLookupNameRequest, ReverseLookupNameResponse, SignatureScheme, SignatureVerificationService, SimpleSignature, SimulateTransactionRequest, SimulateTransactionRequest_TransactionChecks, SimulateTransactionResponse, SizeError, SplitCoins, StakeSubsidy, StakingPool, StateService, StorageFund, SubscribeCheckpointsRequest, SubscribeCheckpointsResponse, SubscriptionService, SystemPackage, SystemParameters, SystemState, Transaction, TransactionEffects, TransactionEvents, TransactionExecutionService, TransactionExpiration, TransactionExpiration_TransactionExpirationKind, TransactionKind, TransactionKind_Kind, TransferObjects, TypeArgumentError, TypeArgumentError_TypeArgumentErrorKind, TypeOrigin, TypeParameter, UnchangedConsensusObject, UnchangedConsensusObject_UnchangedConsensusObjectKind, Upgrade, UserSignature, Validator, ValidatorAggregatedSignature, ValidatorCommittee, ValidatorCommitteeMember, ValidatorExecutionTimeObservation, ValidatorReportRecord, ValidatorSet, VariantDescriptor, VerifySignatureRequest, VerifySignatureResponse, VersionAssignment, ZkLoginAuthenticator, ZkLoginClaim, ZkLoginInputs, ZkLoginProof, ZkLoginPublicIdentifier };
|
|
38
|
+
export { Ability, AccumulatorWrite, AccumulatorWrite_AccumulatorOperation, AccumulatorWrite_AccumulatorValue, ActiveJwk, AddressAliasesVersion, AdvanceCheckpointRequest, AdvanceCheckpointResponse, AdvanceClockRequest, AdvanceClockResponse, AffectedAddressFilter, AffectedObjectFilter, Argument, Argument_ArgumentKind, AuthenticatorStateExpire, AuthenticatorStateUpdate, Balance, BalanceChange, BatchGetObjectsRequest, BatchGetObjectsResponse, BatchGetTransactionsRequest, BatchGetTransactionsResponse, Bcs, CanceledTransaction, ChangeEpoch, ChangedObject, ChangedObject_IdOperation, ChangedObject_InputObjectState, ChangedObject_OutputObjectState, Checkpoint, CheckpointCommitment, CheckpointCommitment_CheckpointCommitmentKind, CheckpointContents, CheckpointSummary, CheckpointedTransactionInfo, CircomG1, CircomG2, CleverError, CoinDenyListError, CoinMetadata, CoinMetadata_MetadataCapState, CoinTreasury, CoinTreasury_SupplyState, Command, CommandArgumentError, CommandArgumentError_CommandArgumentErrorKind, CommandOutput, CommandResult, CongestedObjects, ConsensusCommitPrologue, ConsensusDeterminedVersionAssignments, DatatypeDescriptor, DatatypeDescriptor_DatatypeKind, Display, DynamicField, DynamicField_DynamicFieldKind, EmitModuleFilter, EndOfEpochData, EndOfEpochTransaction, EndOfEpochTransactionKind, EndOfEpochTransactionKind_Kind, Epoch, ErrorReason, Event, EventDigestEntry, EventFilter, EventLiteral, EventStreamHeadFilter, EventTerm, EventTypeFilter, ExecuteTransactionRequest, ExecuteTransactionResponse, ExecutedTransaction, ExecutionError, ExecutionError_ExecutionErrorKind, ExecutionStatus, ExecutionTimeObservation, ExecutionTimeObservation_ExecutionTimeObservationKind, ExecutionTimeObservations, FieldDescriptor, ForkingService, FunctionDescriptor, FunctionDescriptor_Visibility, FundsWithdrawal, FundsWithdrawal_Source, GasCostSummary, GasPayment, GenesisTransaction, GetBalanceRequest, GetBalanceResponse, GetCheckpointRequest, GetCheckpointResponse, GetCoinInfoRequest, GetCoinInfoResponse, GetDatatypeRequest, GetDatatypeResponse, GetEpochRequest, GetEpochResponse, GetFunctionRequest, GetFunctionResponse, GetObjectRequest, GetObjectResponse, GetObjectResult, GetPackageRequest, GetPackageResponse, GetServiceInfoRequest, GetServiceInfoResponse, GetStatusRequest, GetStatusResponse, GetTransactionRequest, GetTransactionResponse, GetTransactionResult, IndexError, Input, Input_InputKind, Input_Mutability, Jwk, JwkId, LedgerService, Linkage, ListBalancesRequest, ListBalancesResponse, ListCheckpointsRequest, ListCheckpointsResponse, ListDynamicFieldsRequest, ListDynamicFieldsResponse, ListEventsRequest, ListEventsResponse, ListOwnedObjectsRequest, ListOwnedObjectsResponse, ListPackageVersionsRequest, ListPackageVersionsResponse, ListTransactionsRequest, ListTransactionsResponse, LookupNameRequest, LookupNameResponse, MakeMoveVector, MergeCoins, Module, MoveAbort, MoveCall, MoveCallFilter, MoveLocation, MovePackageService, MoveTable, MultisigAggregatedSignature, MultisigCommittee, MultisigMember, MultisigMemberPublicKey, MultisigMemberSignature, NameRecord, NameService, Object$1 as Object, ObjectReference, ObjectSet, OpenSignature, OpenSignatureBody, OpenSignatureBody_Type, OpenSignature_Reference, Ordering, Owner, Owner_OwnerKind, Package, PackageUpgradeError, PackageUpgradeError_PackageUpgradeErrorKind, PackageVersion, PackageWriteFilter, PasskeyAuthenticator, ProgrammableTransaction, ProtocolConfig, Publish, QueryEnd, QueryEndReason, QueryOptions, RandomnessStateUpdate, RegulatedCoinMetadata, RegulatedCoinMetadata_CoinRegulatedState, ReverseLookupNameRequest, ReverseLookupNameResponse, SenderFilter, SignatureScheme, SignatureVerificationService, SimpleSignature, SimulateTransactionRequest, SimulateTransactionRequest_TransactionChecks, SimulateTransactionResponse, SizeError, SplitCoins, StakeSubsidy, StakingPool, StateService, StorageFund, SubscribeCheckpointsRequest, SubscribeCheckpointsResponse, SubscribeEventsRequest, SubscribeEventsResponse, SubscribeTransactionsRequest, SubscribeTransactionsResponse, SubscriptionService, SystemPackage, SystemParameters, SystemState, Transaction, TransactionEffects, TransactionEvents, TransactionExecutionService, TransactionExpiration, TransactionExpiration_TransactionExpirationKind, TransactionFilter, TransactionKind, TransactionKind_Kind, TransactionLiteral, TransactionTerm, TransferObjects, TypeArgumentError, TypeArgumentError_TypeArgumentErrorKind, TypeOrigin, TypeParameter, UnchangedConsensusObject, UnchangedConsensusObject_UnchangedConsensusObjectKind, Upgrade, UserSignature, Validator, ValidatorAggregatedSignature, ValidatorCommittee, ValidatorCommitteeMember, ValidatorExecutionTimeObservation, ValidatorReportRecord, ValidatorSet, VariantDescriptor, VerifySignatureRequest, VerifySignatureResponse, VersionAssignment, Watermark, ZkLoginAuthenticator, ZkLoginClaim, ZkLoginInputs, ZkLoginProof, ZkLoginPublicIdentifier };
|
|
37
39
|
}
|
|
38
40
|
//#endregion
|
|
39
41
|
export { types_d_exports };
|
|
@@ -17,17 +17,19 @@ import { SignatureScheme } from "./sui/rpc/v2/signature_scheme.mjs";
|
|
|
17
17
|
import { CircomG1, CircomG2, MultisigAggregatedSignature, MultisigCommittee, MultisigMember, MultisigMemberPublicKey, MultisigMemberSignature, PasskeyAuthenticator, SimpleSignature, UserSignature, ValidatorAggregatedSignature, ValidatorCommittee, ValidatorCommitteeMember, ZkLoginAuthenticator, ZkLoginClaim, ZkLoginInputs, ZkLoginProof, ZkLoginPublicIdentifier } from "./sui/rpc/v2/signature.mjs";
|
|
18
18
|
import { ExecutedTransaction } from "./sui/rpc/v2/executed_transaction.mjs";
|
|
19
19
|
import { CommandOutput, CommandResult, ExecuteTransactionRequest, ExecuteTransactionResponse, SimulateTransactionRequest, SimulateTransactionRequest_TransactionChecks, SimulateTransactionResponse, TransactionExecutionService } from "./sui/rpc/v2/transaction_execution_service.mjs";
|
|
20
|
+
import { AffectedAddressFilter, AffectedObjectFilter, EmitModuleFilter, EventFilter, EventLiteral, EventStreamHeadFilter, EventTerm, EventTypeFilter, MoveCallFilter, PackageWriteFilter, SenderFilter, TransactionFilter, TransactionLiteral, TransactionTerm } from "./sui/rpc/v2/filter.mjs";
|
|
21
|
+
import { Ordering, QueryEnd, QueryEndReason, QueryOptions, Watermark } from "./sui/rpc/v2/query_options.mjs";
|
|
20
22
|
import { ProtocolConfig } from "./sui/rpc/v2/protocol_config.mjs";
|
|
21
23
|
import { MoveTable, StakeSubsidy, StakingPool, StorageFund, SystemParameters, SystemState, Validator, ValidatorReportRecord, ValidatorSet } from "./sui/rpc/v2/system_state.mjs";
|
|
22
24
|
import { Epoch } from "./sui/rpc/v2/epoch.mjs";
|
|
23
25
|
import { AddressAliasesVersion, CheckpointContents, CheckpointedTransactionInfo } from "./sui/rpc/v2/checkpoint_contents.mjs";
|
|
24
26
|
import { CheckpointCommitment, CheckpointCommitment_CheckpointCommitmentKind, CheckpointSummary, EndOfEpochData } from "./sui/rpc/v2/checkpoint_summary.mjs";
|
|
25
27
|
import { Checkpoint } from "./sui/rpc/v2/checkpoint.mjs";
|
|
26
|
-
import { BatchGetObjectsRequest, BatchGetObjectsResponse, BatchGetTransactionsRequest, BatchGetTransactionsResponse, GetCheckpointRequest, GetCheckpointResponse, GetEpochRequest, GetEpochResponse, GetObjectRequest, GetObjectResponse, GetObjectResult, GetServiceInfoRequest, GetServiceInfoResponse, GetTransactionRequest, GetTransactionResponse, GetTransactionResult, LedgerService } from "./sui/rpc/v2/ledger_service.mjs";
|
|
28
|
+
import { BatchGetObjectsRequest, BatchGetObjectsResponse, BatchGetTransactionsRequest, BatchGetTransactionsResponse, GetCheckpointRequest, GetCheckpointResponse, GetEpochRequest, GetEpochResponse, GetObjectRequest, GetObjectResponse, GetObjectResult, GetServiceInfoRequest, GetServiceInfoResponse, GetTransactionRequest, GetTransactionResponse, GetTransactionResult, LedgerService, ListCheckpointsRequest, ListCheckpointsResponse, ListEventsRequest, ListEventsResponse, ListTransactionsRequest, ListTransactionsResponse } from "./sui/rpc/v2/ledger_service.mjs";
|
|
27
29
|
import { GetDatatypeRequest, GetDatatypeResponse, GetFunctionRequest, GetFunctionResponse, GetPackageRequest, GetPackageResponse, ListPackageVersionsRequest, ListPackageVersionsResponse, MovePackageService, PackageVersion } from "./sui/rpc/v2/move_package_service.mjs";
|
|
28
30
|
import { SignatureVerificationService, VerifySignatureRequest, VerifySignatureResponse } from "./sui/rpc/v2/signature_verification_service.mjs";
|
|
29
31
|
import { Balance, CoinMetadata, CoinMetadata_MetadataCapState, CoinTreasury, CoinTreasury_SupplyState, DynamicField, DynamicField_DynamicFieldKind, GetBalanceRequest, GetBalanceResponse, GetCoinInfoRequest, GetCoinInfoResponse, ListBalancesRequest, ListBalancesResponse, ListDynamicFieldsRequest, ListDynamicFieldsResponse, ListOwnedObjectsRequest, ListOwnedObjectsResponse, RegulatedCoinMetadata, RegulatedCoinMetadata_CoinRegulatedState, StateService } from "./sui/rpc/v2/state_service.mjs";
|
|
30
|
-
import { SubscribeCheckpointsRequest, SubscribeCheckpointsResponse, SubscriptionService } from "./sui/rpc/v2/subscription_service.mjs";
|
|
32
|
+
import { SubscribeCheckpointsRequest, SubscribeCheckpointsResponse, SubscribeEventsRequest, SubscribeEventsResponse, SubscribeTransactionsRequest, SubscribeTransactionsResponse, SubscriptionService } from "./sui/rpc/v2/subscription_service.mjs";
|
|
31
33
|
import { LookupNameRequest, LookupNameResponse, NameRecord, NameService, ReverseLookupNameRequest, ReverseLookupNameResponse } from "./sui/rpc/v2/name_service.mjs";
|
|
32
34
|
import { AdvanceCheckpointRequest, AdvanceCheckpointResponse, AdvanceClockRequest, AdvanceClockResponse, ForkingService, GetStatusRequest, GetStatusResponse } from "./sui/forking/v1alpha/forking_service.mjs";
|
|
33
35
|
import { ErrorReason } from "./sui/rpc/v2/error_reason.mjs";
|
|
@@ -44,6 +46,8 @@ var types_exports = /* @__PURE__ */ __exportAll({
|
|
|
44
46
|
AdvanceCheckpointResponse: () => AdvanceCheckpointResponse,
|
|
45
47
|
AdvanceClockRequest: () => AdvanceClockRequest,
|
|
46
48
|
AdvanceClockResponse: () => AdvanceClockResponse,
|
|
49
|
+
AffectedAddressFilter: () => AffectedAddressFilter,
|
|
50
|
+
AffectedObjectFilter: () => AffectedObjectFilter,
|
|
47
51
|
Argument: () => Argument,
|
|
48
52
|
Argument_ArgumentKind: () => Argument_ArgumentKind,
|
|
49
53
|
AuthenticatorStateExpire: () => AuthenticatorStateExpire,
|
|
@@ -88,6 +92,7 @@ var types_exports = /* @__PURE__ */ __exportAll({
|
|
|
88
92
|
Display: () => Display,
|
|
89
93
|
DynamicField: () => DynamicField,
|
|
90
94
|
DynamicField_DynamicFieldKind: () => DynamicField_DynamicFieldKind,
|
|
95
|
+
EmitModuleFilter: () => EmitModuleFilter,
|
|
91
96
|
EndOfEpochData: () => EndOfEpochData,
|
|
92
97
|
EndOfEpochTransaction: () => EndOfEpochTransaction,
|
|
93
98
|
EndOfEpochTransactionKind: () => EndOfEpochTransactionKind,
|
|
@@ -96,6 +101,11 @@ var types_exports = /* @__PURE__ */ __exportAll({
|
|
|
96
101
|
ErrorReason: () => ErrorReason,
|
|
97
102
|
Event: () => Event,
|
|
98
103
|
EventDigestEntry: () => EventDigestEntry,
|
|
104
|
+
EventFilter: () => EventFilter,
|
|
105
|
+
EventLiteral: () => EventLiteral,
|
|
106
|
+
EventStreamHeadFilter: () => EventStreamHeadFilter,
|
|
107
|
+
EventTerm: () => EventTerm,
|
|
108
|
+
EventTypeFilter: () => EventTypeFilter,
|
|
99
109
|
ExecuteTransactionRequest: () => ExecuteTransactionRequest,
|
|
100
110
|
ExecuteTransactionResponse: () => ExecuteTransactionResponse,
|
|
101
111
|
ExecutedTransaction: () => ExecutedTransaction,
|
|
@@ -148,12 +158,18 @@ var types_exports = /* @__PURE__ */ __exportAll({
|
|
|
148
158
|
Linkage: () => Linkage,
|
|
149
159
|
ListBalancesRequest: () => ListBalancesRequest,
|
|
150
160
|
ListBalancesResponse: () => ListBalancesResponse,
|
|
161
|
+
ListCheckpointsRequest: () => ListCheckpointsRequest,
|
|
162
|
+
ListCheckpointsResponse: () => ListCheckpointsResponse,
|
|
151
163
|
ListDynamicFieldsRequest: () => ListDynamicFieldsRequest,
|
|
152
164
|
ListDynamicFieldsResponse: () => ListDynamicFieldsResponse,
|
|
165
|
+
ListEventsRequest: () => ListEventsRequest,
|
|
166
|
+
ListEventsResponse: () => ListEventsResponse,
|
|
153
167
|
ListOwnedObjectsRequest: () => ListOwnedObjectsRequest,
|
|
154
168
|
ListOwnedObjectsResponse: () => ListOwnedObjectsResponse,
|
|
155
169
|
ListPackageVersionsRequest: () => ListPackageVersionsRequest,
|
|
156
170
|
ListPackageVersionsResponse: () => ListPackageVersionsResponse,
|
|
171
|
+
ListTransactionsRequest: () => ListTransactionsRequest,
|
|
172
|
+
ListTransactionsResponse: () => ListTransactionsResponse,
|
|
157
173
|
LookupNameRequest: () => LookupNameRequest,
|
|
158
174
|
LookupNameResponse: () => LookupNameResponse,
|
|
159
175
|
MakeMoveVector: () => MakeMoveVector,
|
|
@@ -161,6 +177,7 @@ var types_exports = /* @__PURE__ */ __exportAll({
|
|
|
161
177
|
Module: () => Module,
|
|
162
178
|
MoveAbort: () => MoveAbort,
|
|
163
179
|
MoveCall: () => MoveCall,
|
|
180
|
+
MoveCallFilter: () => MoveCallFilter,
|
|
164
181
|
MoveLocation: () => MoveLocation,
|
|
165
182
|
MovePackageService: () => MovePackageService,
|
|
166
183
|
MoveTable: () => MoveTable,
|
|
@@ -178,21 +195,27 @@ var types_exports = /* @__PURE__ */ __exportAll({
|
|
|
178
195
|
OpenSignatureBody: () => OpenSignatureBody,
|
|
179
196
|
OpenSignatureBody_Type: () => OpenSignatureBody_Type,
|
|
180
197
|
OpenSignature_Reference: () => OpenSignature_Reference,
|
|
198
|
+
Ordering: () => Ordering,
|
|
181
199
|
Owner: () => Owner,
|
|
182
200
|
Owner_OwnerKind: () => Owner_OwnerKind,
|
|
183
201
|
Package: () => Package,
|
|
184
202
|
PackageUpgradeError: () => PackageUpgradeError,
|
|
185
203
|
PackageUpgradeError_PackageUpgradeErrorKind: () => PackageUpgradeError_PackageUpgradeErrorKind,
|
|
186
204
|
PackageVersion: () => PackageVersion,
|
|
205
|
+
PackageWriteFilter: () => PackageWriteFilter,
|
|
187
206
|
PasskeyAuthenticator: () => PasskeyAuthenticator,
|
|
188
207
|
ProgrammableTransaction: () => ProgrammableTransaction,
|
|
189
208
|
ProtocolConfig: () => ProtocolConfig,
|
|
190
209
|
Publish: () => Publish,
|
|
210
|
+
QueryEnd: () => QueryEnd,
|
|
211
|
+
QueryEndReason: () => QueryEndReason,
|
|
212
|
+
QueryOptions: () => QueryOptions,
|
|
191
213
|
RandomnessStateUpdate: () => RandomnessStateUpdate,
|
|
192
214
|
RegulatedCoinMetadata: () => RegulatedCoinMetadata,
|
|
193
215
|
RegulatedCoinMetadata_CoinRegulatedState: () => RegulatedCoinMetadata_CoinRegulatedState,
|
|
194
216
|
ReverseLookupNameRequest: () => ReverseLookupNameRequest,
|
|
195
217
|
ReverseLookupNameResponse: () => ReverseLookupNameResponse,
|
|
218
|
+
SenderFilter: () => SenderFilter,
|
|
196
219
|
SignatureScheme: () => SignatureScheme,
|
|
197
220
|
SignatureVerificationService: () => SignatureVerificationService,
|
|
198
221
|
SimpleSignature: () => SimpleSignature,
|
|
@@ -207,6 +230,10 @@ var types_exports = /* @__PURE__ */ __exportAll({
|
|
|
207
230
|
StorageFund: () => StorageFund,
|
|
208
231
|
SubscribeCheckpointsRequest: () => SubscribeCheckpointsRequest,
|
|
209
232
|
SubscribeCheckpointsResponse: () => SubscribeCheckpointsResponse,
|
|
233
|
+
SubscribeEventsRequest: () => SubscribeEventsRequest,
|
|
234
|
+
SubscribeEventsResponse: () => SubscribeEventsResponse,
|
|
235
|
+
SubscribeTransactionsRequest: () => SubscribeTransactionsRequest,
|
|
236
|
+
SubscribeTransactionsResponse: () => SubscribeTransactionsResponse,
|
|
210
237
|
SubscriptionService: () => SubscriptionService,
|
|
211
238
|
SystemPackage: () => SystemPackage,
|
|
212
239
|
SystemParameters: () => SystemParameters,
|
|
@@ -217,8 +244,11 @@ var types_exports = /* @__PURE__ */ __exportAll({
|
|
|
217
244
|
TransactionExecutionService: () => TransactionExecutionService,
|
|
218
245
|
TransactionExpiration: () => TransactionExpiration,
|
|
219
246
|
TransactionExpiration_TransactionExpirationKind: () => TransactionExpiration_TransactionExpirationKind,
|
|
247
|
+
TransactionFilter: () => TransactionFilter,
|
|
220
248
|
TransactionKind: () => TransactionKind,
|
|
221
249
|
TransactionKind_Kind: () => TransactionKind_Kind,
|
|
250
|
+
TransactionLiteral: () => TransactionLiteral,
|
|
251
|
+
TransactionTerm: () => TransactionTerm,
|
|
222
252
|
TransferObjects: () => TransferObjects,
|
|
223
253
|
TypeArgumentError: () => TypeArgumentError,
|
|
224
254
|
TypeArgumentError_TypeArgumentErrorKind: () => TypeArgumentError_TypeArgumentErrorKind,
|
|
@@ -239,6 +269,7 @@ var types_exports = /* @__PURE__ */ __exportAll({
|
|
|
239
269
|
VerifySignatureRequest: () => VerifySignatureRequest,
|
|
240
270
|
VerifySignatureResponse: () => VerifySignatureResponse,
|
|
241
271
|
VersionAssignment: () => VersionAssignment,
|
|
272
|
+
Watermark: () => Watermark,
|
|
242
273
|
ZkLoginAuthenticator: () => ZkLoginAuthenticator,
|
|
243
274
|
ZkLoginClaim: () => ZkLoginClaim,
|
|
244
275
|
ZkLoginInputs: () => ZkLoginInputs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","names":[],"sources":["../../../src/grpc/proto/types.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * ######################################\n * ### DO NOT EDIT THIS FILE DIRECTLY ###\n * ######################################\n *\n * This file is auto-generated by scripts/generate-grpc-types.ts\n * Run `pnpm codegen:grpc` to regenerate.\n */\n\n// Re-export all gRPC proto types for easy consumption\nexport * from './sui/rpc/v2/argument.js';\nexport * from './sui/rpc/v2/balance_change.js';\nexport * from './sui/rpc/v2/bcs.js';\nexport * from './sui/rpc/v2/checkpoint.js';\nexport * from './sui/rpc/v2/checkpoint_contents.js';\nexport * from './sui/rpc/v2/checkpoint_summary.js';\nexport * from './sui/rpc/v2/effects.js';\nexport * from './sui/rpc/v2/epoch.js';\nexport * from './sui/rpc/v2/error_reason.js';\nexport * from './sui/rpc/v2/event.js';\nexport * from './sui/rpc/v2/executed_transaction.js';\nexport * from './sui/rpc/v2/execution_status.js';\nexport * from './sui/rpc/v2/gas_cost_summary.js';\nexport * from './sui/rpc/v2/input.js';\nexport * from './sui/rpc/v2/jwk.js';\nexport * from './sui/rpc/v2/ledger_service.js';\nexport * from './sui/rpc/v2/move_package.js';\nexport * from './sui/rpc/v2/move_package_service.js';\nexport * from './sui/rpc/v2/name_service.js';\nexport * from './sui/rpc/v2/object.js';\nexport * from './sui/rpc/v2/object_reference.js';\nexport * from './sui/rpc/v2/owner.js';\nexport * from './sui/rpc/v2/protocol_config.js';\nexport * from './sui/rpc/v2/signature.js';\nexport * from './sui/rpc/v2/signature_scheme.js';\nexport * from './sui/rpc/v2/signature_verification_service.js';\nexport * from './sui/rpc/v2/state_service.js';\nexport * from './sui/rpc/v2/subscription_service.js';\nexport * from './sui/rpc/v2/system_state.js';\nexport * from './sui/rpc/v2/transaction.js';\nexport * from './sui/rpc/v2/transaction_execution_service.js';\nexport * from './sui/forking/v1alpha/forking_service.js';\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.mjs","names":[],"sources":["../../../src/grpc/proto/types.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * ######################################\n * ### DO NOT EDIT THIS FILE DIRECTLY ###\n * ######################################\n *\n * This file is auto-generated by scripts/generate-grpc-types.ts\n * Run `pnpm codegen:grpc` to regenerate.\n */\n\n// Re-export all gRPC proto types for easy consumption\nexport * from './sui/rpc/v2/argument.js';\nexport * from './sui/rpc/v2/balance_change.js';\nexport * from './sui/rpc/v2/bcs.js';\nexport * from './sui/rpc/v2/checkpoint.js';\nexport * from './sui/rpc/v2/checkpoint_contents.js';\nexport * from './sui/rpc/v2/checkpoint_summary.js';\nexport * from './sui/rpc/v2/effects.js';\nexport * from './sui/rpc/v2/epoch.js';\nexport * from './sui/rpc/v2/error_reason.js';\nexport * from './sui/rpc/v2/event.js';\nexport * from './sui/rpc/v2/executed_transaction.js';\nexport * from './sui/rpc/v2/execution_status.js';\nexport * from './sui/rpc/v2/filter.js';\nexport * from './sui/rpc/v2/gas_cost_summary.js';\nexport * from './sui/rpc/v2/input.js';\nexport * from './sui/rpc/v2/jwk.js';\nexport * from './sui/rpc/v2/ledger_service.js';\nexport * from './sui/rpc/v2/move_package.js';\nexport * from './sui/rpc/v2/move_package_service.js';\nexport * from './sui/rpc/v2/name_service.js';\nexport * from './sui/rpc/v2/object.js';\nexport * from './sui/rpc/v2/object_reference.js';\nexport * from './sui/rpc/v2/owner.js';\nexport * from './sui/rpc/v2/protocol_config.js';\nexport * from './sui/rpc/v2/query_options.js';\nexport * from './sui/rpc/v2/signature.js';\nexport * from './sui/rpc/v2/signature_scheme.js';\nexport * from './sui/rpc/v2/signature_verification_service.js';\nexport * from './sui/rpc/v2/state_service.js';\nexport * from './sui/rpc/v2/subscription_service.js';\nexport * from './sui/rpc/v2/system_state.js';\nexport * from './sui/rpc/v2/transaction.js';\nexport * from './sui/rpc/v2/transaction_execution_service.js';\nexport * from './sui/forking/v1alpha/forking_service.js';\n"],"mappings":""}
|
package/dist/jsonRpc/core.d.mts
CHANGED
|
@@ -118,6 +118,16 @@ declare class JSONRpcCoreClient extends CoreClient {
|
|
|
118
118
|
hasNextPage: boolean;
|
|
119
119
|
cursor: string | null;
|
|
120
120
|
}>;
|
|
121
|
+
/**
|
|
122
|
+
* @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient`
|
|
123
|
+
* from `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
|
|
124
|
+
*/
|
|
125
|
+
listTransactions<Include extends SuiClientTypes.TransactionInclude = {}>(options: SuiClientTypes.ListTransactionsOptions<Include>): Promise<SuiClientTypes.ListTransactionsResponse<Include>>;
|
|
126
|
+
/**
|
|
127
|
+
* @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient`
|
|
128
|
+
* from `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
|
|
129
|
+
*/
|
|
130
|
+
listEvents(options: SuiClientTypes.ListEventsOptions): Promise<SuiClientTypes.ListEventsResponse>;
|
|
121
131
|
/**
|
|
122
132
|
* @deprecated JSON-RPC APIs are deprecated in the Sui TypeScript SDK. Use `SuiGrpcClient`
|
|
123
133
|
* from `@mysten/sui/grpc` or `SuiGraphQLClient` from `@mysten/sui/graphql` instead.
|