@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,819 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts"
|
|
2
|
-
// @generated from file thru/services/v1/query_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_annotations } from "../../../google/api/annotations_pb";
|
|
9
|
-
import { file_google_api_client } from "../../../google/api/client_pb";
|
|
10
|
-
import { file_google_api_field_behavior } from "../../../google/api/field_behavior_pb";
|
|
11
|
-
import type { ConsensusStatus, VersionContext } 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 { PageRequest, PageResponse } from "../../common/v1/pagination_pb";
|
|
16
|
-
import { file_thru_common_v1_pagination } from "../../common/v1/pagination_pb";
|
|
17
|
-
import type { Account, AccountSchema, AccountView, DataSlice, RawAccountSchema } from "../../core/v1/account_pb";
|
|
18
|
-
import { file_thru_core_v1_account } from "../../core/v1/account_pb";
|
|
19
|
-
import type { Block, BlockSchema, BlockView, RawBlockSchema } from "../../core/v1/block_pb";
|
|
20
|
-
import { file_thru_core_v1_block } from "../../core/v1/block_pb";
|
|
21
|
-
import type { StateProof, StateProofRequest } from "../../core/v1/state_pb";
|
|
22
|
-
import { file_thru_core_v1_state } from "../../core/v1/state_pb";
|
|
23
|
-
import type { RawTransactionSchema, TransactionExecutionResult, TransactionSchema, TransactionView } from "../../core/v1/transaction_pb";
|
|
24
|
-
import { file_thru_core_v1_transaction } from "../../core/v1/transaction_pb";
|
|
25
|
-
import type { BlockHash, Pubkey, Signature } from "../../core/v1/types_pb";
|
|
26
|
-
import { file_thru_core_v1_types } from "../../core/v1/types_pb";
|
|
27
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Describes the file thru/services/v1/query_service.proto.
|
|
31
|
-
*/
|
|
32
|
-
export const file_thru_services_v1_query_service: GenFile = /*@__PURE__*/
|
|
33
|
-
fileDesc("CiR0aHJ1L3NlcnZpY2VzL3YxL3F1ZXJ5X3NlcnZpY2UucHJvdG8SEHRocnUuc2Vydm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gIcVGhydVxTZXJ2aWNlc1xWMVxHUEJNZXRhZGF0YeoCElRocnU6OlNlcnZpY2VzOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_thru_common_v1_consensus, file_thru_common_v1_filters, file_thru_common_v1_pagination, file_thru_core_v1_account, file_thru_core_v1_block, file_thru_core_v1_state, file_thru_core_v1_transaction, file_thru_core_v1_types]);
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* GetAccountRequest retrieves a decoded account by public key.
|
|
37
|
-
*
|
|
38
|
-
* @generated from message thru.services.v1.GetAccountRequest
|
|
39
|
-
*/
|
|
40
|
-
export type GetAccountRequest = Message<"thru.services.v1.GetAccountRequest"> & {
|
|
41
|
-
/**
|
|
42
|
-
* @generated from field: thru.core.v1.Pubkey address = 1;
|
|
43
|
-
*/
|
|
44
|
-
address?: Pubkey;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @generated from field: optional thru.core.v1.AccountView view = 2;
|
|
48
|
-
*/
|
|
49
|
-
view?: AccountView;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @generated from field: thru.common.v1.VersionContext version_context = 3;
|
|
53
|
-
*/
|
|
54
|
-
versionContext?: VersionContext;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus min_consensus = 4;
|
|
58
|
-
*/
|
|
59
|
-
minConsensus?: ConsensusStatus;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @generated from field: optional thru.core.v1.DataSlice data_slice = 5;
|
|
63
|
-
*/
|
|
64
|
-
dataSlice?: DataSlice;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Describes the message thru.services.v1.GetAccountRequest.
|
|
69
|
-
* Use `create(GetAccountRequestSchema)` to create a new message.
|
|
70
|
-
*/
|
|
71
|
-
export const GetAccountRequestSchema: GenMessage<GetAccountRequest> = /*@__PURE__*/
|
|
72
|
-
messageDesc(file_thru_services_v1_query_service, 0);
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* GetRawAccountRequest retrieves raw account bytes by public key.
|
|
76
|
-
*
|
|
77
|
-
* @generated from message thru.services.v1.GetRawAccountRequest
|
|
78
|
-
*/
|
|
79
|
-
export type GetRawAccountRequest = Message<"thru.services.v1.GetRawAccountRequest"> & {
|
|
80
|
-
/**
|
|
81
|
-
* @generated from field: thru.core.v1.Pubkey address = 1;
|
|
82
|
-
*/
|
|
83
|
-
address?: Pubkey;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @generated from field: optional thru.core.v1.AccountView view = 2;
|
|
87
|
-
*/
|
|
88
|
-
view?: AccountView;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @generated from field: thru.common.v1.VersionContext version_context = 3;
|
|
92
|
-
*/
|
|
93
|
-
versionContext?: VersionContext;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus min_consensus = 4;
|
|
97
|
-
*/
|
|
98
|
-
minConsensus?: ConsensusStatus;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Describes the message thru.services.v1.GetRawAccountRequest.
|
|
103
|
-
* Use `create(GetRawAccountRequestSchema)` to create a new message.
|
|
104
|
-
*/
|
|
105
|
-
export const GetRawAccountRequestSchema: GenMessage<GetRawAccountRequest> = /*@__PURE__*/
|
|
106
|
-
messageDesc(file_thru_services_v1_query_service, 1);
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* GetTransactionRequest retrieves a decoded transaction by signature.
|
|
110
|
-
*
|
|
111
|
-
* @generated from message thru.services.v1.GetTransactionRequest
|
|
112
|
-
*/
|
|
113
|
-
export type GetTransactionRequest = Message<"thru.services.v1.GetTransactionRequest"> & {
|
|
114
|
-
/**
|
|
115
|
-
* @generated from field: thru.core.v1.Signature signature = 1;
|
|
116
|
-
*/
|
|
117
|
-
signature?: Signature;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @generated from field: optional thru.core.v1.TransactionView view = 2;
|
|
121
|
-
*/
|
|
122
|
-
view?: TransactionView;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @generated from field: thru.common.v1.VersionContext version_context = 3;
|
|
126
|
-
*/
|
|
127
|
-
versionContext?: VersionContext;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus min_consensus = 4;
|
|
131
|
-
*/
|
|
132
|
-
minConsensus?: ConsensusStatus;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Describes the message thru.services.v1.GetTransactionRequest.
|
|
137
|
-
* Use `create(GetTransactionRequestSchema)` to create a new message.
|
|
138
|
-
*/
|
|
139
|
-
export const GetTransactionRequestSchema: GenMessage<GetTransactionRequest> = /*@__PURE__*/
|
|
140
|
-
messageDesc(file_thru_services_v1_query_service, 2);
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* GetRawTransactionRequest retrieves raw transaction bytes by signature.
|
|
144
|
-
*
|
|
145
|
-
* @generated from message thru.services.v1.GetRawTransactionRequest
|
|
146
|
-
*/
|
|
147
|
-
export type GetRawTransactionRequest = Message<"thru.services.v1.GetRawTransactionRequest"> & {
|
|
148
|
-
/**
|
|
149
|
-
* @generated from field: thru.core.v1.Signature signature = 1;
|
|
150
|
-
*/
|
|
151
|
-
signature?: Signature;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* @generated from field: thru.common.v1.VersionContext version_context = 2;
|
|
155
|
-
*/
|
|
156
|
-
versionContext?: VersionContext;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus min_consensus = 3;
|
|
160
|
-
*/
|
|
161
|
-
minConsensus?: ConsensusStatus;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Describes the message thru.services.v1.GetRawTransactionRequest.
|
|
166
|
-
* Use `create(GetRawTransactionRequestSchema)` to create a new message.
|
|
167
|
-
*/
|
|
168
|
-
export const GetRawTransactionRequestSchema: GenMessage<GetRawTransactionRequest> = /*@__PURE__*/
|
|
169
|
-
messageDesc(file_thru_services_v1_query_service, 3);
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* GenerateStateProofRequest requests an account state proof.
|
|
173
|
-
*
|
|
174
|
-
* @generated from message thru.services.v1.GenerateStateProofRequest
|
|
175
|
-
*/
|
|
176
|
-
export type GenerateStateProofRequest = Message<"thru.services.v1.GenerateStateProofRequest"> & {
|
|
177
|
-
/**
|
|
178
|
-
* @generated from field: thru.core.v1.StateProofRequest request = 1;
|
|
179
|
-
*/
|
|
180
|
-
request?: StateProofRequest;
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Describes the message thru.services.v1.GenerateStateProofRequest.
|
|
185
|
-
* Use `create(GenerateStateProofRequestSchema)` to create a new message.
|
|
186
|
-
*/
|
|
187
|
-
export const GenerateStateProofRequestSchema: GenMessage<GenerateStateProofRequest> = /*@__PURE__*/
|
|
188
|
-
messageDesc(file_thru_services_v1_query_service, 4);
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* GenerateStateProofResponse contains the generated proof.
|
|
192
|
-
*
|
|
193
|
-
* @generated from message thru.services.v1.GenerateStateProofResponse
|
|
194
|
-
*/
|
|
195
|
-
export type GenerateStateProofResponse = Message<"thru.services.v1.GenerateStateProofResponse"> & {
|
|
196
|
-
/**
|
|
197
|
-
* @generated from field: thru.core.v1.StateProof proof = 1;
|
|
198
|
-
*/
|
|
199
|
-
proof?: StateProof;
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* Describes the message thru.services.v1.GenerateStateProofResponse.
|
|
204
|
-
* Use `create(GenerateStateProofResponseSchema)` to create a new message.
|
|
205
|
-
*/
|
|
206
|
-
export const GenerateStateProofResponseSchema: GenMessage<GenerateStateProofResponse> = /*@__PURE__*/
|
|
207
|
-
messageDesc(file_thru_services_v1_query_service, 5);
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* GetBlockRequest retrieves decoded block information by slot or hash.
|
|
211
|
-
*
|
|
212
|
-
* @generated from message thru.services.v1.GetBlockRequest
|
|
213
|
-
*/
|
|
214
|
-
export type GetBlockRequest = Message<"thru.services.v1.GetBlockRequest"> & {
|
|
215
|
-
/**
|
|
216
|
-
* @generated from oneof thru.services.v1.GetBlockRequest.selector
|
|
217
|
-
*/
|
|
218
|
-
selector: {
|
|
219
|
-
/**
|
|
220
|
-
* @generated from field: uint64 slot = 1;
|
|
221
|
-
*/
|
|
222
|
-
value: bigint;
|
|
223
|
-
case: "slot";
|
|
224
|
-
} | {
|
|
225
|
-
/**
|
|
226
|
-
* @generated from field: thru.core.v1.BlockHash block_hash = 2;
|
|
227
|
-
*/
|
|
228
|
-
value: BlockHash;
|
|
229
|
-
case: "blockHash";
|
|
230
|
-
} | { case: undefined; value?: undefined };
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* @generated from field: optional thru.core.v1.BlockView view = 3;
|
|
234
|
-
*/
|
|
235
|
-
view?: BlockView;
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus min_consensus = 4;
|
|
239
|
-
*/
|
|
240
|
-
minConsensus?: ConsensusStatus;
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Describes the message thru.services.v1.GetBlockRequest.
|
|
245
|
-
* Use `create(GetBlockRequestSchema)` to create a new message.
|
|
246
|
-
*/
|
|
247
|
-
export const GetBlockRequestSchema: GenMessage<GetBlockRequest> = /*@__PURE__*/
|
|
248
|
-
messageDesc(file_thru_services_v1_query_service, 6);
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* GetRawBlockRequest retrieves raw block bytes by slot or hash.
|
|
252
|
-
*
|
|
253
|
-
* @generated from message thru.services.v1.GetRawBlockRequest
|
|
254
|
-
*/
|
|
255
|
-
export type GetRawBlockRequest = Message<"thru.services.v1.GetRawBlockRequest"> & {
|
|
256
|
-
/**
|
|
257
|
-
* @generated from oneof thru.services.v1.GetRawBlockRequest.selector
|
|
258
|
-
*/
|
|
259
|
-
selector: {
|
|
260
|
-
/**
|
|
261
|
-
* @generated from field: uint64 slot = 1;
|
|
262
|
-
*/
|
|
263
|
-
value: bigint;
|
|
264
|
-
case: "slot";
|
|
265
|
-
} | {
|
|
266
|
-
/**
|
|
267
|
-
* @generated from field: thru.core.v1.BlockHash block_hash = 2;
|
|
268
|
-
*/
|
|
269
|
-
value: BlockHash;
|
|
270
|
-
case: "blockHash";
|
|
271
|
-
} | { case: undefined; value?: undefined };
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus min_consensus = 3;
|
|
275
|
-
*/
|
|
276
|
-
minConsensus?: ConsensusStatus;
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Describes the message thru.services.v1.GetRawBlockRequest.
|
|
281
|
-
* Use `create(GetRawBlockRequestSchema)` to create a new message.
|
|
282
|
-
*/
|
|
283
|
-
export const GetRawBlockRequestSchema: GenMessage<GetRawBlockRequest> = /*@__PURE__*/
|
|
284
|
-
messageDesc(file_thru_services_v1_query_service, 7);
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* ListAccountsRequest lists accounts using CEL filters.
|
|
288
|
-
*
|
|
289
|
-
* @generated from message thru.services.v1.ListAccountsRequest
|
|
290
|
-
*/
|
|
291
|
-
export type ListAccountsRequest = Message<"thru.services.v1.ListAccountsRequest"> & {
|
|
292
|
-
/**
|
|
293
|
-
* @generated from field: optional thru.core.v1.AccountView view = 1;
|
|
294
|
-
*/
|
|
295
|
-
view?: AccountView;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* @generated from field: optional thru.common.v1.VersionContext version_context = 2;
|
|
299
|
-
*/
|
|
300
|
-
versionContext?: VersionContext;
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Optional CEL filter applied server-side. To emulate the legacy
|
|
304
|
-
* ListOwnedAccounts RPC, set:
|
|
305
|
-
* filter.expression = "meta.owner.value == params.owner_bytes"
|
|
306
|
-
* filter.params["owner_bytes"].bytes_value = <32-byte owner pubkey>
|
|
307
|
-
*
|
|
308
|
-
* @generated from field: optional thru.common.v1.Filter filter = 3;
|
|
309
|
-
*/
|
|
310
|
-
filter?: Filter;
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* @generated from field: optional thru.common.v1.PageRequest page = 4;
|
|
314
|
-
*/
|
|
315
|
-
page?: PageRequest;
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus min_consensus = 5;
|
|
319
|
-
*/
|
|
320
|
-
minConsensus?: ConsensusStatus;
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Describes the message thru.services.v1.ListAccountsRequest.
|
|
325
|
-
* Use `create(ListAccountsRequestSchema)` to create a new message.
|
|
326
|
-
*/
|
|
327
|
-
export const ListAccountsRequestSchema: GenMessage<ListAccountsRequest> = /*@__PURE__*/
|
|
328
|
-
messageDesc(file_thru_services_v1_query_service, 8);
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* ListAccountsResponse contains paginated accounts.
|
|
332
|
-
*
|
|
333
|
-
* @generated from message thru.services.v1.ListAccountsResponse
|
|
334
|
-
*/
|
|
335
|
-
export type ListAccountsResponse = Message<"thru.services.v1.ListAccountsResponse"> & {
|
|
336
|
-
/**
|
|
337
|
-
* @generated from field: repeated thru.core.v1.Account accounts = 1;
|
|
338
|
-
*/
|
|
339
|
-
accounts: Account[];
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* @generated from field: optional thru.common.v1.PageResponse page = 2;
|
|
343
|
-
*/
|
|
344
|
-
page?: PageResponse;
|
|
345
|
-
};
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* Describes the message thru.services.v1.ListAccountsResponse.
|
|
349
|
-
* Use `create(ListAccountsResponseSchema)` to create a new message.
|
|
350
|
-
*/
|
|
351
|
-
export const ListAccountsResponseSchema: GenMessage<ListAccountsResponse> = /*@__PURE__*/
|
|
352
|
-
messageDesc(file_thru_services_v1_query_service, 9);
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* ListBlocksRequest lists blocks with pagination and filtering.
|
|
356
|
-
*
|
|
357
|
-
* @generated from message thru.services.v1.ListBlocksRequest
|
|
358
|
-
*/
|
|
359
|
-
export type ListBlocksRequest = Message<"thru.services.v1.ListBlocksRequest"> & {
|
|
360
|
-
/**
|
|
361
|
-
* @generated from field: optional thru.common.v1.Filter filter = 1;
|
|
362
|
-
*/
|
|
363
|
-
filter?: Filter;
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* @generated from field: optional thru.common.v1.PageRequest page = 2;
|
|
367
|
-
*/
|
|
368
|
-
page?: PageRequest;
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* @generated from field: optional thru.core.v1.BlockView view = 3;
|
|
372
|
-
*/
|
|
373
|
-
view?: BlockView;
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus min_consensus = 4;
|
|
377
|
-
*/
|
|
378
|
-
minConsensus?: ConsensusStatus;
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* Describes the message thru.services.v1.ListBlocksRequest.
|
|
383
|
-
* Use `create(ListBlocksRequestSchema)` to create a new message.
|
|
384
|
-
*/
|
|
385
|
-
export const ListBlocksRequestSchema: GenMessage<ListBlocksRequest> = /*@__PURE__*/
|
|
386
|
-
messageDesc(file_thru_services_v1_query_service, 10);
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* ListBlocksResponse returns a page of blocks.
|
|
390
|
-
*
|
|
391
|
-
* @generated from message thru.services.v1.ListBlocksResponse
|
|
392
|
-
*/
|
|
393
|
-
export type ListBlocksResponse = Message<"thru.services.v1.ListBlocksResponse"> & {
|
|
394
|
-
/**
|
|
395
|
-
* @generated from field: repeated thru.core.v1.Block blocks = 1;
|
|
396
|
-
*/
|
|
397
|
-
blocks: Block[];
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* @generated from field: optional thru.common.v1.PageResponse page = 2;
|
|
401
|
-
*/
|
|
402
|
-
page?: PageResponse;
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* Describes the message thru.services.v1.ListBlocksResponse.
|
|
407
|
-
* Use `create(ListBlocksResponseSchema)` to create a new message.
|
|
408
|
-
*/
|
|
409
|
-
export const ListBlocksResponseSchema: GenMessage<ListBlocksResponse> = /*@__PURE__*/
|
|
410
|
-
messageDesc(file_thru_services_v1_query_service, 11);
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* ListTransactionsForAccountRequest lists transaction signatures involving an account.
|
|
414
|
-
*
|
|
415
|
-
* @generated from message thru.services.v1.ListTransactionsForAccountRequest
|
|
416
|
-
*/
|
|
417
|
-
export type ListTransactionsForAccountRequest = Message<"thru.services.v1.ListTransactionsForAccountRequest"> & {
|
|
418
|
-
/**
|
|
419
|
-
* @generated from field: thru.core.v1.Pubkey account = 1;
|
|
420
|
-
*/
|
|
421
|
-
account?: Pubkey;
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* @generated from field: optional thru.common.v1.PageRequest page = 2;
|
|
425
|
-
*/
|
|
426
|
-
page?: PageRequest;
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* Optional CEL filter applied after the account constraint.
|
|
430
|
-
*
|
|
431
|
-
* @generated from field: optional thru.common.v1.Filter filter = 3;
|
|
432
|
-
*/
|
|
433
|
-
filter?: Filter;
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* Describes the message thru.services.v1.ListTransactionsForAccountRequest.
|
|
438
|
-
* Use `create(ListTransactionsForAccountRequestSchema)` to create a new message.
|
|
439
|
-
*/
|
|
440
|
-
export const ListTransactionsForAccountRequestSchema: GenMessage<ListTransactionsForAccountRequest> = /*@__PURE__*/
|
|
441
|
-
messageDesc(file_thru_services_v1_query_service, 12);
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* ListTransactionsForAccountResponse contains transaction signatures.
|
|
445
|
-
*
|
|
446
|
-
* @generated from message thru.services.v1.ListTransactionsForAccountResponse
|
|
447
|
-
*/
|
|
448
|
-
export type ListTransactionsForAccountResponse = Message<"thru.services.v1.ListTransactionsForAccountResponse"> & {
|
|
449
|
-
/**
|
|
450
|
-
* @generated from field: repeated thru.core.v1.Signature signatures = 1;
|
|
451
|
-
*/
|
|
452
|
-
signatures: Signature[];
|
|
453
|
-
|
|
454
|
-
/**
|
|
455
|
-
* @generated from field: optional thru.common.v1.PageResponse page = 2;
|
|
456
|
-
*/
|
|
457
|
-
page?: PageResponse;
|
|
458
|
-
};
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* Describes the message thru.services.v1.ListTransactionsForAccountResponse.
|
|
462
|
-
* Use `create(ListTransactionsForAccountResponseSchema)` to create a new message.
|
|
463
|
-
*/
|
|
464
|
-
export const ListTransactionsForAccountResponseSchema: GenMessage<ListTransactionsForAccountResponse> = /*@__PURE__*/
|
|
465
|
-
messageDesc(file_thru_services_v1_query_service, 13);
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* GetVersionRequest fetches component version strings.
|
|
469
|
-
*
|
|
470
|
-
* @generated from message thru.services.v1.GetVersionRequest
|
|
471
|
-
*/
|
|
472
|
-
export type GetVersionRequest = Message<"thru.services.v1.GetVersionRequest"> & {
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* Describes the message thru.services.v1.GetVersionRequest.
|
|
477
|
-
* Use `create(GetVersionRequestSchema)` to create a new message.
|
|
478
|
-
*/
|
|
479
|
-
export const GetVersionRequestSchema: GenMessage<GetVersionRequest> = /*@__PURE__*/
|
|
480
|
-
messageDesc(file_thru_services_v1_query_service, 14);
|
|
481
|
-
|
|
482
|
-
/**
|
|
483
|
-
* GetVersionResponse returns version information per component.
|
|
484
|
-
*
|
|
485
|
-
* @generated from message thru.services.v1.GetVersionResponse
|
|
486
|
-
*/
|
|
487
|
-
export type GetVersionResponse = Message<"thru.services.v1.GetVersionResponse"> & {
|
|
488
|
-
/**
|
|
489
|
-
* @generated from field: map<string, string> versions = 1;
|
|
490
|
-
*/
|
|
491
|
-
versions: { [key: string]: string };
|
|
492
|
-
};
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Describes the message thru.services.v1.GetVersionResponse.
|
|
496
|
-
* Use `create(GetVersionResponseSchema)` to create a new message.
|
|
497
|
-
*/
|
|
498
|
-
export const GetVersionResponseSchema: GenMessage<GetVersionResponse> = /*@__PURE__*/
|
|
499
|
-
messageDesc(file_thru_services_v1_query_service, 15);
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* GetEventRequest fetches an event by identifier.
|
|
503
|
-
*
|
|
504
|
-
* @generated from message thru.services.v1.GetEventRequest
|
|
505
|
-
*/
|
|
506
|
-
export type GetEventRequest = Message<"thru.services.v1.GetEventRequest"> & {
|
|
507
|
-
/**
|
|
508
|
-
* @generated from field: string event_id = 1;
|
|
509
|
-
*/
|
|
510
|
-
eventId: string;
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* @generated from field: optional thru.common.v1.VersionContext version_context = 2;
|
|
514
|
-
*/
|
|
515
|
-
versionContext?: VersionContext;
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* Describes the message thru.services.v1.GetEventRequest.
|
|
520
|
-
* Use `create(GetEventRequestSchema)` to create a new message.
|
|
521
|
-
*/
|
|
522
|
-
export const GetEventRequestSchema: GenMessage<GetEventRequest> = /*@__PURE__*/
|
|
523
|
-
messageDesc(file_thru_services_v1_query_service, 16);
|
|
524
|
-
|
|
525
|
-
/**
|
|
526
|
-
* Event represents a transaction event emitted by the chain.
|
|
527
|
-
*
|
|
528
|
-
* @generated from message thru.services.v1.Event
|
|
529
|
-
*/
|
|
530
|
-
export type Event = Message<"thru.services.v1.Event"> & {
|
|
531
|
-
/**
|
|
532
|
-
* @generated from field: string event_id = 1;
|
|
533
|
-
*/
|
|
534
|
-
eventId: string;
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* @generated from field: thru.core.v1.Signature transaction_signature = 2;
|
|
538
|
-
*/
|
|
539
|
-
transactionSignature?: Signature;
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
* @generated from field: optional thru.core.v1.Pubkey program = 3;
|
|
543
|
-
*/
|
|
544
|
-
program?: Pubkey;
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* @generated from field: optional bytes payload = 4;
|
|
548
|
-
*/
|
|
549
|
-
payload?: Uint8Array;
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* @generated from field: optional uint64 slot = 5;
|
|
553
|
-
*/
|
|
554
|
-
slot?: bigint;
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* @generated from field: optional uint32 call_idx = 6;
|
|
558
|
-
*/
|
|
559
|
-
callIdx?: number;
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
* @generated from field: optional uint32 program_idx = 7;
|
|
563
|
-
*/
|
|
564
|
-
programIdx?: number;
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* @generated from field: optional uint32 payload_size = 8;
|
|
568
|
-
*/
|
|
569
|
-
payloadSize?: number;
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* Describes the message thru.services.v1.Event.
|
|
574
|
-
* Use `create(EventSchema)` to create a new message.
|
|
575
|
-
*/
|
|
576
|
-
export const EventSchema: GenMessage<Event> = /*@__PURE__*/
|
|
577
|
-
messageDesc(file_thru_services_v1_query_service, 17);
|
|
578
|
-
|
|
579
|
-
/**
|
|
580
|
-
* GetTransactionStatusRequest fetches execution status for a transaction.
|
|
581
|
-
*
|
|
582
|
-
* @generated from message thru.services.v1.GetTransactionStatusRequest
|
|
583
|
-
*/
|
|
584
|
-
export type GetTransactionStatusRequest = Message<"thru.services.v1.GetTransactionStatusRequest"> & {
|
|
585
|
-
/**
|
|
586
|
-
* @generated from field: thru.core.v1.Signature signature = 1;
|
|
587
|
-
*/
|
|
588
|
-
signature?: Signature;
|
|
589
|
-
};
|
|
590
|
-
|
|
591
|
-
/**
|
|
592
|
-
* Describes the message thru.services.v1.GetTransactionStatusRequest.
|
|
593
|
-
* Use `create(GetTransactionStatusRequestSchema)` to create a new message.
|
|
594
|
-
*/
|
|
595
|
-
export const GetTransactionStatusRequestSchema: GenMessage<GetTransactionStatusRequest> = /*@__PURE__*/
|
|
596
|
-
messageDesc(file_thru_services_v1_query_service, 18);
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
* TransactionStatus captures status metadata for a transaction.
|
|
600
|
-
*
|
|
601
|
-
* @generated from message thru.services.v1.TransactionStatus
|
|
602
|
-
*/
|
|
603
|
-
export type TransactionStatus = Message<"thru.services.v1.TransactionStatus"> & {
|
|
604
|
-
/**
|
|
605
|
-
* @generated from field: thru.core.v1.Signature signature = 1;
|
|
606
|
-
*/
|
|
607
|
-
signature?: Signature;
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus consensus_status = 2;
|
|
611
|
-
*/
|
|
612
|
-
consensusStatus?: ConsensusStatus;
|
|
613
|
-
|
|
614
|
-
/**
|
|
615
|
-
* @generated from field: optional thru.core.v1.TransactionExecutionResult execution_result = 3;
|
|
616
|
-
*/
|
|
617
|
-
executionResult?: TransactionExecutionResult;
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
/**
|
|
621
|
-
* Describes the message thru.services.v1.TransactionStatus.
|
|
622
|
-
* Use `create(TransactionStatusSchema)` to create a new message.
|
|
623
|
-
*/
|
|
624
|
-
export const TransactionStatusSchema: GenMessage<TransactionStatus> = /*@__PURE__*/
|
|
625
|
-
messageDesc(file_thru_services_v1_query_service, 19);
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
*
|
|
629
|
-
*
|
|
630
|
-
* @generated from message thru.services.v1.GetHeightRequest
|
|
631
|
-
*/
|
|
632
|
-
export type GetHeightRequest = Message<"thru.services.v1.GetHeightRequest"> & {
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Describes the message thru.services.v1.GetHeightRequest.
|
|
637
|
-
* Use `create(GetHeightRequestSchema)` to create a new message.
|
|
638
|
-
*/
|
|
639
|
-
export const GetHeightRequestSchema: GenMessage<GetHeightRequest> = /*@__PURE__*/
|
|
640
|
-
messageDesc(file_thru_services_v1_query_service, 20);
|
|
641
|
-
|
|
642
|
-
/**
|
|
643
|
-
* GetHeightResponse
|
|
644
|
-
*
|
|
645
|
-
* @generated from message thru.services.v1.GetHeightResponse
|
|
646
|
-
*/
|
|
647
|
-
export type GetHeightResponse = Message<"thru.services.v1.GetHeightResponse"> & {
|
|
648
|
-
/**
|
|
649
|
-
* @generated from field: uint64 finalized = 1;
|
|
650
|
-
*/
|
|
651
|
-
finalized: bigint;
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* @generated from field: uint64 locally_executed = 2;
|
|
655
|
-
*/
|
|
656
|
-
locallyExecuted: bigint;
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* @generated from field: uint64 cluster_executed = 3;
|
|
660
|
-
*/
|
|
661
|
-
clusterExecuted: bigint;
|
|
662
|
-
};
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* Describes the message thru.services.v1.GetHeightResponse.
|
|
666
|
-
* Use `create(GetHeightResponseSchema)` to create a new message.
|
|
667
|
-
*/
|
|
668
|
-
export const GetHeightResponseSchema: GenMessage<GetHeightResponse> = /*@__PURE__*/
|
|
669
|
-
messageDesc(file_thru_services_v1_query_service, 21);
|
|
670
|
-
|
|
671
|
-
/**
|
|
672
|
-
* QueryService defines unary RPCs for accessing blockchain data.
|
|
673
|
-
*
|
|
674
|
-
* @generated from service thru.services.v1.QueryService
|
|
675
|
-
*/
|
|
676
|
-
export const QueryService: GenService<{
|
|
677
|
-
/**
|
|
678
|
-
* Get block heights
|
|
679
|
-
*
|
|
680
|
-
* @generated from rpc thru.services.v1.QueryService.GetHeight
|
|
681
|
-
*/
|
|
682
|
-
getHeight: {
|
|
683
|
-
methodKind: "unary";
|
|
684
|
-
input: typeof GetHeightRequestSchema;
|
|
685
|
-
output: typeof GetHeightResponseSchema;
|
|
686
|
-
},
|
|
687
|
-
/**
|
|
688
|
-
* Get account information.
|
|
689
|
-
*
|
|
690
|
-
* @generated from rpc thru.services.v1.QueryService.GetAccount
|
|
691
|
-
*/
|
|
692
|
-
getAccount: {
|
|
693
|
-
methodKind: "unary";
|
|
694
|
-
input: typeof GetAccountRequestSchema;
|
|
695
|
-
output: typeof AccountSchema;
|
|
696
|
-
},
|
|
697
|
-
/**
|
|
698
|
-
* Get account raw bytes.
|
|
699
|
-
*
|
|
700
|
-
* @generated from rpc thru.services.v1.QueryService.GetRawAccount
|
|
701
|
-
*/
|
|
702
|
-
getRawAccount: {
|
|
703
|
-
methodKind: "unary";
|
|
704
|
-
input: typeof GetRawAccountRequestSchema;
|
|
705
|
-
output: typeof RawAccountSchema;
|
|
706
|
-
},
|
|
707
|
-
/**
|
|
708
|
-
* Get transaction by signature.
|
|
709
|
-
*
|
|
710
|
-
* @generated from rpc thru.services.v1.QueryService.GetTransaction
|
|
711
|
-
*/
|
|
712
|
-
getTransaction: {
|
|
713
|
-
methodKind: "unary";
|
|
714
|
-
input: typeof GetTransactionRequestSchema;
|
|
715
|
-
output: typeof TransactionSchema;
|
|
716
|
-
},
|
|
717
|
-
/**
|
|
718
|
-
* Get raw transaction by signature.
|
|
719
|
-
*
|
|
720
|
-
* @generated from rpc thru.services.v1.QueryService.GetRawTransaction
|
|
721
|
-
*/
|
|
722
|
-
getRawTransaction: {
|
|
723
|
-
methodKind: "unary";
|
|
724
|
-
input: typeof GetRawTransactionRequestSchema;
|
|
725
|
-
output: typeof RawTransactionSchema;
|
|
726
|
-
},
|
|
727
|
-
/**
|
|
728
|
-
* Get block by slot or hash.
|
|
729
|
-
*
|
|
730
|
-
* @generated from rpc thru.services.v1.QueryService.GetBlock
|
|
731
|
-
*/
|
|
732
|
-
getBlock: {
|
|
733
|
-
methodKind: "unary";
|
|
734
|
-
input: typeof GetBlockRequestSchema;
|
|
735
|
-
output: typeof BlockSchema;
|
|
736
|
-
},
|
|
737
|
-
/**
|
|
738
|
-
* Get raw block bytes.
|
|
739
|
-
*
|
|
740
|
-
* @generated from rpc thru.services.v1.QueryService.GetRawBlock
|
|
741
|
-
*/
|
|
742
|
-
getRawBlock: {
|
|
743
|
-
methodKind: "unary";
|
|
744
|
-
input: typeof GetRawBlockRequestSchema;
|
|
745
|
-
output: typeof RawBlockSchema;
|
|
746
|
-
},
|
|
747
|
-
/**
|
|
748
|
-
* List accounts using CEL-based filtering.
|
|
749
|
-
*
|
|
750
|
-
* @generated from rpc thru.services.v1.QueryService.ListAccounts
|
|
751
|
-
*/
|
|
752
|
-
listAccounts: {
|
|
753
|
-
methodKind: "unary";
|
|
754
|
-
input: typeof ListAccountsRequestSchema;
|
|
755
|
-
output: typeof ListAccountsResponseSchema;
|
|
756
|
-
},
|
|
757
|
-
/**
|
|
758
|
-
* List blocks using pagination and filtering. By default returns blocks ordered from latest slot to the first one.
|
|
759
|
-
*
|
|
760
|
-
* @generated from rpc thru.services.v1.QueryService.ListBlocks
|
|
761
|
-
*/
|
|
762
|
-
listBlocks: {
|
|
763
|
-
methodKind: "unary";
|
|
764
|
-
input: typeof ListBlocksRequestSchema;
|
|
765
|
-
output: typeof ListBlocksResponseSchema;
|
|
766
|
-
},
|
|
767
|
-
/**
|
|
768
|
-
* List executed transaction signatures involving an account.
|
|
769
|
-
*
|
|
770
|
-
* @generated from rpc thru.services.v1.QueryService.ListTransactionsForAccount
|
|
771
|
-
*/
|
|
772
|
-
listTransactionsForAccount: {
|
|
773
|
-
methodKind: "unary";
|
|
774
|
-
input: typeof ListTransactionsForAccountRequestSchema;
|
|
775
|
-
output: typeof ListTransactionsForAccountResponseSchema;
|
|
776
|
-
},
|
|
777
|
-
/**
|
|
778
|
-
* Get a specific event by ID.
|
|
779
|
-
*
|
|
780
|
-
* @generated from rpc thru.services.v1.QueryService.GetEvent
|
|
781
|
-
*/
|
|
782
|
-
getEvent: {
|
|
783
|
-
methodKind: "unary";
|
|
784
|
-
input: typeof GetEventRequestSchema;
|
|
785
|
-
output: typeof EventSchema;
|
|
786
|
-
},
|
|
787
|
-
/**
|
|
788
|
-
* Get derived transaction status metadata.
|
|
789
|
-
*
|
|
790
|
-
* @generated from rpc thru.services.v1.QueryService.GetTransactionStatus
|
|
791
|
-
*/
|
|
792
|
-
getTransactionStatus: {
|
|
793
|
-
methodKind: "unary";
|
|
794
|
-
input: typeof GetTransactionStatusRequestSchema;
|
|
795
|
-
output: typeof TransactionStatusSchema;
|
|
796
|
-
},
|
|
797
|
-
/**
|
|
798
|
-
* Generate an account state proof snapshot.
|
|
799
|
-
*
|
|
800
|
-
* @generated from rpc thru.services.v1.QueryService.GenerateStateProof
|
|
801
|
-
*/
|
|
802
|
-
generateStateProof: {
|
|
803
|
-
methodKind: "unary";
|
|
804
|
-
input: typeof GenerateStateProofRequestSchema;
|
|
805
|
-
output: typeof GenerateStateProofResponseSchema;
|
|
806
|
-
},
|
|
807
|
-
/**
|
|
808
|
-
* Get component version strings.
|
|
809
|
-
*
|
|
810
|
-
* @generated from rpc thru.services.v1.QueryService.GetVersion
|
|
811
|
-
*/
|
|
812
|
-
getVersion: {
|
|
813
|
-
methodKind: "unary";
|
|
814
|
-
input: typeof GetVersionRequestSchema;
|
|
815
|
-
output: typeof GetVersionResponseSchema;
|
|
816
|
-
},
|
|
817
|
-
}> = /*@__PURE__*/
|
|
818
|
-
serviceDesc(file_thru_services_v1_query_service, 0);
|
|
819
|
-
|