@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.
Files changed (88) hide show
  1. package/README.md +19 -0
  2. package/dist/{chunk-PH7P5EEU.js → chunk-SHMREHP5.js} +13 -9
  3. package/dist/chunk-SHMREHP5.js.map +1 -0
  4. package/dist/client.d.ts +2 -1
  5. package/dist/client.js +3 -2
  6. package/dist/client.js.map +1 -1
  7. package/dist/metafile-esm.json +1 -1
  8. package/dist/sdk.d.ts +3 -3
  9. package/dist/sdk.js +1 -1
  10. package/dist/{transactions-BzD9hYlc.d.ts → transactions-CLezIeXO.d.ts} +20 -18
  11. package/package.json +7 -3
  12. package/buf.gen.yaml +0 -12
  13. package/buf.lock +0 -9
  14. package/buf.yaml +0 -15
  15. package/dist/chunk-PH7P5EEU.js.map +0 -1
  16. package/proto/thru/common/v1/consensus.proto +0 -73
  17. package/proto/thru/common/v1/errors.proto +0 -65
  18. package/proto/thru/common/v1/filters.proto +0 -60
  19. package/proto/thru/common/v1/pagination.proto +0 -45
  20. package/proto/thru/core/v1/account.proto +0 -137
  21. package/proto/thru/core/v1/block.proto +0 -80
  22. package/proto/thru/core/v1/state.proto +0 -35
  23. package/proto/thru/core/v1/transaction.proto +0 -136
  24. package/proto/thru/core/v1/types.proto +0 -50
  25. package/proto/thru/services/v1/command_service.proto +0 -70
  26. package/proto/thru/services/v1/query_service.proto +0 -344
  27. package/proto/thru/services/v1/streaming_service.proto +0 -126
  28. package/thru-ts-client-sdk/__tests__/helpers/test-utils.ts +0 -228
  29. package/thru-ts-client-sdk/client.ts +0 -10
  30. package/thru-ts-client-sdk/core/__tests__/bound-client.test.ts +0 -354
  31. package/thru-ts-client-sdk/core/__tests__/client.test.ts +0 -53
  32. package/thru-ts-client-sdk/core/bound-client.ts +0 -156
  33. package/thru-ts-client-sdk/core/client.ts +0 -38
  34. package/thru-ts-client-sdk/defaults.ts +0 -26
  35. package/thru-ts-client-sdk/modules/__tests__/accounts.test.ts +0 -406
  36. package/thru-ts-client-sdk/modules/__tests__/blocks.test.ts +0 -199
  37. package/thru-ts-client-sdk/modules/__tests__/events.test.ts +0 -74
  38. package/thru-ts-client-sdk/modules/__tests__/height.test.ts +0 -39
  39. package/thru-ts-client-sdk/modules/__tests__/helpers.test.ts +0 -288
  40. package/thru-ts-client-sdk/modules/__tests__/keys.test.ts +0 -55
  41. package/thru-ts-client-sdk/modules/__tests__/proofs.test.ts +0 -119
  42. package/thru-ts-client-sdk/modules/__tests__/streaming.test.ts +0 -152
  43. package/thru-ts-client-sdk/modules/__tests__/transactions.test.ts +0 -730
  44. package/thru-ts-client-sdk/modules/__tests__/version.test.ts +0 -40
  45. package/thru-ts-client-sdk/modules/accounts.ts +0 -141
  46. package/thru-ts-client-sdk/modules/blocks.ts +0 -75
  47. package/thru-ts-client-sdk/modules/events.ts +0 -20
  48. package/thru-ts-client-sdk/modules/height.ts +0 -9
  49. package/thru-ts-client-sdk/modules/helpers.ts +0 -131
  50. package/thru-ts-client-sdk/modules/keys.ts +0 -29
  51. package/thru-ts-client-sdk/modules/proofs.ts +0 -20
  52. package/thru-ts-client-sdk/modules/streaming.ts +0 -133
  53. package/thru-ts-client-sdk/modules/transactions.ts +0 -374
  54. package/thru-ts-client-sdk/modules/version.ts +0 -10
  55. package/thru-ts-client-sdk/proto/buf/validate/validate_pb.ts +0 -4761
  56. package/thru-ts-client-sdk/proto/google/api/annotations_pb.ts +0 -39
  57. package/thru-ts-client-sdk/proto/google/api/client_pb.ts +0 -953
  58. package/thru-ts-client-sdk/proto/google/api/field_behavior_pb.ts +0 -157
  59. package/thru-ts-client-sdk/proto/google/api/http_pb.ts +0 -474
  60. package/thru-ts-client-sdk/proto/google/api/launch_stage_pb.ts +0 -118
  61. package/thru-ts-client-sdk/proto/thru/common/v1/consensus_pb.ts +0 -162
  62. package/thru-ts-client-sdk/proto/thru/common/v1/errors_pb.ts +0 -129
  63. package/thru-ts-client-sdk/proto/thru/common/v1/filters_pb.ts +0 -129
  64. package/thru-ts-client-sdk/proto/thru/common/v1/pagination_pb.ts +0 -79
  65. package/thru-ts-client-sdk/proto/thru/core/v1/account_pb.ts +0 -359
  66. package/thru-ts-client-sdk/proto/thru/core/v1/block_pb.ts +0 -259
  67. package/thru-ts-client-sdk/proto/thru/core/v1/state_pb.ts +0 -103
  68. package/thru-ts-client-sdk/proto/thru/core/v1/transaction_pb.ts +0 -528
  69. package/thru-ts-client-sdk/proto/thru/core/v1/types_pb.ts +0 -100
  70. package/thru-ts-client-sdk/proto/thru/services/v1/command_service_pb.ts +0 -146
  71. package/thru-ts-client-sdk/proto/thru/services/v1/query_service_pb.ts +0 -819
  72. package/thru-ts-client-sdk/proto/thru/services/v1/streaming_service_pb.ts +0 -390
  73. package/thru-ts-client-sdk/sdk.ts +0 -42
  74. package/thru-ts-client-sdk/test-scripts/counter.ts +0 -469
  75. package/thru-ts-client-sdk/test-scripts/create-account.ts +0 -74
  76. package/thru-ts-client-sdk/test-scripts/get-height.ts +0 -52
  77. package/thru-ts-client-sdk/transactions/Transaction.ts +0 -240
  78. package/thru-ts-client-sdk/transactions/TransactionBuilder.ts +0 -53
  79. package/thru-ts-client-sdk/transactions/__tests__/TransactionBuilder.test.ts +0 -411
  80. package/thru-ts-client-sdk/transactions/__tests__/utils.test.ts +0 -214
  81. package/thru-ts-client-sdk/transactions/index.ts +0 -3
  82. package/thru-ts-client-sdk/transactions/types.ts +0 -74
  83. package/thru-ts-client-sdk/transactions/utils.ts +0 -132
  84. package/thru-ts-client-sdk/types/types.ts +0 -8
  85. package/thru-ts-client-sdk/utils/utils.ts +0 -27
  86. package/tsconfig.json +0 -9
  87. package/tsup.config.ts +0 -14
  88. package/vitest.config.ts +0 -31
