@thru/thru-sdk 0.1.19 → 0.1.21
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/README.md +19 -0
- package/dist/{chunk-PH7P5EEU.js → chunk-SHMREHP5.js} +13 -9
- package/dist/chunk-SHMREHP5.js.map +1 -0
- package/dist/client.d.ts +2 -1
- package/dist/client.js +3 -2
- package/dist/client.js.map +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/sdk.d.ts +3 -3
- package/dist/sdk.js +1 -1
- package/dist/{transactions-BzD9hYlc.d.ts → transactions-CLezIeXO.d.ts} +20 -18
- package/package.json +7 -3
- package/buf.gen.yaml +0 -12
- package/buf.lock +0 -9
- package/buf.yaml +0 -15
- package/dist/chunk-PH7P5EEU.js.map +0 -1
- package/proto/thru/common/v1/consensus.proto +0 -73
- package/proto/thru/common/v1/errors.proto +0 -65
- package/proto/thru/common/v1/filters.proto +0 -60
- package/proto/thru/common/v1/pagination.proto +0 -45
- package/proto/thru/core/v1/account.proto +0 -137
- package/proto/thru/core/v1/block.proto +0 -80
- package/proto/thru/core/v1/state.proto +0 -35
- package/proto/thru/core/v1/transaction.proto +0 -136
- package/proto/thru/core/v1/types.proto +0 -50
- package/proto/thru/services/v1/command_service.proto +0 -70
- package/proto/thru/services/v1/query_service.proto +0 -344
- package/proto/thru/services/v1/streaming_service.proto +0 -126
- package/thru-ts-client-sdk/__tests__/helpers/test-utils.ts +0 -228
- package/thru-ts-client-sdk/client.ts +0 -10
- package/thru-ts-client-sdk/core/__tests__/bound-client.test.ts +0 -354
- package/thru-ts-client-sdk/core/__tests__/client.test.ts +0 -53
- package/thru-ts-client-sdk/core/bound-client.ts +0 -156
- package/thru-ts-client-sdk/core/client.ts +0 -38
- package/thru-ts-client-sdk/defaults.ts +0 -26
- package/thru-ts-client-sdk/modules/__tests__/accounts.test.ts +0 -406
- package/thru-ts-client-sdk/modules/__tests__/blocks.test.ts +0 -199
- package/thru-ts-client-sdk/modules/__tests__/events.test.ts +0 -74
- package/thru-ts-client-sdk/modules/__tests__/height.test.ts +0 -39
- package/thru-ts-client-sdk/modules/__tests__/helpers.test.ts +0 -288
- package/thru-ts-client-sdk/modules/__tests__/keys.test.ts +0 -55
- package/thru-ts-client-sdk/modules/__tests__/proofs.test.ts +0 -119
- package/thru-ts-client-sdk/modules/__tests__/streaming.test.ts +0 -152
- package/thru-ts-client-sdk/modules/__tests__/transactions.test.ts +0 -730
- package/thru-ts-client-sdk/modules/__tests__/version.test.ts +0 -40
- package/thru-ts-client-sdk/modules/accounts.ts +0 -141
- package/thru-ts-client-sdk/modules/blocks.ts +0 -75
- package/thru-ts-client-sdk/modules/events.ts +0 -20
- package/thru-ts-client-sdk/modules/height.ts +0 -9
- package/thru-ts-client-sdk/modules/helpers.ts +0 -131
- package/thru-ts-client-sdk/modules/keys.ts +0 -29
- package/thru-ts-client-sdk/modules/proofs.ts +0 -20
- package/thru-ts-client-sdk/modules/streaming.ts +0 -133
- package/thru-ts-client-sdk/modules/transactions.ts +0 -374
- package/thru-ts-client-sdk/modules/version.ts +0 -10
- package/thru-ts-client-sdk/proto/buf/validate/validate_pb.ts +0 -4761
- package/thru-ts-client-sdk/proto/google/api/annotations_pb.ts +0 -39
- package/thru-ts-client-sdk/proto/google/api/client_pb.ts +0 -953
- package/thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts +0 -157
- package/thru-ts-client-sdk/proto/google/api/http_pb.ts +0 -474
- package/thru-ts-client-sdk/proto/google/api/launch_stage_pb.ts +0 -118
- package/thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts +0 -162
- package/thru-ts-client-sdk/proto/thru/common/v1/errors_pb.ts +0 -129
- package/thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts +0 -129
- package/thru-ts-client-sdk/proto/thru/common/v1/pagination_pb.ts +0 -79
- package/thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts +0 -359
- package/thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts +0 -259
- package/thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts +0 -103
- package/thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts +0 -528
- package/thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts +0 -100
- package/thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts +0 -146
- package/thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts +0 -819
- package/thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts +0 -390
- package/thru-ts-client-sdk/sdk.ts +0 -42
- package/thru-ts-client-sdk/test-scripts/counter.ts +0 -469
- package/thru-ts-client-sdk/test-scripts/create-account.ts +0 -74
- package/thru-ts-client-sdk/test-scripts/get-height.ts +0 -52
- package/thru-ts-client-sdk/transactions/Transaction.ts +0 -240
- package/thru-ts-client-sdk/transactions/TransactionBuilder.ts +0 -53
- package/thru-ts-client-sdk/transactions/__tests__/TransactionBuilder.test.ts +0 -411
- package/thru-ts-client-sdk/transactions/__tests__/utils.test.ts +0 -214
- package/thru-ts-client-sdk/transactions/index.ts +0 -3
- package/thru-ts-client-sdk/transactions/types.ts +0 -74
- package/thru-ts-client-sdk/transactions/utils.ts +0 -132
- package/thru-ts-client-sdk/types/types.ts +0 -8
- package/thru-ts-client-sdk/utils/utils.ts +0 -27
- package/tsconfig.json +0 -9
- package/tsup.config.ts +0 -14
- package/vitest.config.ts +0 -31
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts"
|
|
2
|
-
// @generated from file thru/services/v1/streaming_service.proto (package thru.services.v1, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
-
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
-
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb";
|
|
8
|
-
import { file_google_api_field_behavior } from "../../../google/api/field_behavior_pb";
|
|
9
|
-
import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
10
|
-
import { file_google_protobuf_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
11
|
-
import type { ConsensusStatus } from "../../common/v1/consensus_pb";
|
|
12
|
-
import { file_thru_common_v1_consensus } from "../../common/v1/consensus_pb";
|
|
13
|
-
import type { Filter } from "../../common/v1/filters_pb";
|
|
14
|
-
import { file_thru_common_v1_filters } from "../../common/v1/filters_pb";
|
|
15
|
-
import type { Account, AccountMeta, AccountPage, AccountView } from "../../core/v1/account_pb";
|
|
16
|
-
import { file_thru_core_v1_account } from "../../core/v1/account_pb";
|
|
17
|
-
import type { Block, BlockView } from "../../core/v1/block_pb";
|
|
18
|
-
import { file_thru_core_v1_block } from "../../core/v1/block_pb";
|
|
19
|
-
import type { Transaction, TransactionExecutionResult } from "../../core/v1/transaction_pb";
|
|
20
|
-
import { file_thru_core_v1_transaction } from "../../core/v1/transaction_pb";
|
|
21
|
-
import type { Pubkey, Signature } from "../../core/v1/types_pb";
|
|
22
|
-
import { file_thru_core_v1_types } from "../../core/v1/types_pb";
|
|
23
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Describes the file thru/services/v1/streaming_service.proto.
|
|
27
|
-
*/
|
|
28
|
-
export const file_thru_services_v1_streaming_service: GenFile = /*@__PURE__*/
|
|
29
|
-
fileDesc("Cih0aHJ1L3NlcnZpY2VzL3YxL3N0cmVhbWluZ19zZXJ2aWNlLnByb3RvEhB0aHJ1LnNlcnZpY2VzLnYxIo0CChNTdHJlYW1CbG9ja3NSZXF1ZXN0EhwKCnN0YXJ0X3Nsb3QYASABKARCA+BBAUgAiAEBEjAKBmZpbHRlchgCIAEoCzIWLnRocnUuY29tbW9uLnYxLkZpbHRlckID4EEBSAGIAQESLwoEdmlldxgDIAEoDjIXLnRocnUuY29yZS52MS5CbG9ja1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FRocnVcU2VydmljZXNcVjHiAhxUaHJ1XFNlcnZpY2VzXFYxXEdQQk1ldGFkYXRh6gISVGhydTo6U2VydmljZXM6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_api_field_behavior, file_google_protobuf_duration, file_google_protobuf_timestamp, file_thru_common_v1_consensus, file_thru_common_v1_filters, file_thru_core_v1_account, file_thru_core_v1_block, file_thru_core_v1_transaction, file_thru_core_v1_types]);
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* StreamBlocksRequest subscribes to real-time block updates.
|
|
33
|
-
*
|
|
34
|
-
* @generated from message thru.services.v1.StreamBlocksRequest
|
|
35
|
-
*/
|
|
36
|
-
export type StreamBlocksRequest = Message<"thru.services.v1.StreamBlocksRequest"> & {
|
|
37
|
-
/**
|
|
38
|
-
* @generated from field: optional uint64 start_slot = 1;
|
|
39
|
-
*/
|
|
40
|
-
startSlot?: bigint;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @generated from field: optional thru.common.v1.Filter filter = 2;
|
|
44
|
-
*/
|
|
45
|
-
filter?: Filter;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @generated from field: optional thru.core.v1.BlockView view = 3;
|
|
49
|
-
*/
|
|
50
|
-
view?: BlockView;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus min_consensus = 4;
|
|
54
|
-
*/
|
|
55
|
-
minConsensus?: ConsensusStatus;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Describes the message thru.services.v1.StreamBlocksRequest.
|
|
60
|
-
* Use `create(StreamBlocksRequestSchema)` to create a new message.
|
|
61
|
-
*/
|
|
62
|
-
export const StreamBlocksRequestSchema: GenMessage<StreamBlocksRequest> = /*@__PURE__*/
|
|
63
|
-
messageDesc(file_thru_services_v1_streaming_service, 0);
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* StreamBlocksResponse delivers block updates.
|
|
67
|
-
*
|
|
68
|
-
* @generated from message thru.services.v1.StreamBlocksResponse
|
|
69
|
-
*/
|
|
70
|
-
export type StreamBlocksResponse = Message<"thru.services.v1.StreamBlocksResponse"> & {
|
|
71
|
-
/**
|
|
72
|
-
* @generated from field: thru.core.v1.Block block = 1;
|
|
73
|
-
*/
|
|
74
|
-
block?: Block;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Describes the message thru.services.v1.StreamBlocksResponse.
|
|
79
|
-
* Use `create(StreamBlocksResponseSchema)` to create a new message.
|
|
80
|
-
*/
|
|
81
|
-
export const StreamBlocksResponseSchema: GenMessage<StreamBlocksResponse> = /*@__PURE__*/
|
|
82
|
-
messageDesc(file_thru_services_v1_streaming_service, 1);
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* StreamAccountUpdatesRequest subscribes to account delta events.
|
|
86
|
-
*
|
|
87
|
-
* @generated from message thru.services.v1.StreamAccountUpdatesRequest
|
|
88
|
-
*/
|
|
89
|
-
export type StreamAccountUpdatesRequest = Message<"thru.services.v1.StreamAccountUpdatesRequest"> & {
|
|
90
|
-
/**
|
|
91
|
-
* @generated from field: thru.core.v1.Pubkey address = 1;
|
|
92
|
-
*/
|
|
93
|
-
address?: Pubkey;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @generated from field: optional thru.core.v1.AccountView view = 2;
|
|
97
|
-
*/
|
|
98
|
-
view?: AccountView;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @generated from field: optional thru.common.v1.Filter filter = 4;
|
|
102
|
-
*/
|
|
103
|
-
filter?: Filter;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Describes the message thru.services.v1.StreamAccountUpdatesRequest.
|
|
108
|
-
* Use `create(StreamAccountUpdatesRequestSchema)` to create a new message.
|
|
109
|
-
*/
|
|
110
|
-
export const StreamAccountUpdatesRequestSchema: GenMessage<StreamAccountUpdatesRequest> = /*@__PURE__*/
|
|
111
|
-
messageDesc(file_thru_services_v1_streaming_service, 2);
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* AccountUpdate describes a delta for an account.
|
|
115
|
-
*
|
|
116
|
-
* @generated from message thru.services.v1.AccountUpdate
|
|
117
|
-
*/
|
|
118
|
-
export type AccountUpdate = Message<"thru.services.v1.AccountUpdate"> & {
|
|
119
|
-
/**
|
|
120
|
-
* @generated from field: uint64 slot = 1;
|
|
121
|
-
*/
|
|
122
|
-
slot: bigint;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @generated from field: optional thru.core.v1.AccountPage page = 2;
|
|
126
|
-
*/
|
|
127
|
-
page?: AccountPage;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @generated from field: optional thru.core.v1.AccountMeta meta = 3;
|
|
131
|
-
*/
|
|
132
|
-
meta?: AccountMeta;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @generated from field: optional bool delete = 4;
|
|
136
|
-
*/
|
|
137
|
-
delete?: boolean;
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Describes the message thru.services.v1.AccountUpdate.
|
|
142
|
-
* Use `create(AccountUpdateSchema)` to create a new message.
|
|
143
|
-
*/
|
|
144
|
-
export const AccountUpdateSchema: GenMessage<AccountUpdate> = /*@__PURE__*/
|
|
145
|
-
messageDesc(file_thru_services_v1_streaming_service, 3);
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* StreamAccountUpdatesResponse contains either an initial snapshot or a delta.
|
|
149
|
-
*
|
|
150
|
-
* @generated from message thru.services.v1.StreamAccountUpdatesResponse
|
|
151
|
-
*/
|
|
152
|
-
export type StreamAccountUpdatesResponse = Message<"thru.services.v1.StreamAccountUpdatesResponse"> & {
|
|
153
|
-
/**
|
|
154
|
-
* @generated from oneof thru.services.v1.StreamAccountUpdatesResponse.message
|
|
155
|
-
*/
|
|
156
|
-
message: {
|
|
157
|
-
/**
|
|
158
|
-
* @generated from field: thru.core.v1.Account snapshot = 1;
|
|
159
|
-
*/
|
|
160
|
-
value: Account;
|
|
161
|
-
case: "snapshot";
|
|
162
|
-
} | {
|
|
163
|
-
/**
|
|
164
|
-
* @generated from field: thru.services.v1.AccountUpdate update = 2;
|
|
165
|
-
*/
|
|
166
|
-
value: AccountUpdate;
|
|
167
|
-
case: "update";
|
|
168
|
-
} | { case: undefined; value?: undefined };
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Describes the message thru.services.v1.StreamAccountUpdatesResponse.
|
|
173
|
-
* Use `create(StreamAccountUpdatesResponseSchema)` to create a new message.
|
|
174
|
-
*/
|
|
175
|
-
export const StreamAccountUpdatesResponseSchema: GenMessage<StreamAccountUpdatesResponse> = /*@__PURE__*/
|
|
176
|
-
messageDesc(file_thru_services_v1_streaming_service, 4);
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* StreamTransactionsRequest subscribes to transaction confirmations.
|
|
180
|
-
*
|
|
181
|
-
* @generated from message thru.services.v1.StreamTransactionsRequest
|
|
182
|
-
*/
|
|
183
|
-
export type StreamTransactionsRequest = Message<"thru.services.v1.StreamTransactionsRequest"> & {
|
|
184
|
-
/**
|
|
185
|
-
* @generated from field: optional thru.common.v1.Filter filter = 1;
|
|
186
|
-
*/
|
|
187
|
-
filter?: Filter;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus min_consensus = 2;
|
|
191
|
-
*/
|
|
192
|
-
minConsensus?: ConsensusStatus;
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Describes the message thru.services.v1.StreamTransactionsRequest.
|
|
197
|
-
* Use `create(StreamTransactionsRequestSchema)` to create a new message.
|
|
198
|
-
*/
|
|
199
|
-
export const StreamTransactionsRequestSchema: GenMessage<StreamTransactionsRequest> = /*@__PURE__*/
|
|
200
|
-
messageDesc(file_thru_services_v1_streaming_service, 5);
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* StreamTransactionsResponse delivers transaction events.
|
|
204
|
-
*
|
|
205
|
-
* @generated from message thru.services.v1.StreamTransactionsResponse
|
|
206
|
-
*/
|
|
207
|
-
export type StreamTransactionsResponse = Message<"thru.services.v1.StreamTransactionsResponse"> & {
|
|
208
|
-
/**
|
|
209
|
-
* @generated from field: thru.core.v1.Transaction transaction = 1;
|
|
210
|
-
*/
|
|
211
|
-
transaction?: Transaction;
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Describes the message thru.services.v1.StreamTransactionsResponse.
|
|
216
|
-
* Use `create(StreamTransactionsResponseSchema)` to create a new message.
|
|
217
|
-
*/
|
|
218
|
-
export const StreamTransactionsResponseSchema: GenMessage<StreamTransactionsResponse> = /*@__PURE__*/
|
|
219
|
-
messageDesc(file_thru_services_v1_streaming_service, 6);
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* StreamEventsRequest subscribes to chain events.
|
|
223
|
-
*
|
|
224
|
-
* @generated from message thru.services.v1.StreamEventsRequest
|
|
225
|
-
*/
|
|
226
|
-
export type StreamEventsRequest = Message<"thru.services.v1.StreamEventsRequest"> & {
|
|
227
|
-
/**
|
|
228
|
-
* @generated from field: optional thru.common.v1.Filter filter = 1;
|
|
229
|
-
*/
|
|
230
|
-
filter?: Filter;
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Describes the message thru.services.v1.StreamEventsRequest.
|
|
235
|
-
* Use `create(StreamEventsRequestSchema)` to create a new message.
|
|
236
|
-
*/
|
|
237
|
-
export const StreamEventsRequestSchema: GenMessage<StreamEventsRequest> = /*@__PURE__*/
|
|
238
|
-
messageDesc(file_thru_services_v1_streaming_service, 7);
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* StreamEventsResponse delivers event payloads.
|
|
242
|
-
*
|
|
243
|
-
* @generated from message thru.services.v1.StreamEventsResponse
|
|
244
|
-
*/
|
|
245
|
-
export type StreamEventsResponse = Message<"thru.services.v1.StreamEventsResponse"> & {
|
|
246
|
-
/**
|
|
247
|
-
* @generated from field: string event_id = 1;
|
|
248
|
-
*/
|
|
249
|
-
eventId: string;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* @generated from field: optional bytes payload = 2;
|
|
253
|
-
*/
|
|
254
|
-
payload?: Uint8Array;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* @generated from field: optional google.protobuf.Timestamp timestamp = 3;
|
|
258
|
-
*/
|
|
259
|
-
timestamp?: Timestamp;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* @generated from field: thru.core.v1.Pubkey program = 4;
|
|
263
|
-
*/
|
|
264
|
-
program?: Pubkey;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* @generated from field: uint32 call_idx = 5;
|
|
268
|
-
*/
|
|
269
|
-
callIdx: number;
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* @generated from field: thru.core.v1.Signature signature = 6;
|
|
273
|
-
*/
|
|
274
|
-
signature?: Signature;
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* @generated from field: uint64 slot = 7;
|
|
278
|
-
*/
|
|
279
|
-
slot: bigint;
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Describes the message thru.services.v1.StreamEventsResponse.
|
|
284
|
-
* Use `create(StreamEventsResponseSchema)` to create a new message.
|
|
285
|
-
*/
|
|
286
|
-
export const StreamEventsResponseSchema: GenMessage<StreamEventsResponse> = /*@__PURE__*/
|
|
287
|
-
messageDesc(file_thru_services_v1_streaming_service, 8);
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* TrackTransactionRequest subscribes to status updates for a transaction.
|
|
291
|
-
*
|
|
292
|
-
* @generated from message thru.services.v1.TrackTransactionRequest
|
|
293
|
-
*/
|
|
294
|
-
export type TrackTransactionRequest = Message<"thru.services.v1.TrackTransactionRequest"> & {
|
|
295
|
-
/**
|
|
296
|
-
* @generated from field: thru.core.v1.Signature signature = 1;
|
|
297
|
-
*/
|
|
298
|
-
signature?: Signature;
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* @generated from field: optional google.protobuf.Duration timeout = 2;
|
|
302
|
-
*/
|
|
303
|
-
timeout?: Duration;
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* Describes the message thru.services.v1.TrackTransactionRequest.
|
|
308
|
-
* Use `create(TrackTransactionRequestSchema)` to create a new message.
|
|
309
|
-
*/
|
|
310
|
-
export const TrackTransactionRequestSchema: GenMessage<TrackTransactionRequest> = /*@__PURE__*/
|
|
311
|
-
messageDesc(file_thru_services_v1_streaming_service, 9);
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* TrackTransactionResponse reports status transitions for a transaction.
|
|
315
|
-
*
|
|
316
|
-
* @generated from message thru.services.v1.TrackTransactionResponse
|
|
317
|
-
*/
|
|
318
|
-
export type TrackTransactionResponse = Message<"thru.services.v1.TrackTransactionResponse"> & {
|
|
319
|
-
/**
|
|
320
|
-
* @generated from field: thru.core.v1.Signature signature = 1;
|
|
321
|
-
*/
|
|
322
|
-
signature?: Signature;
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* @generated from field: thru.common.v1.ConsensusStatus consensus_status = 2;
|
|
326
|
-
*/
|
|
327
|
-
consensusStatus: ConsensusStatus;
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* @generated from field: thru.core.v1.TransactionExecutionResult execution_result = 3;
|
|
331
|
-
*/
|
|
332
|
-
executionResult?: TransactionExecutionResult;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Describes the message thru.services.v1.TrackTransactionResponse.
|
|
337
|
-
* Use `create(TrackTransactionResponseSchema)` to create a new message.
|
|
338
|
-
*/
|
|
339
|
-
export const TrackTransactionResponseSchema: GenMessage<TrackTransactionResponse> = /*@__PURE__*/
|
|
340
|
-
messageDesc(file_thru_services_v1_streaming_service, 10);
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* StreamingService serves server-streaming gRPC APIs for real-time data.
|
|
344
|
-
*
|
|
345
|
-
* @generated from service thru.services.v1.StreamingService
|
|
346
|
-
*/
|
|
347
|
-
export const StreamingService: GenService<{
|
|
348
|
-
/**
|
|
349
|
-
* @generated from rpc thru.services.v1.StreamingService.StreamBlocks
|
|
350
|
-
*/
|
|
351
|
-
streamBlocks: {
|
|
352
|
-
methodKind: "server_streaming";
|
|
353
|
-
input: typeof StreamBlocksRequestSchema;
|
|
354
|
-
output: typeof StreamBlocksResponseSchema;
|
|
355
|
-
},
|
|
356
|
-
/**
|
|
357
|
-
* @generated from rpc thru.services.v1.StreamingService.StreamAccountUpdates
|
|
358
|
-
*/
|
|
359
|
-
streamAccountUpdates: {
|
|
360
|
-
methodKind: "server_streaming";
|
|
361
|
-
input: typeof StreamAccountUpdatesRequestSchema;
|
|
362
|
-
output: typeof StreamAccountUpdatesResponseSchema;
|
|
363
|
-
},
|
|
364
|
-
/**
|
|
365
|
-
* @generated from rpc thru.services.v1.StreamingService.StreamTransactions
|
|
366
|
-
*/
|
|
367
|
-
streamTransactions: {
|
|
368
|
-
methodKind: "server_streaming";
|
|
369
|
-
input: typeof StreamTransactionsRequestSchema;
|
|
370
|
-
output: typeof StreamTransactionsResponseSchema;
|
|
371
|
-
},
|
|
372
|
-
/**
|
|
373
|
-
* @generated from rpc thru.services.v1.StreamingService.StreamEvents
|
|
374
|
-
*/
|
|
375
|
-
streamEvents: {
|
|
376
|
-
methodKind: "server_streaming";
|
|
377
|
-
input: typeof StreamEventsRequestSchema;
|
|
378
|
-
output: typeof StreamEventsResponseSchema;
|
|
379
|
-
},
|
|
380
|
-
/**
|
|
381
|
-
* @generated from rpc thru.services.v1.StreamingService.TrackTransaction
|
|
382
|
-
*/
|
|
383
|
-
trackTransaction: {
|
|
384
|
-
methodKind: "server_streaming";
|
|
385
|
-
input: typeof TrackTransactionRequestSchema;
|
|
386
|
-
output: typeof TrackTransactionResponseSchema;
|
|
387
|
-
},
|
|
388
|
-
}> = /*@__PURE__*/
|
|
389
|
-
serviceDesc(file_thru_services_v1_streaming_service, 0);
|
|
390
|
-
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { SignedTransactionResult } from "./transactions";
|
|
2
|
-
import { TransactionBuilder } from "./transactions";
|
|
3
|
-
|
|
4
|
-
export * as accounts from "./modules/accounts";
|
|
5
|
-
export * as blocks from "./modules/blocks";
|
|
6
|
-
export * as events from "./modules/events";
|
|
7
|
-
export * as height from "./modules/height";
|
|
8
|
-
export * as keys from "./modules/keys";
|
|
9
|
-
export * as proofs from "./modules/proofs";
|
|
10
|
-
export * as streaming from "./modules/streaming";
|
|
11
|
-
export * as transactions from "./modules/transactions";
|
|
12
|
-
|
|
13
|
-
export { ConsensusStatus } from "./proto/thru/common/v1/consensus_pb";
|
|
14
|
-
export { FilterParamValueSchema, FilterSchema } from "./proto/thru/common/v1/filters_pb";
|
|
15
|
-
export type { Filter, FilterParamValue } from "./proto/thru/common/v1/filters_pb";
|
|
16
|
-
|
|
17
|
-
export type {
|
|
18
|
-
AccountQueryOptions, CreateAccountOptions,
|
|
19
|
-
ListAccountsOptions, RawAccountQueryOptions
|
|
20
|
-
} from "./modules/accounts";
|
|
21
|
-
export type { BlockQueryOptions, ListBlocksOptions, RawBlockQueryOptions } from "./modules/blocks";
|
|
22
|
-
export type { GetEventOptions } from "./modules/events";
|
|
23
|
-
export {
|
|
24
|
-
deriveProgramAddress,
|
|
25
|
-
toPubkey
|
|
26
|
-
} from "./modules/helpers";
|
|
27
|
-
export type {
|
|
28
|
-
BlockSelector,
|
|
29
|
-
DeriveProgramAddressOptions,
|
|
30
|
-
DeriveProgramAddressResult
|
|
31
|
-
} from "./modules/helpers";
|
|
32
|
-
export type { GeneratedKeyPair } from "./modules/keys";
|
|
33
|
-
export type { TrackTransactionOptions } from "./modules/streaming";
|
|
34
|
-
export type {
|
|
35
|
-
BuildAndSignTransactionOptions, BuildTransactionOptions, RawTransactionQueryOptions, TransactionAccountsConfig,
|
|
36
|
-
TransactionFeePayerConfig, TransactionHeaderConfig, TransactionQueryOptions
|
|
37
|
-
} from "./modules/transactions";
|
|
38
|
-
export { Transaction as SdkTransaction } from "./transactions";
|
|
39
|
-
export type { GenerateStateProofOptions } from "./types/types";
|
|
40
|
-
export { TransactionBuilder };
|
|
41
|
-
export type { SignedTransactionResult };
|
|
42
|
-
|