@@ -1,359 +0,0 @@
1
- // @generated by protoc-gen-es v2.9.0 with parameter "target=ts"
2
- // @generated from file thru/core/v1/account.proto (package thru.core.v1, syntax proto3)
3
- /* eslint-disable */
4
-
5
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
- import { enumDesc, fileDesc, messageDesc } 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 { Timestamp } from "@bufbuild/protobuf/wkt";
10
- import { 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 { Pubkey } from "./types_pb";
14
- import { file_thru_core_v1_types } from "./types_pb";
15
- import type { Message } from "@bufbuild/protobuf";
16
-
17
- /**
18
- * Describes the file thru/core/v1/account.proto.
19
- */
20
- export const file_thru_core_v1_account: GenFile = /*@__PURE__*/
21
- fileDesc("Chp0aHJ1L2NvcmUvdjEvYWNjb3VudC5wcm90bxIMdGhydS5jb3JlLnYxIsgBCgxBY2NvdW50RmxhZ3MSFwoKaXNfcHJvZ3JhbRgBIAEoCEID4EECEhoKDWlzX3ByaXZpbGVnZWQYAiABKAhCA+BBAhIeChFpc191bmNvbXByZXNzYWJsZRgDIAEoCEID4EECEhkKDGlzX2VwaGVtZXJhbBgEIAEoCEID4EECEhcKCmlzX2RlbGV0ZWQYBSABKAhCA+BBAhITCgZpc19uZXcYBiABKAhCA+BBAhIaCg1pc19jb21wcmVzc2VkGAcgASgIQgPgQQIi2AEKC0FjY291bnRNZXRhEhsKB3ZlcnNpb24YASABKA1CCuBBArpIBCoCKAESLgoFZmxhZ3MYAiABKAsyGi50aHJ1LmNvcmUudjEuQWNjb3VudEZsYWdzQgPgQQISFgoJZGF0YV9zaXplGAMgASgNQgPgQQISEAoDc2VxGAQgASgEQgPgQQISKAoFb3duZXIYBSABKAsyFC50aHJ1LmNvcmUudjEuUHVia2V5QgPgQQISFAoHYmFsYW5jZRgGIAEoBEID4EECEhIKBW5vbmNlGAcgASgEQgPgQQIirwEKC0FjY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RhZGF0YUID4EEBSAKIAQESQwoQY29uc2Vuc3VzX3N0YXR1cxgFIAEoDjIfLnRocnUuY29tbW9uLnYxLkNvbnNlbnN1c1N0YXR1c0ID4EEBSAOIAQFCBwoFX21ldGFCBwoFX2RhdGFCEgoQX3ZlcnNpb25fY29udGV4dEITChFfY29uc2Vuc3VzX3N0YXR1cyLnAQoKUmF3QWNjb3VudBIqCgdhZGRyZXNzGAEgASgLMhQudGhydS5jb3JlLnYxLlB1YmtleUID4EECEh0KCHJhd19tZXRhGAIgASgMQgvgQQK6SAV6AxiAIBIkCghyYXdfZGF0YRgDIAEoDEIN4EEBukgHegUYgICACEgAiAEBEkcKD3ZlcnNpb25fY29udGV4dBgEIAEoCzIkLnRocnUuY29yZS52MS5WZXJzaW9uQ29udGV4dE1ldGFkYXRhQgPgQQFIAYgBAUILCglfcmF3X2RhdGFCEgoQX3ZlcnNpb25fY29udGV4dCqYAQoLQWNjb3VudFZpZXcSHAoYQUNDT1VOVF9WSUVXX1VOU1BFQ0lGSUVEEAASHAoYQUNDT1VOVF9WSUVXX1BVQktFWV9PTkxZEAESGgoWQUNDT1VOVF9WSUVXX01FVEFfT05MWRACEhoKFkFDQ09VTlRfVklFV19EQVRBX09OTFkQAxIVChFBQ0NPVU5UX1ZJRVdfRlVMTBAEQrsBChBjb20udGhydS5jb3JlLnYxQgxBY2NvdW50UHJvdG9QAVpAZ2l0aHViLmNvbS9VbnRvLUxhYnMvdGhydS1uZXQvZ3JwYy9wa2cvcHJvdG8vdGhydS9jb3JlL3YxO2NvcmV2MaICA1RDWKoCDFRocnUuQ29yZS5WMboCBFRIVUPKAgxUaHJ1XENvcmVcVjHiAhhUaHJ1XENvcmVcVjFcR1BCTWV0YWRhdGHqAg5UaHJ1OjpDb3JlOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_api_field_behavior, file_google_protobuf_timestamp, file_thru_common_v1_consensus, file_thru_core_v1_types]);
22
-
23
- /**
24
- * AccountFlags enumerates boolean account capability flags.
25
- *
26
- * @generated from message thru.core.v1.AccountFlags
27
- */
28
- export type AccountFlags = Message<"thru.core.v1.AccountFlags"> & {
29
- /**
30
- * @generated from field: bool is_program = 1;
31
- */
32
- isProgram: boolean;
33
-
34
- /**
35
- * @generated from field: bool is_privileged = 2;
36
- */
37
- isPrivileged: boolean;
38
-
39
- /**
40
- * @generated from field: bool is_uncompressable = 3;
41
- */
42
- isUncompressable: boolean;
43
-
44
- /**
45
- * @generated from field: bool is_ephemeral = 4;
46
- */
47
- isEphemeral: boolean;
48
-
49
- /**
50
- * @generated from field: bool is_deleted = 5;
51
- */
52
- isDeleted: boolean;
53
-
54
- /**
55
- * @generated from field: bool is_new = 6;
56
- */
57
- isNew: boolean;
58
-
59
- /**
60
- * @generated from field: bool is_compressed = 7;
61
- */
62
- isCompressed: boolean;
63
- };
64
-
65
- /**
66
- * Describes the message thru.core.v1.AccountFlags.
67
- * Use `create(AccountFlagsSchema)` to create a new message.
68
- */
69
- export const AccountFlagsSchema: GenMessage<AccountFlags> = /*@__PURE__*/
70
- messageDesc(file_thru_core_v1_account, 0);
71
-
72
- /**
73
- * AccountMeta captures metadata associated with an account.
74
- *
75
- * @generated from message thru.core.v1.AccountMeta
76
- */
77
- export type AccountMeta = Message<"thru.core.v1.AccountMeta"> & {
78
- /**
79
- * @generated from field: uint32 version = 1;
80
- */
81
- version: number;
82
-
83
- /**
84
- * @generated from field: thru.core.v1.AccountFlags flags = 2;
85
- */
86
- flags?: AccountFlags;
87
-
88
- /**
89
- * @generated from field: uint32 data_size = 3;
90
- */
91
- dataSize: number;
92
-
93
- /**
94
- * Account sequence number
95
- *
96
- * @generated from field: uint64 seq = 4;
97
- */
98
- seq: bigint;
99
-
100
- /**
101
- * @generated from field: thru.core.v1.Pubkey owner = 5;
102
- */
103
- owner?: Pubkey;
104
-
105
- /**
106
- * @generated from field: uint64 balance = 6;
107
- */
108
- balance: bigint;
109
-
110
- /**
111
- * @generated from field: uint64 nonce = 7;
112
- */
113
- nonce: bigint;
114
- };
115
-
116
- /**
117
- * Describes the message thru.core.v1.AccountMeta.
118
- * Use `create(AccountMetaSchema)` to create a new message.
119
- */
120
- export const AccountMetaSchema: GenMessage<AccountMeta> = /*@__PURE__*/
121
- messageDesc(file_thru_core_v1_account, 1);
122
-
123
- /**
124
- * AccountData contains account data payloads.
125
- *
126
- * @generated from message thru.core.v1.AccountData
127
- */
128
- export type AccountData = Message<"thru.core.v1.AccountData"> & {
129
- /**
130
- * @generated from field: optional bytes data = 1;
131
- */
132
- data?: Uint8Array;
133
-
134
- /**
135
- * @generated from field: optional bool compressed = 2;
136
- */
137
- compressed?: boolean;
138
-
139
- /**
140
- * @generated from field: optional string compression_algorithm = 3;
141
- */
142
- compressionAlgorithm?: string;
143
- };
144
-
145
- /**
146
- * Describes the message thru.core.v1.AccountData.
147
- * Use `create(AccountDataSchema)` to create a new message.
148
- */
149
- export const AccountDataSchema: GenMessage<AccountData> = /*@__PURE__*/
150
- messageDesc(file_thru_core_v1_account, 2);
151
-
152
- /**
153
- * DataSlice describes a contiguous range of account data to return.
154
- *
155
- * @generated from message thru.core.v1.DataSlice
156
- */
157
- export type DataSlice = Message<"thru.core.v1.DataSlice"> & {
158
- /**
159
- * @generated from field: uint32 offset = 1;
160
- */
161
- offset: number;
162
-
163
- /**
164
- * @generated from field: uint32 length = 2;
165
- */
166
- length: number;
167
- };
168
-
169
- /**
170
- * Describes the message thru.core.v1.DataSlice.
171
- * Use `create(DataSliceSchema)` to create a new message.
172
- */
173
- export const DataSliceSchema: GenMessage<DataSlice> = /*@__PURE__*/
174
- messageDesc(file_thru_core_v1_account, 3);
175
-
176
- /**
177
- * AccountPage represents a 4KB chunk for streaming account data.
178
- *
179
- * @generated from message thru.core.v1.AccountPage
180
- */
181
- export type AccountPage = Message<"thru.core.v1.AccountPage"> & {
182
- /**
183
- * @generated from field: uint32 page_idx = 1;
184
- */
185
- pageIdx: number;
186
-
187
- /**
188
- * @generated from field: uint32 page_size = 2;
189
- */
190
- pageSize: number;
191
-
192
- /**
193
- * @generated from field: bytes page_data = 3;
194
- */
195
- pageData: Uint8Array;
196
-
197
- /**
198
- * @generated from field: optional bool compressed = 4;
199
- */
200
- compressed?: boolean;
201
-
202
- /**
203
- * @generated from field: optional string compression_algorithm = 5;
204
- */
205
- compressionAlgorithm?: string;
206
- };
207
-
208
- /**
209
- * Describes the message thru.core.v1.AccountPage.
210
- * Use `create(AccountPageSchema)` to create a new message.
211
- */
212
- export const AccountPageSchema: GenMessage<AccountPage> = /*@__PURE__*/
213
- messageDesc(file_thru_core_v1_account, 4);
214
-
215
- /**
216
- * VersionContextMetadata captures context for a returned account state.
217
- *
218
- * @generated from message thru.core.v1.VersionContextMetadata
219
- */
220
- export type VersionContextMetadata = Message<"thru.core.v1.VersionContextMetadata"> & {
221
- /**
222
- * @generated from field: optional uint64 slot = 1;
223
- */
224
- slot?: bigint;
225
-
226
- /**
227
- * @generated from field: optional google.protobuf.Timestamp block_timestamp = 2;
228
- */
229
- blockTimestamp?: Timestamp;
230
- };
231
-
232
- /**
233
- * Describes the message thru.core.v1.VersionContextMetadata.
234
- * Use `create(VersionContextMetadataSchema)` to create a new message.
235
- */
236
- export const VersionContextMetadataSchema: GenMessage<VersionContextMetadata> = /*@__PURE__*/
237
- messageDesc(file_thru_core_v1_account, 5);
238
-
239
- /**
240
- * Account models a fully decoded account resource.
241
- *
242
- * @generated from message thru.core.v1.Account
243
- */
244
- export type Account = Message<"thru.core.v1.Account"> & {
245
- /**
246
- * @generated from field: thru.core.v1.Pubkey address = 1;
247
- */
248
- address?: Pubkey;
249
-
250
- /**
251
- * @generated from field: optional thru.core.v1.AccountMeta meta = 2;
252
- */
253
- meta?: AccountMeta;
254
-
255
- /**
256
- * @generated from field: optional thru.core.v1.AccountData data = 3;
257
- */
258
- data?: AccountData;
259
-
260
- /**
261
- * @generated from field: optional thru.core.v1.VersionContextMetadata version_context = 4;
262
- */
263
- versionContext?: VersionContextMetadata;
264
-
265
- /**
266
- * @generated from field: optional thru.common.v1.ConsensusStatus consensus_status = 5;
267
- */
268
- consensusStatus?: ConsensusStatus;
269
- };
270
-
271
- /**
272
- * Describes the message thru.core.v1.Account.
273
- * Use `create(AccountSchema)` to create a new message.
274
- */
275
- export const AccountSchema: GenMessage<Account> = /*@__PURE__*/
276
- messageDesc(file_thru_core_v1_account, 6);
277
-
278
- /**
279
- * RawAccount captures raw serialized account bytes.
280
- *
281
- * @generated from message thru.core.v1.RawAccount
282
- */
283
- export type RawAccount = Message<"thru.core.v1.RawAccount"> & {
284
- /**
285
- * @generated from field: thru.core.v1.Pubkey address = 1;
286
- */
287
- address?: Pubkey;
288
-
289
- /**
290
- * @generated from field: bytes raw_meta = 2;
291
- */
292
- rawMeta: Uint8Array;
293
-
294
- /**
295
- * @generated from field: optional bytes raw_data = 3;
296
- */
297
- rawData?: Uint8Array;
298
-
299
- /**
300
- * @generated from field: optional thru.core.v1.VersionContextMetadata version_context = 4;
301
- */
302
- versionContext?: VersionContextMetadata;
303
- };
304
-
305
- /**
306
- * Describes the message thru.core.v1.RawAccount.
307
- * Use `create(RawAccountSchema)` to create a new message.
308
- */
309
- export const RawAccountSchema: GenMessage<RawAccount> = /*@__PURE__*/
310
- messageDesc(file_thru_core_v1_account, 7);
311
-
312
- /**
313
- * AccountView controls which sections of account resources are returned.
314
- *
315
- * @generated from enum thru.core.v1.AccountView
316
- */
317
- export enum AccountView {
318
- /**
319
- * ACCOUNT_VIEW_UNSPECIFIED uses service defaults.
320
- *
321
- * @generated from enum value: ACCOUNT_VIEW_UNSPECIFIED = 0;
322
- */
323
- UNSPECIFIED = 0,
324
-
325
- /**
326
- * ACCOUNT_VIEW_PUBKEY_ONLY returns only the account address.
327
- *
328
- * @generated from enum value: ACCOUNT_VIEW_PUBKEY_ONLY = 1;
329
- */
330
- PUBKEY_ONLY = 1,
331
-
332
- /**
333
- * ACCOUNT_VIEW_META_ONLY returns only account metadata.
334
- *
335
- * @generated from enum value: ACCOUNT_VIEW_META_ONLY = 2;
336
- */
337
- META_ONLY = 2,
338
-
339
- /**
340
- * ACCOUNT_VIEW_DATA_ONLY returns only account data.
341
- *
342
- * @generated from enum value: ACCOUNT_VIEW_DATA_ONLY = 3;
343
- */
344
- DATA_ONLY = 3,
345
-
346
- /**
347
- * ACCOUNT_VIEW_FULL returns address, metadata, and data.
348
- *
349
- * @generated from enum value: ACCOUNT_VIEW_FULL = 4;
350
- */
351
- FULL = 4,
352
- }
353
-
354
- /**
355
- * Describes the enum thru.core.v1.AccountView.
356
- */
357
- export const AccountViewSchema: GenEnum<AccountView> = /*@__PURE__*/
358
- enumDesc(file_thru_core_v1_account, 0);
359
-
@@ -1,259 +0,0 @@
1
- // @generated by protoc-gen-es v2.9.0 with parameter "target=ts"
2
- // @generated from file thru/core/v1/block.proto (package thru.core.v1, syntax proto3)
3
- /* eslint-disable */
4
-
5
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
- import { enumDesc, fileDesc, messageDesc } 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 { Timestamp } from "@bufbuild/protobuf/wkt";
10
- import { 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 { BlockHash, Pubkey, Signature } from "./types_pb";
14
- import { file_thru_core_v1_types } from "./types_pb";
15
- import type { Message } from "@bufbuild/protobuf";
16
-
17
- /**
18
- * Describes the file thru/core/v1/block.proto.
19
- */
20
- export const file_thru_core_v1_block: GenFile = /*@__PURE__*/
21
- fileDesc("Chh0aHJ1L2NvcmUvdjEvYmxvY2sucHJvdG8SDHRocnUuY29yZS52MSKrAwoLQmxvY2tIZWFkZXISEQoEc2xvdBgBIAEoBEID4EECEjAKCmJsb2NrX2hhc2gYAiABKAsyFy50aHJ1L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mxvY2sSEQoEc2xvdBgBIAEoBEID4EECEiAKCXJhd19ibG9jaxgCIAEoDEIN4EECukgHegUYgICAECqUAQoJQmxvY2tWaWV3EhoKFkJMT0NLX1ZJRVdfVU5TUEVDSUZJRUQQABIaChZCTE9DS19WSUVXX0hFQURFUl9PTkxZEAESIAocQkxPQ0tfVklFV19IRUFERVJfQU5EX0ZPT1RFUhACEhgKFEJMT0NLX1ZJRVdfQk9EWV9PTkxZEAMSEwoPQkxPQ0tfVklFV19GVUxMEAQqjQEKD0V4ZWN1dGlvblN0YXR1cxIgChxFWEVDVVRJT05fU1RBVFVTX1VOU1BFQ0lGSUVEEAASHAoYRVhFQ1VUSU9OX1NUQVRVU19QRU5ESU5HEAESHQoZRVhFQ1VUSU9OX1NUQVRVU19FWEVDVVRFRBACEhsKF0VYRUNVVElPTl9TVEFUVVNfRkFJTEVEEANCuQEKEGNvbS50aHJ1LmNvcmUudjFCCkJsb2NrUHJvdG9QAVpAZ2l0aHViLmNvbS9VbnRvLUxhYnMvdGhydS1uZXQvZ3JwYy9wa2cvcHJvdG8vdGhydS9jb3JlL3YxO2NvcmV2MaICA1RDWKoCDFRocnUuQ29yZS5WMboCBFRIVUPKAgxUaHJ1XENvcmVcVjHiAhhUaHJ1XENvcmVcVjFcR1BCTWV0YWRhdGHqAg5UaHJ1OjpDb3JlOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_api_field_behavior, file_google_protobuf_timestamp, file_thru_common_v1_consensus, file_thru_core_v1_types]);
22
-
23
- /**
24
- * BlockHeader describes metadata about a block.
25
- *
26
- * @generated from message thru.core.v1.BlockHeader
27
- */
28
- export type BlockHeader = Message<"thru.core.v1.BlockHeader"> & {
29
- /**
30
- * @generated from field: uint64 slot = 1;
31
- */
32
- slot: bigint;
33
-
34
- /**
35
- * @generated from field: thru.core.v1.BlockHash block_hash = 2;
36
- */
37
- blockHash?: BlockHash;
38
-
39
- /**
40
- * @generated from field: thru.core.v1.Signature header_signature = 3;
41
- */
42
- headerSignature?: Signature;
43
-
44
- /**
45
- * @generated from field: uint32 version = 4;
46
- */
47
- version: number;
48
-
49
- /**
50
- * @generated from field: thru.core.v1.Pubkey producer = 5;
51
- */
52
- producer?: Pubkey;
53
-
54
- /**
55
- * @generated from field: google.protobuf.Timestamp expiry_timestamp = 6;
56
- */
57
- expiryTimestamp?: Timestamp;
58
-
59
- /**
60
- * @generated from field: uint64 start_slot = 7;
61
- */
62
- startSlot: bigint;
63
-
64
- /**
65
- * @generated from field: uint32 expiry_after = 8;
66
- */
67
- expiryAfter: number;
68
-
69
- /**
70
- * @generated from field: uint32 max_block_size = 9;
71
- */
72
- maxBlockSize: number;
73
-
74
- /**
75
- * @generated from field: uint64 max_compute_units = 10;
76
- */
77
- maxComputeUnits: bigint;
78
-
79
- /**
80
- * @generated from field: uint32 max_state_units = 11;
81
- */
82
- maxStateUnits: number;
83
-
84
- /**
85
- * @generated from field: uint64 price = 12;
86
- */
87
- price: bigint;
88
- };
89
-
90
- /**
91
- * Describes the message thru.core.v1.BlockHeader.
92
- * Use `create(BlockHeaderSchema)` to create a new message.
93
- */
94
- export const BlockHeaderSchema: GenMessage<BlockHeader> = /*@__PURE__*/
95
- messageDesc(file_thru_core_v1_block, 0);
96
-
97
- /**
98
- * BlockFooter captures execution result metadata for a block.
99
- *
100
- * @generated from message thru.core.v1.BlockFooter
101
- */
102
- export type BlockFooter = Message<"thru.core.v1.BlockFooter"> & {
103
- /**
104
- * @generated from field: thru.core.v1.Signature signature = 1;
105
- */
106
- signature?: Signature;
107
-
108
- /**
109
- * @generated from field: thru.core.v1.ExecutionStatus status = 2;
110
- */
111
- status: ExecutionStatus;
112
-
113
- /**
114
- * @generated from field: uint64 consumed_compute_units = 3;
115
- */
116
- consumedComputeUnits: bigint;
117
-
118
- /**
119
- * @generated from field: uint32 consumed_state_units = 4;
120
- */
121
- consumedStateUnits: number;
122
- };
123
-
124
- /**
125
- * Describes the message thru.core.v1.BlockFooter.
126
- * Use `create(BlockFooterSchema)` to create a new message.
127
- */
128
- export const BlockFooterSchema: GenMessage<BlockFooter> = /*@__PURE__*/
129
- messageDesc(file_thru_core_v1_block, 1);
130
-
131
- /**
132
- * Block represents a fully decoded block resource.
133
- *
134
- * @generated from message thru.core.v1.Block
135
- */
136
- export type Block = Message<"thru.core.v1.Block"> & {
137
- /**
138
- * @generated from field: thru.core.v1.BlockHeader header = 1;
139
- */
140
- header?: BlockHeader;
141
-
142
- /**
143
- * @generated from field: optional thru.core.v1.BlockFooter footer = 2;
144
- */
145
- footer?: BlockFooter;
146
-
147
- /**
148
- * @generated from field: optional bytes body = 3;
149
- */
150
- body?: Uint8Array;
151
-
152
- /**
153
- * @generated from field: optional thru.common.v1.ConsensusStatus consensus_status = 4;
154
- */
155
- consensusStatus?: ConsensusStatus;
156
- };
157
-
158
- /**
159
- * Describes the message thru.core.v1.Block.
160
- * Use `create(BlockSchema)` to create a new message.
161
- */
162
- export const BlockSchema: GenMessage<Block> = /*@__PURE__*/
163
- messageDesc(file_thru_core_v1_block, 2);
164
-
165
- /**
166
- * RawBlock captures raw block bytes for direct access.
167
- *
168
- * @generated from message thru.core.v1.RawBlock
169
- */
170
- export type RawBlock = Message<"thru.core.v1.RawBlock"> & {
171
- /**
172
- * @generated from field: uint64 slot = 1;
173
- */
174
- slot: bigint;
175
-
176
- /**
177
- * @generated from field: bytes raw_block = 2;
178
- */
179
- rawBlock: Uint8Array;
180
- };
181
-
182
- /**
183
- * Describes the message thru.core.v1.RawBlock.
184
- * Use `create(RawBlockSchema)` to create a new message.
185
- */
186
- export const RawBlockSchema: GenMessage<RawBlock> = /*@__PURE__*/
187
- messageDesc(file_thru_core_v1_block, 3);
188
-
189
- /**
190
- * BlockView controls how much of a block resource is returned.
191
- *
192
- * @generated from enum thru.core.v1.BlockView
193
- */
194
- export enum BlockView {
195
- /**
196
- * @generated from enum value: BLOCK_VIEW_UNSPECIFIED = 0;
197
- */
198
- UNSPECIFIED = 0,
199
-
200
- /**
201
- * @generated from enum value: BLOCK_VIEW_HEADER_ONLY = 1;
202
- */
203
- HEADER_ONLY = 1,
204
-
205
- /**
206
- * @generated from enum value: BLOCK_VIEW_HEADER_AND_FOOTER = 2;
207
- */
208
- HEADER_AND_FOOTER = 2,
209
-
210
- /**
211
- * @generated from enum value: BLOCK_VIEW_BODY_ONLY = 3;
212
- */
213
- BODY_ONLY = 3,
214
-
215
- /**
216
- * @generated from enum value: BLOCK_VIEW_FULL = 4;
217
- */
218
- FULL = 4,
219
- }
220
-
221
- /**
222
- * Describes the enum thru.core.v1.BlockView.
223
- */
224
- export const BlockViewSchema: GenEnum<BlockView> = /*@__PURE__*/
225
- enumDesc(file_thru_core_v1_block, 0);
226
-
227
- /**
228
- * ExecutionStatus enumerates block execution results.
229
- *
230
- * @generated from enum thru.core.v1.ExecutionStatus
231
- */
232
- export enum ExecutionStatus {
233
- /**
234
- * @generated from enum value: EXECUTION_STATUS_UNSPECIFIED = 0;
235
- */
236
- UNSPECIFIED = 0,
237
-
238
- /**
239
- * @generated from enum value: EXECUTION_STATUS_PENDING = 1;
240
- */
241
- PENDING = 1,
242
-
243
- /**
244
- * @generated from enum value: EXECUTION_STATUS_EXECUTED = 2;
245
- */
246
- EXECUTED = 2,
247
-
248
- /**
249
- * @generated from enum value: EXECUTION_STATUS_FAILED = 3;
250
- */
251
- FAILED = 3,
252
- }
253
-
254
- /**
255
- * Describes the enum thru.core.v1.ExecutionStatus.
256
- */
257
- export const ExecutionStatusSchema: GenEnum<ExecutionStatus> = /*@__PURE__*/
258
- enumDesc(file_thru_core_v1_block, 1);
259
-