@thru/thru-sdk 0.1.34 → 0.1.36
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/dist/VersionInfo-BBuhryfs.d.ts +930 -0
- package/dist/chunk-PU2M7EPY.js +2851 -0
- package/dist/chunk-PU2M7EPY.js.map +1 -0
- package/dist/client.d.ts +6 -3
- package/dist/client.js +8 -3
- package/dist/client.js.map +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/sdk.d.ts +3 -4
- package/dist/sdk.js +2 -371
- package/dist/sdk.js.map +1 -1
- package/package.json +6 -7
- package/dist/VersionInfo-BGciKJJA.d.ts +0 -2172
- package/dist/chunk-ZLV6WP54.js +0 -2534
- package/dist/chunk-ZLV6WP54.js.map +0 -1
|
@@ -1,2172 +0,0 @@
|
|
|
1
|
-
import { Timestamp } from '@bufbuild/protobuf/wkt';
|
|
2
|
-
import { Message } from '@bufbuild/protobuf';
|
|
3
|
-
import { Transport, createClient, CallOptions, Interceptor } from '@connectrpc/connect';
|
|
4
|
-
import { GrpcWebTransportOptions } from '@connectrpc/connect-web';
|
|
5
|
-
import { GenMessage } from '@bufbuild/protobuf/codegenv2';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* VersionContext selects which logical version of a resource should be
|
|
9
|
-
* returned. At least one field must be set.
|
|
10
|
-
*
|
|
11
|
-
* @generated from message thru.common.v1.VersionContext
|
|
12
|
-
*/
|
|
13
|
-
type VersionContext = Message<"thru.common.v1.VersionContext"> & {
|
|
14
|
-
/**
|
|
15
|
-
* Specifies the desired version semantics.
|
|
16
|
-
*
|
|
17
|
-
* @generated from oneof thru.common.v1.VersionContext.version
|
|
18
|
-
*/
|
|
19
|
-
version: {
|
|
20
|
-
/**
|
|
21
|
-
* Request the latest version available at request time.
|
|
22
|
-
*
|
|
23
|
-
* @generated from field: thru.common.v1.CurrentVersion current = 1;
|
|
24
|
-
*/
|
|
25
|
-
value: CurrentVersion;
|
|
26
|
-
case: "current";
|
|
27
|
-
} | {
|
|
28
|
-
/**
|
|
29
|
-
* Request the latest version, or historical on.
|
|
30
|
-
*
|
|
31
|
-
* @generated from field: thru.common.v1.CurrentOrHistoricalVersion currentOrHistorical = 2;
|
|
32
|
-
*/
|
|
33
|
-
value: CurrentOrHistoricalVersion;
|
|
34
|
-
case: "currentOrHistorical";
|
|
35
|
-
} | {
|
|
36
|
-
/**
|
|
37
|
-
* Request the version for a specific slot number.
|
|
38
|
-
*
|
|
39
|
-
* @generated from field: uint64 slot = 3;
|
|
40
|
-
*/
|
|
41
|
-
value: bigint;
|
|
42
|
-
case: "slot";
|
|
43
|
-
} | {
|
|
44
|
-
/**
|
|
45
|
-
* Request the version nearest to the provided block timestamp.
|
|
46
|
-
*
|
|
47
|
-
* @generated from field: google.protobuf.Timestamp timestamp = 4;
|
|
48
|
-
*/
|
|
49
|
-
value: Timestamp;
|
|
50
|
-
case: "timestamp";
|
|
51
|
-
} | {
|
|
52
|
-
/**
|
|
53
|
-
* Request the version for a specific seq number.
|
|
54
|
-
* Relevant only for GetAccount and GetRawAccount requests.
|
|
55
|
-
*
|
|
56
|
-
* @generated from field: uint64 seq = 5;
|
|
57
|
-
*/
|
|
58
|
-
value: bigint;
|
|
59
|
-
case: "seq";
|
|
60
|
-
} | {
|
|
61
|
-
case: undefined;
|
|
62
|
-
value?: undefined;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* CurrentVersion is an empty marker message for VersionContext.current.
|
|
67
|
-
*
|
|
68
|
-
* @generated from message thru.common.v1.CurrentVersion
|
|
69
|
-
*/
|
|
70
|
-
type CurrentVersion = Message<"thru.common.v1.CurrentVersion"> & {};
|
|
71
|
-
/**
|
|
72
|
-
* CurrentOrHistoricalVersion is an empty marker message for VersionContext.current.
|
|
73
|
-
*
|
|
74
|
-
* @generated from message thru.common.v1.CurrentOrHistoricalVersion
|
|
75
|
-
*/
|
|
76
|
-
type CurrentOrHistoricalVersion = Message<"thru.common.v1.CurrentOrHistoricalVersion"> & {};
|
|
77
|
-
/**
|
|
78
|
-
* ConsensusStatus represents the minimum consensus level a resource has
|
|
79
|
-
* achieved when returned by the service.
|
|
80
|
-
*
|
|
81
|
-
* @generated from enum thru.common.v1.ConsensusStatus
|
|
82
|
-
*/
|
|
83
|
-
declare enum ConsensusStatus {
|
|
84
|
-
/**
|
|
85
|
-
* CONSENSUS_STATUS_UNSPECIFIED indicates the consensus status is unknown.
|
|
86
|
-
*
|
|
87
|
-
* @generated from enum value: CONSENSUS_STATUS_UNSPECIFIED = 0;
|
|
88
|
-
*/
|
|
89
|
-
UNSPECIFIED = 0,
|
|
90
|
-
/**
|
|
91
|
-
* CONSENSUS_STATUS_OBSERVED indicates the resource has been observed but
|
|
92
|
-
* not yet confirmed in a finalized block.
|
|
93
|
-
*
|
|
94
|
-
* @generated from enum value: CONSENSUS_STATUS_OBSERVED = 1;
|
|
95
|
-
*/
|
|
96
|
-
OBSERVED = 1,
|
|
97
|
-
/**
|
|
98
|
-
* CONSENSUS_STATUS_INCLUDED indicates the resource has been included in the
|
|
99
|
-
* ledger but may not be finalized.
|
|
100
|
-
*
|
|
101
|
-
* @generated from enum value: CONSENSUS_STATUS_INCLUDED = 2;
|
|
102
|
-
*/
|
|
103
|
-
INCLUDED = 2,
|
|
104
|
-
/**
|
|
105
|
-
* CONSENSUS_STATUS_FINALIZED indicates the resource is finalized for a slot.
|
|
106
|
-
*
|
|
107
|
-
* @generated from enum value: CONSENSUS_STATUS_FINALIZED = 3;
|
|
108
|
-
*/
|
|
109
|
-
FINALIZED = 3,
|
|
110
|
-
/**
|
|
111
|
-
* CONSENSUS_STATUS_LOCALLY_EXECUTED indicates the local node executed the
|
|
112
|
-
* resource but broader cluster finality may not have been achieved.
|
|
113
|
-
*
|
|
114
|
-
* @generated from enum value: CONSENSUS_STATUS_LOCALLY_EXECUTED = 4;
|
|
115
|
-
*/
|
|
116
|
-
LOCALLY_EXECUTED = 4,
|
|
117
|
-
/**
|
|
118
|
-
* CONSENSUS_STATUS_CLUSTER_EXECUTED indicates the entire cluster has
|
|
119
|
-
* executed and agreed on the resource.
|
|
120
|
-
*
|
|
121
|
-
* @generated from enum value: CONSENSUS_STATUS_CLUSTER_EXECUTED = 5;
|
|
122
|
-
*/
|
|
123
|
-
CLUSTER_EXECUTED = 5
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Pubkey represents a 32-byte public key value.
|
|
128
|
-
*
|
|
129
|
-
* @generated from message thru.common.v1.Pubkey
|
|
130
|
-
*/
|
|
131
|
-
type Pubkey$1 = Message<"thru.common.v1.Pubkey"> & {
|
|
132
|
-
/**
|
|
133
|
-
* 32-byte public key buffer.
|
|
134
|
-
*
|
|
135
|
-
* @generated from field: bytes value = 1;
|
|
136
|
-
*/
|
|
137
|
-
value: Uint8Array;
|
|
138
|
-
};
|
|
139
|
-
/**
|
|
140
|
-
* Signature represents a 64-byte signature value.
|
|
141
|
-
*
|
|
142
|
-
* @generated from message thru.common.v1.Signature
|
|
143
|
-
*/
|
|
144
|
-
type Signature$1 = Message<"thru.common.v1.Signature"> & {
|
|
145
|
-
/**
|
|
146
|
-
* 64-byte signature buffer.
|
|
147
|
-
*
|
|
148
|
-
* @generated from field: bytes value = 1;
|
|
149
|
-
*/
|
|
150
|
-
value: Uint8Array;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* TaPubkey represents a ta-encoded public key string (46 characters).
|
|
154
|
-
*
|
|
155
|
-
* @generated from message thru.common.v1.TaPubkey
|
|
156
|
-
*/
|
|
157
|
-
type TaPubkey = Message<"thru.common.v1.TaPubkey"> & {
|
|
158
|
-
/**
|
|
159
|
-
* 46-character ta-encoded public key string.
|
|
160
|
-
*
|
|
161
|
-
* @generated from field: string value = 1;
|
|
162
|
-
*/
|
|
163
|
-
value: string;
|
|
164
|
-
};
|
|
165
|
-
/**
|
|
166
|
-
* TsSignature represents a ts-encoded signature string (90 characters).
|
|
167
|
-
*
|
|
168
|
-
* @generated from message thru.common.v1.TsSignature
|
|
169
|
-
*/
|
|
170
|
-
type TsSignature = Message<"thru.common.v1.TsSignature"> & {
|
|
171
|
-
/**
|
|
172
|
-
* 90-character ts-encoded signature string.
|
|
173
|
-
*
|
|
174
|
-
* @generated from field: string value = 1;
|
|
175
|
-
*/
|
|
176
|
-
value: string;
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* TransactionHeader carries structured metadata for a transaction.
|
|
181
|
-
*
|
|
182
|
-
* @generated from message thru.core.v1.TransactionHeader
|
|
183
|
-
*/
|
|
184
|
-
type TransactionHeader = Message<"thru.core.v1.TransactionHeader"> & {
|
|
185
|
-
/**
|
|
186
|
-
* @generated from field: thru.common.v1.Signature fee_payer_signature = 1;
|
|
187
|
-
*/
|
|
188
|
-
feePayerSignature?: Signature$1;
|
|
189
|
-
/**
|
|
190
|
-
* @generated from field: uint32 version = 2;
|
|
191
|
-
*/
|
|
192
|
-
version: number;
|
|
193
|
-
/**
|
|
194
|
-
* @generated from field: uint32 flags = 3;
|
|
195
|
-
*/
|
|
196
|
-
flags: number;
|
|
197
|
-
/**
|
|
198
|
-
* @generated from field: uint32 readwrite_accounts_count = 4;
|
|
199
|
-
*/
|
|
200
|
-
readwriteAccountsCount: number;
|
|
201
|
-
/**
|
|
202
|
-
* @generated from field: uint32 readonly_accounts_count = 5;
|
|
203
|
-
*/
|
|
204
|
-
readonlyAccountsCount: number;
|
|
205
|
-
/**
|
|
206
|
-
* @generated from field: uint32 instruction_data_size = 6;
|
|
207
|
-
*/
|
|
208
|
-
instructionDataSize: number;
|
|
209
|
-
/**
|
|
210
|
-
* @generated from field: uint32 requested_compute_units = 7;
|
|
211
|
-
*/
|
|
212
|
-
requestedComputeUnits: number;
|
|
213
|
-
/**
|
|
214
|
-
* @generated from field: uint32 requested_state_units = 8;
|
|
215
|
-
*/
|
|
216
|
-
requestedStateUnits: number;
|
|
217
|
-
/**
|
|
218
|
-
* @generated from field: uint32 requested_memory_units = 9;
|
|
219
|
-
*/
|
|
220
|
-
requestedMemoryUnits: number;
|
|
221
|
-
/**
|
|
222
|
-
* @generated from field: uint32 expiry_after = 10;
|
|
223
|
-
*/
|
|
224
|
-
expiryAfter: number;
|
|
225
|
-
/**
|
|
226
|
-
* @generated from field: uint64 fee = 11;
|
|
227
|
-
*/
|
|
228
|
-
fee: bigint;
|
|
229
|
-
/**
|
|
230
|
-
* @generated from field: uint64 nonce = 12;
|
|
231
|
-
*/
|
|
232
|
-
nonce: bigint;
|
|
233
|
-
/**
|
|
234
|
-
* @generated from field: uint64 start_slot = 13;
|
|
235
|
-
*/
|
|
236
|
-
startSlot: bigint;
|
|
237
|
-
/**
|
|
238
|
-
* @generated from field: thru.common.v1.Pubkey fee_payer_pubkey = 14;
|
|
239
|
-
*/
|
|
240
|
-
feePayerPubkey?: Pubkey$1;
|
|
241
|
-
/**
|
|
242
|
-
* @generated from field: thru.common.v1.Pubkey program_pubkey = 15;
|
|
243
|
-
*/
|
|
244
|
-
programPubkey?: Pubkey$1;
|
|
245
|
-
};
|
|
246
|
-
/**
|
|
247
|
-
* TransactionExecutionResult captures execution outcomes.
|
|
248
|
-
*
|
|
249
|
-
* @generated from message thru.core.v1.TransactionExecutionResult
|
|
250
|
-
*/
|
|
251
|
-
type TransactionExecutionResult = Message<"thru.core.v1.TransactionExecutionResult"> & {
|
|
252
|
-
/**
|
|
253
|
-
* @generated from field: uint32 consumed_compute_units = 1;
|
|
254
|
-
*/
|
|
255
|
-
consumedComputeUnits: number;
|
|
256
|
-
/**
|
|
257
|
-
* @generated from field: uint32 consumed_memory_units = 2;
|
|
258
|
-
*/
|
|
259
|
-
consumedMemoryUnits: number;
|
|
260
|
-
/**
|
|
261
|
-
* @generated from field: uint32 consumed_state_units = 3;
|
|
262
|
-
*/
|
|
263
|
-
consumedStateUnits: number;
|
|
264
|
-
/**
|
|
265
|
-
* @generated from field: uint64 user_error_code = 4;
|
|
266
|
-
*/
|
|
267
|
-
userErrorCode: bigint;
|
|
268
|
-
/**
|
|
269
|
-
* @generated from field: thru.core.v1.TransactionVmError vm_error = 5;
|
|
270
|
-
*/
|
|
271
|
-
vmError: TransactionVmError;
|
|
272
|
-
/**
|
|
273
|
-
* @generated from field: uint64 execution_result = 6;
|
|
274
|
-
*/
|
|
275
|
-
executionResult: bigint;
|
|
276
|
-
/**
|
|
277
|
-
* @generated from field: uint32 pages_used = 7;
|
|
278
|
-
*/
|
|
279
|
-
pagesUsed: number;
|
|
280
|
-
/**
|
|
281
|
-
* @generated from field: uint32 events_count = 8;
|
|
282
|
-
*/
|
|
283
|
-
eventsCount: number;
|
|
284
|
-
/**
|
|
285
|
-
* @generated from field: uint32 events_size = 9;
|
|
286
|
-
*/
|
|
287
|
-
eventsSize: number;
|
|
288
|
-
/**
|
|
289
|
-
* @generated from field: repeated thru.common.v1.Pubkey readwrite_accounts = 10;
|
|
290
|
-
*/
|
|
291
|
-
readwriteAccounts: Pubkey$1[];
|
|
292
|
-
/**
|
|
293
|
-
* @generated from field: repeated thru.common.v1.Pubkey readonly_accounts = 11;
|
|
294
|
-
*/
|
|
295
|
-
readonlyAccounts: Pubkey$1[];
|
|
296
|
-
/**
|
|
297
|
-
* @generated from field: repeated thru.core.v1.TransactionEvent events = 12;
|
|
298
|
-
*/
|
|
299
|
-
events: TransactionEvent[];
|
|
300
|
-
};
|
|
301
|
-
/**
|
|
302
|
-
* TransactionEvent describes an event emitted during transaction execution.
|
|
303
|
-
*
|
|
304
|
-
* @generated from message thru.core.v1.TransactionEvent
|
|
305
|
-
*/
|
|
306
|
-
type TransactionEvent = Message<"thru.core.v1.TransactionEvent"> & {
|
|
307
|
-
/**
|
|
308
|
-
* @generated from field: string event_id = 1;
|
|
309
|
-
*/
|
|
310
|
-
eventId: string;
|
|
311
|
-
/**
|
|
312
|
-
* @generated from field: uint32 call_idx = 2;
|
|
313
|
-
*/
|
|
314
|
-
callIdx: number;
|
|
315
|
-
/**
|
|
316
|
-
* @generated from field: uint32 program_idx = 3;
|
|
317
|
-
*/
|
|
318
|
-
programIdx: number;
|
|
319
|
-
/**
|
|
320
|
-
* @generated from field: thru.common.v1.Pubkey program = 4;
|
|
321
|
-
*/
|
|
322
|
-
program?: Pubkey$1;
|
|
323
|
-
/**
|
|
324
|
-
* @generated from field: bytes payload = 5;
|
|
325
|
-
*/
|
|
326
|
-
payload: Uint8Array;
|
|
327
|
-
};
|
|
328
|
-
/**
|
|
329
|
-
* Transaction describes a fully decoded transaction resource.
|
|
330
|
-
*
|
|
331
|
-
* @generated from message thru.core.v1.Transaction
|
|
332
|
-
*/
|
|
333
|
-
type Transaction$1 = Message<"thru.core.v1.Transaction"> & {
|
|
334
|
-
/**
|
|
335
|
-
* @generated from field: thru.common.v1.Signature signature = 1;
|
|
336
|
-
*/
|
|
337
|
-
signature?: Signature$1;
|
|
338
|
-
/**
|
|
339
|
-
* @generated from field: thru.core.v1.TransactionHeader header = 2;
|
|
340
|
-
*/
|
|
341
|
-
header?: TransactionHeader;
|
|
342
|
-
/**
|
|
343
|
-
* @generated from field: optional bytes body = 3;
|
|
344
|
-
*/
|
|
345
|
-
body?: Uint8Array;
|
|
346
|
-
/**
|
|
347
|
-
* @generated from field: optional thru.core.v1.TransactionExecutionResult execution_result = 4;
|
|
348
|
-
*/
|
|
349
|
-
executionResult?: TransactionExecutionResult;
|
|
350
|
-
/**
|
|
351
|
-
* @generated from field: optional uint64 slot = 5;
|
|
352
|
-
*/
|
|
353
|
-
slot?: bigint;
|
|
354
|
-
/**
|
|
355
|
-
* @generated from field: optional uint32 block_offset = 6;
|
|
356
|
-
*/
|
|
357
|
-
blockOffset?: number;
|
|
358
|
-
};
|
|
359
|
-
/**
|
|
360
|
-
* RawTransaction provides direct access to serialized transaction bytes.
|
|
361
|
-
*
|
|
362
|
-
* @generated from message thru.core.v1.RawTransaction
|
|
363
|
-
*/
|
|
364
|
-
type RawTransaction = Message<"thru.core.v1.RawTransaction"> & {
|
|
365
|
-
/**
|
|
366
|
-
* @generated from field: thru.common.v1.Signature signature = 1;
|
|
367
|
-
*/
|
|
368
|
-
signature?: Signature$1;
|
|
369
|
-
/**
|
|
370
|
-
* @generated from field: bytes raw_transaction = 2;
|
|
371
|
-
*/
|
|
372
|
-
rawTransaction: Uint8Array;
|
|
373
|
-
};
|
|
374
|
-
/**
|
|
375
|
-
* TransactionView controls how transactions are materialized in responses.
|
|
376
|
-
*
|
|
377
|
-
* @generated from enum thru.core.v1.TransactionView
|
|
378
|
-
*/
|
|
379
|
-
declare enum TransactionView {
|
|
380
|
-
/**
|
|
381
|
-
* @generated from enum value: TRANSACTION_VIEW_UNSPECIFIED = 0;
|
|
382
|
-
*/
|
|
383
|
-
UNSPECIFIED = 0,
|
|
384
|
-
/**
|
|
385
|
-
* @generated from enum value: TRANSACTION_VIEW_SIGNATURE_ONLY = 1;
|
|
386
|
-
*/
|
|
387
|
-
SIGNATURE_ONLY = 1,
|
|
388
|
-
/**
|
|
389
|
-
* @generated from enum value: TRANSACTION_VIEW_HEADER_ONLY = 2;
|
|
390
|
-
*/
|
|
391
|
-
HEADER_ONLY = 2,
|
|
392
|
-
/**
|
|
393
|
-
* @generated from enum value: TRANSACTION_VIEW_HEADER_AND_BODY = 3;
|
|
394
|
-
*/
|
|
395
|
-
HEADER_AND_BODY = 3,
|
|
396
|
-
/**
|
|
397
|
-
* @generated from enum value: TRANSACTION_VIEW_FULL = 4;
|
|
398
|
-
*/
|
|
399
|
-
FULL = 4
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
* TransactionVmError enumerates runtime error codes returned by the executor.
|
|
403
|
-
*
|
|
404
|
-
* @generated from enum thru.core.v1.TransactionVmError
|
|
405
|
-
*/
|
|
406
|
-
declare enum TransactionVmError {
|
|
407
|
-
/**
|
|
408
|
-
* TN_RUNTIME_TXN_EXECUTE_SUCCESS
|
|
409
|
-
*
|
|
410
|
-
* @generated from enum value: TRANSACTION_VM_EXECUTE_SUCCESS = 0;
|
|
411
|
-
*/
|
|
412
|
-
TRANSACTION_VM_EXECUTE_SUCCESS = 0,
|
|
413
|
-
/**
|
|
414
|
-
* TN_RUNTIME_TXN_ERR_INVALID_FORMAT
|
|
415
|
-
*
|
|
416
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FORMAT = -255;
|
|
417
|
-
*/
|
|
418
|
-
TRANSACTION_VM_ERROR_INVALID_FORMAT = -255,
|
|
419
|
-
/**
|
|
420
|
-
* TN_RUNTIME_TXN_ERR_INVALID_VERSION
|
|
421
|
-
*
|
|
422
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_INVALID_VERSION = -254;
|
|
423
|
-
*/
|
|
424
|
-
TRANSACTION_VM_ERROR_INVALID_VERSION = -254,
|
|
425
|
-
/**
|
|
426
|
-
* TN_RUNTIME_TXN_ERR_INVALID_FLAGS
|
|
427
|
-
*
|
|
428
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FLAGS = -253;
|
|
429
|
-
*/
|
|
430
|
-
TRANSACTION_VM_ERROR_INVALID_FLAGS = -253,
|
|
431
|
-
/**
|
|
432
|
-
* TN_RUNTIME_TXN_ERR_INVALID_SIGNATURE
|
|
433
|
-
*
|
|
434
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_INVALID_SIGNATURE = -252;
|
|
435
|
-
*/
|
|
436
|
-
TRANSACTION_VM_ERROR_INVALID_SIGNATURE = -252,
|
|
437
|
-
/**
|
|
438
|
-
* TN_RUNTIME_TXN_ERR_DUPLICATE_ACCOUNT
|
|
439
|
-
*
|
|
440
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_DUPLICATE_ACCOUNT = -251;
|
|
441
|
-
*/
|
|
442
|
-
TRANSACTION_VM_ERROR_DUPLICATE_ACCOUNT = -251,
|
|
443
|
-
/**
|
|
444
|
-
* TN_RUNTIME_TXN_ERR_UNSORTED_ACCOUNTS
|
|
445
|
-
*
|
|
446
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_UNSORTED_ACCOUNTS = -250;
|
|
447
|
-
*/
|
|
448
|
-
TRANSACTION_VM_ERROR_UNSORTED_ACCOUNTS = -250,
|
|
449
|
-
/**
|
|
450
|
-
* TN_RUNTIME_TXN_ERR_UNSORTED_READWRITE_ACCOUNTS
|
|
451
|
-
*
|
|
452
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_UNSORTED_READWRITE_ACCOUNTS = -249;
|
|
453
|
-
*/
|
|
454
|
-
TRANSACTION_VM_ERROR_UNSORTED_READWRITE_ACCOUNTS = -249,
|
|
455
|
-
/**
|
|
456
|
-
* TN_RUNTIME_TXN_ERR_UNSORTED_READONLY_ACCOUNTS
|
|
457
|
-
*
|
|
458
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_UNSORTED_READONLY_ACCOUNTS = -248;
|
|
459
|
-
*/
|
|
460
|
-
TRANSACTION_VM_ERROR_UNSORTED_READONLY_ACCOUNTS = -248,
|
|
461
|
-
/**
|
|
462
|
-
* TN_RUNTIME_TXN_ERR_ACCOUNT_COUNT_LIMIT_EXCEEDED
|
|
463
|
-
*
|
|
464
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_ACCOUNT_COUNT_LIMIT_EXCEEDED = -247;
|
|
465
|
-
*/
|
|
466
|
-
TRANSACTION_VM_ERROR_ACCOUNT_COUNT_LIMIT_EXCEEDED = -247,
|
|
467
|
-
/**
|
|
468
|
-
* TN_RUNTIME_TXN_ERR_NONCE_TOO_LOW
|
|
469
|
-
*
|
|
470
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_NONCE_TOO_LOW = -511;
|
|
471
|
-
*/
|
|
472
|
-
TRANSACTION_VM_ERROR_NONCE_TOO_LOW = -511,
|
|
473
|
-
/**
|
|
474
|
-
* TN_RUNTIME_TXN_ERR_NONCE_TOO_HIGH
|
|
475
|
-
*
|
|
476
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_NONCE_TOO_HIGH = -510;
|
|
477
|
-
*/
|
|
478
|
-
TRANSACTION_VM_ERROR_NONCE_TOO_HIGH = -510,
|
|
479
|
-
/**
|
|
480
|
-
* TN_RUNTIME_TXN_ERR_INSUFFICIENT_FEE_PAYER_BALANCE
|
|
481
|
-
*
|
|
482
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_INSUFFICIENT_FEE_PAYER_BALANCE = -509;
|
|
483
|
-
*/
|
|
484
|
-
TRANSACTION_VM_ERROR_INSUFFICIENT_FEE_PAYER_BALANCE = -509,
|
|
485
|
-
/**
|
|
486
|
-
* TN_RUNTIME_TXN_ERR_FEE_PAYER_ACCOUNT_DOES_NOT_EXIST
|
|
487
|
-
*
|
|
488
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_FEE_PAYER_ACCOUNT_DOES_NOT_EXIST = -508;
|
|
489
|
-
*/
|
|
490
|
-
TRANSACTION_VM_ERROR_FEE_PAYER_ACCOUNT_DOES_NOT_EXIST = -508,
|
|
491
|
-
/**
|
|
492
|
-
* TN_RUNTIME_TXN_ERR_NOT_LIVE_YET
|
|
493
|
-
*
|
|
494
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_NOT_LIVE_YET = -507;
|
|
495
|
-
*/
|
|
496
|
-
TRANSACTION_VM_ERROR_NOT_LIVE_YET = -507,
|
|
497
|
-
/**
|
|
498
|
-
* TN_RUNTIME_TXN_ERR_EXPIRED
|
|
499
|
-
*
|
|
500
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_EXPIRED = -506;
|
|
501
|
-
*/
|
|
502
|
-
TRANSACTION_VM_ERROR_EXPIRED = -506,
|
|
503
|
-
/**
|
|
504
|
-
* TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF
|
|
505
|
-
*
|
|
506
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF = -505;
|
|
507
|
-
*/
|
|
508
|
-
TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF = -505,
|
|
509
|
-
/**
|
|
510
|
-
* TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_TYPE
|
|
511
|
-
*
|
|
512
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_TYPE = -504;
|
|
513
|
-
*/
|
|
514
|
-
TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_TYPE = -504,
|
|
515
|
-
/**
|
|
516
|
-
* TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_SLOT
|
|
517
|
-
*
|
|
518
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_SLOT = -503;
|
|
519
|
-
*/
|
|
520
|
-
TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_SLOT = -503,
|
|
521
|
-
/**
|
|
522
|
-
* TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_ACCOUNT_OWNER
|
|
523
|
-
*
|
|
524
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_ACCOUNT_OWNER = -502;
|
|
525
|
-
*/
|
|
526
|
-
TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_ACCOUNT_OWNER = -502,
|
|
527
|
-
/**
|
|
528
|
-
* TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_OWNER
|
|
529
|
-
*
|
|
530
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_OWNER = -501;
|
|
531
|
-
*/
|
|
532
|
-
TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_OWNER = -501,
|
|
533
|
-
/**
|
|
534
|
-
* TN_RUNTIME_TXN_ERR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_META_DATA_SZ
|
|
535
|
-
*
|
|
536
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_META_DATA_SZ = -500;
|
|
537
|
-
*/
|
|
538
|
-
TRANSACTION_VM_ERROR_INVALID_FEE_PAYER_STATE_PROOF_ACCOUNT_META_DATA_SZ = -500,
|
|
539
|
-
/**
|
|
540
|
-
* TN_RUNTIME_TXN_ERR_VM_FAILED
|
|
541
|
-
*
|
|
542
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_VM_FAILED = -767;
|
|
543
|
-
*/
|
|
544
|
-
TRANSACTION_VM_ERROR_VM_FAILED = -767,
|
|
545
|
-
/**
|
|
546
|
-
* TN_RUNTIME_TXN_ERR_INVALID_PROGRAM_ACCOUNT
|
|
547
|
-
*
|
|
548
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_INVALID_PROGRAM_ACCOUNT = -766;
|
|
549
|
-
*/
|
|
550
|
-
TRANSACTION_VM_ERROR_INVALID_PROGRAM_ACCOUNT = -766,
|
|
551
|
-
/**
|
|
552
|
-
* TN_RUNTIME_TXN_ERR_VM_REVERT
|
|
553
|
-
*
|
|
554
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_VM_REVERT = -765;
|
|
555
|
-
*/
|
|
556
|
-
TRANSACTION_VM_ERROR_VM_REVERT = -765,
|
|
557
|
-
/**
|
|
558
|
-
* TN_RUNTIME_TXN_ERR_CU_EXHAUSTED
|
|
559
|
-
*
|
|
560
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_CU_EXHAUSTED = -764;
|
|
561
|
-
*/
|
|
562
|
-
TRANSACTION_VM_ERROR_CU_EXHAUSTED = -764,
|
|
563
|
-
/**
|
|
564
|
-
* TN_RUNTIME_TXN_ERR_SU_EXHAUSTED
|
|
565
|
-
*
|
|
566
|
-
* @generated from enum value: TRANSACTION_VM_ERROR_SU_EXHAUSTED = -763;
|
|
567
|
-
*/
|
|
568
|
-
TRANSACTION_VM_ERROR_SU_EXHAUSTED = -763
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* Filter represents a CEL-based expression applied to query or stream results.
|
|
573
|
-
*
|
|
574
|
-
* @generated from message thru.common.v1.Filter
|
|
575
|
-
*/
|
|
576
|
-
type Filter$1 = Message<"thru.common.v1.Filter"> & {
|
|
577
|
-
/**
|
|
578
|
-
* CEL expression applied server-side. Empty expressions are treated as no-op.
|
|
579
|
-
*
|
|
580
|
-
* @generated from field: optional string expression = 1;
|
|
581
|
-
*/
|
|
582
|
-
expression?: string;
|
|
583
|
-
/**
|
|
584
|
-
* Named parameter bindings for expression parameterization.
|
|
585
|
-
*
|
|
586
|
-
* @generated from field: map<string, thru.common.v1.FilterParamValue> params = 2;
|
|
587
|
-
*/
|
|
588
|
-
params: {
|
|
589
|
-
[key: string]: FilterParamValue$1;
|
|
590
|
-
};
|
|
591
|
-
};
|
|
592
|
-
/**
|
|
593
|
-
* Describes the message thru.common.v1.Filter.
|
|
594
|
-
* Use `create(FilterSchema)` to create a new message.
|
|
595
|
-
*/
|
|
596
|
-
declare const FilterSchema: GenMessage<Filter$1>;
|
|
597
|
-
/**
|
|
598
|
-
* FilterParamValue carries strongly-typed CEL parameter bindings.
|
|
599
|
-
*
|
|
600
|
-
* @generated from message thru.common.v1.FilterParamValue
|
|
601
|
-
*/
|
|
602
|
-
type FilterParamValue$1 = Message<"thru.common.v1.FilterParamValue"> & {
|
|
603
|
-
/**
|
|
604
|
-
* @generated from oneof thru.common.v1.FilterParamValue.kind
|
|
605
|
-
*/
|
|
606
|
-
kind: {
|
|
607
|
-
/**
|
|
608
|
-
* @generated from field: string string_value = 1;
|
|
609
|
-
*/
|
|
610
|
-
value: string;
|
|
611
|
-
case: "stringValue";
|
|
612
|
-
} | {
|
|
613
|
-
/**
|
|
614
|
-
* @generated from field: bytes bytes_value = 2;
|
|
615
|
-
*/
|
|
616
|
-
value: Uint8Array;
|
|
617
|
-
case: "bytesValue";
|
|
618
|
-
} | {
|
|
619
|
-
/**
|
|
620
|
-
* @generated from field: bool bool_value = 3;
|
|
621
|
-
*/
|
|
622
|
-
value: boolean;
|
|
623
|
-
case: "boolValue";
|
|
624
|
-
} | {
|
|
625
|
-
/**
|
|
626
|
-
* @generated from field: sint64 int_value = 4;
|
|
627
|
-
*/
|
|
628
|
-
value: bigint;
|
|
629
|
-
case: "intValue";
|
|
630
|
-
} | {
|
|
631
|
-
/**
|
|
632
|
-
* @generated from field: uint64 uint_value = 5;
|
|
633
|
-
*/
|
|
634
|
-
value: bigint;
|
|
635
|
-
case: "uintValue";
|
|
636
|
-
} | {
|
|
637
|
-
/**
|
|
638
|
-
* @generated from field: double double_value = 6;
|
|
639
|
-
*/
|
|
640
|
-
value: number;
|
|
641
|
-
case: "doubleValue";
|
|
642
|
-
} | {
|
|
643
|
-
/**
|
|
644
|
-
* @generated from field: thru.common.v1.Pubkey pubkey_value = 7;
|
|
645
|
-
*/
|
|
646
|
-
value: Pubkey$1;
|
|
647
|
-
case: "pubkeyValue";
|
|
648
|
-
} | {
|
|
649
|
-
/**
|
|
650
|
-
* @generated from field: thru.common.v1.Signature signature_value = 8;
|
|
651
|
-
*/
|
|
652
|
-
value: Signature$1;
|
|
653
|
-
case: "signatureValue";
|
|
654
|
-
} | {
|
|
655
|
-
/**
|
|
656
|
-
* @generated from field: thru.common.v1.TaPubkey ta_pubkey_value = 9;
|
|
657
|
-
*/
|
|
658
|
-
value: TaPubkey;
|
|
659
|
-
case: "taPubkeyValue";
|
|
660
|
-
} | {
|
|
661
|
-
/**
|
|
662
|
-
* @generated from field: thru.common.v1.TsSignature ts_signature_value = 10;
|
|
663
|
-
*/
|
|
664
|
-
value: TsSignature;
|
|
665
|
-
case: "tsSignatureValue";
|
|
666
|
-
} | {
|
|
667
|
-
case: undefined;
|
|
668
|
-
value?: undefined;
|
|
669
|
-
};
|
|
670
|
-
};
|
|
671
|
-
/**
|
|
672
|
-
* Describes the message thru.common.v1.FilterParamValue.
|
|
673
|
-
* Use `create(FilterParamValueSchema)` to create a new message.
|
|
674
|
-
*/
|
|
675
|
-
declare const FilterParamValueSchema: GenMessage<FilterParamValue$1>;
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* AccountFlags enumerates boolean account capability flags.
|
|
679
|
-
*
|
|
680
|
-
* @generated from message thru.core.v1.AccountFlags
|
|
681
|
-
*/
|
|
682
|
-
type AccountFlags$1 = Message<"thru.core.v1.AccountFlags"> & {
|
|
683
|
-
/**
|
|
684
|
-
* @generated from field: bool is_program = 1;
|
|
685
|
-
*/
|
|
686
|
-
isProgram: boolean;
|
|
687
|
-
/**
|
|
688
|
-
* @generated from field: bool is_privileged = 2;
|
|
689
|
-
*/
|
|
690
|
-
isPrivileged: boolean;
|
|
691
|
-
/**
|
|
692
|
-
* @generated from field: bool is_uncompressable = 3;
|
|
693
|
-
*/
|
|
694
|
-
isUncompressable: boolean;
|
|
695
|
-
/**
|
|
696
|
-
* @generated from field: bool is_ephemeral = 4;
|
|
697
|
-
*/
|
|
698
|
-
isEphemeral: boolean;
|
|
699
|
-
/**
|
|
700
|
-
* @generated from field: bool is_deleted = 5;
|
|
701
|
-
*/
|
|
702
|
-
isDeleted: boolean;
|
|
703
|
-
/**
|
|
704
|
-
* @generated from field: bool is_new = 6;
|
|
705
|
-
*/
|
|
706
|
-
isNew: boolean;
|
|
707
|
-
/**
|
|
708
|
-
* @generated from field: bool is_compressed = 7;
|
|
709
|
-
*/
|
|
710
|
-
isCompressed: boolean;
|
|
711
|
-
};
|
|
712
|
-
/**
|
|
713
|
-
* AccountMeta captures metadata associated with an account.
|
|
714
|
-
*
|
|
715
|
-
* @generated from message thru.core.v1.AccountMeta
|
|
716
|
-
*/
|
|
717
|
-
type AccountMeta$1 = Message<"thru.core.v1.AccountMeta"> & {
|
|
718
|
-
/**
|
|
719
|
-
* @generated from field: uint32 version = 1;
|
|
720
|
-
*/
|
|
721
|
-
version: number;
|
|
722
|
-
/**
|
|
723
|
-
* @generated from field: thru.core.v1.AccountFlags flags = 2;
|
|
724
|
-
*/
|
|
725
|
-
flags?: AccountFlags$1;
|
|
726
|
-
/**
|
|
727
|
-
* @generated from field: uint32 data_size = 3;
|
|
728
|
-
*/
|
|
729
|
-
dataSize: number;
|
|
730
|
-
/**
|
|
731
|
-
* Account sequence number
|
|
732
|
-
*
|
|
733
|
-
* @generated from field: uint64 seq = 4;
|
|
734
|
-
*/
|
|
735
|
-
seq: bigint;
|
|
736
|
-
/**
|
|
737
|
-
* @generated from field: thru.common.v1.Pubkey owner = 5;
|
|
738
|
-
*/
|
|
739
|
-
owner?: Pubkey$1;
|
|
740
|
-
/**
|
|
741
|
-
* @generated from field: uint64 balance = 6;
|
|
742
|
-
*/
|
|
743
|
-
balance: bigint;
|
|
744
|
-
/**
|
|
745
|
-
* @generated from field: uint64 nonce = 7;
|
|
746
|
-
*/
|
|
747
|
-
nonce: bigint;
|
|
748
|
-
};
|
|
749
|
-
/**
|
|
750
|
-
* AccountData contains account data payloads.
|
|
751
|
-
*
|
|
752
|
-
* @generated from message thru.core.v1.AccountData
|
|
753
|
-
*/
|
|
754
|
-
type AccountData$1 = Message<"thru.core.v1.AccountData"> & {
|
|
755
|
-
/**
|
|
756
|
-
* @generated from field: optional bytes data = 1;
|
|
757
|
-
*/
|
|
758
|
-
data?: Uint8Array;
|
|
759
|
-
/**
|
|
760
|
-
* @generated from field: optional bool compressed = 2;
|
|
761
|
-
*/
|
|
762
|
-
compressed?: boolean;
|
|
763
|
-
/**
|
|
764
|
-
* @generated from field: optional string compression_algorithm = 3;
|
|
765
|
-
*/
|
|
766
|
-
compressionAlgorithm?: string;
|
|
767
|
-
};
|
|
768
|
-
/**
|
|
769
|
-
* DataSlice describes a contiguous range of account data to return.
|
|
770
|
-
*
|
|
771
|
-
* @generated from message thru.core.v1.DataSlice
|
|
772
|
-
*/
|
|
773
|
-
type DataSlice = Message<"thru.core.v1.DataSlice"> & {
|
|
774
|
-
/**
|
|
775
|
-
* @generated from field: uint32 offset = 1;
|
|
776
|
-
*/
|
|
777
|
-
offset: number;
|
|
778
|
-
/**
|
|
779
|
-
* @generated from field: uint32 length = 2;
|
|
780
|
-
*/
|
|
781
|
-
length: number;
|
|
782
|
-
};
|
|
783
|
-
/**
|
|
784
|
-
* VersionContextMetadata captures context for a returned account state.
|
|
785
|
-
*
|
|
786
|
-
* @generated from message thru.core.v1.VersionContextMetadata
|
|
787
|
-
*/
|
|
788
|
-
type VersionContextMetadata = Message<"thru.core.v1.VersionContextMetadata"> & {
|
|
789
|
-
/**
|
|
790
|
-
* @generated from field: optional uint64 slot = 1;
|
|
791
|
-
*/
|
|
792
|
-
slot?: bigint;
|
|
793
|
-
/**
|
|
794
|
-
* @generated from field: optional google.protobuf.Timestamp block_timestamp = 2;
|
|
795
|
-
*/
|
|
796
|
-
blockTimestamp?: Timestamp;
|
|
797
|
-
};
|
|
798
|
-
/**
|
|
799
|
-
* Account models a fully decoded account resource.
|
|
800
|
-
*
|
|
801
|
-
* @generated from message thru.core.v1.Account
|
|
802
|
-
*/
|
|
803
|
-
type Account$1 = Message<"thru.core.v1.Account"> & {
|
|
804
|
-
/**
|
|
805
|
-
* @generated from field: thru.common.v1.Pubkey address = 1;
|
|
806
|
-
*/
|
|
807
|
-
address?: Pubkey$1;
|
|
808
|
-
/**
|
|
809
|
-
* @generated from field: optional thru.core.v1.AccountMeta meta = 2;
|
|
810
|
-
*/
|
|
811
|
-
meta?: AccountMeta$1;
|
|
812
|
-
/**
|
|
813
|
-
* @generated from field: optional thru.core.v1.AccountData data = 3;
|
|
814
|
-
*/
|
|
815
|
-
data?: AccountData$1;
|
|
816
|
-
/**
|
|
817
|
-
* @generated from field: optional thru.core.v1.VersionContextMetadata version_context = 4;
|
|
818
|
-
*/
|
|
819
|
-
versionContext?: VersionContextMetadata;
|
|
820
|
-
/**
|
|
821
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus consensus_status = 5;
|
|
822
|
-
*/
|
|
823
|
-
consensusStatus?: ConsensusStatus;
|
|
824
|
-
};
|
|
825
|
-
/**
|
|
826
|
-
* RawAccount captures raw serialized account bytes.
|
|
827
|
-
*
|
|
828
|
-
* @generated from message thru.core.v1.RawAccount
|
|
829
|
-
*/
|
|
830
|
-
type RawAccount = Message<"thru.core.v1.RawAccount"> & {
|
|
831
|
-
/**
|
|
832
|
-
* @generated from field: thru.common.v1.Pubkey address = 1;
|
|
833
|
-
*/
|
|
834
|
-
address?: Pubkey$1;
|
|
835
|
-
/**
|
|
836
|
-
* @generated from field: bytes raw_meta = 2;
|
|
837
|
-
*/
|
|
838
|
-
rawMeta: Uint8Array;
|
|
839
|
-
/**
|
|
840
|
-
* @generated from field: optional bytes raw_data = 3;
|
|
841
|
-
*/
|
|
842
|
-
rawData?: Uint8Array;
|
|
843
|
-
/**
|
|
844
|
-
* @generated from field: optional thru.core.v1.VersionContextMetadata version_context = 4;
|
|
845
|
-
*/
|
|
846
|
-
versionContext?: VersionContextMetadata;
|
|
847
|
-
};
|
|
848
|
-
/**
|
|
849
|
-
* AccountView controls which sections of account resources are returned.
|
|
850
|
-
*
|
|
851
|
-
* @generated from enum thru.core.v1.AccountView
|
|
852
|
-
*/
|
|
853
|
-
declare enum AccountView {
|
|
854
|
-
/**
|
|
855
|
-
* ACCOUNT_VIEW_UNSPECIFIED uses service defaults.
|
|
856
|
-
*
|
|
857
|
-
* @generated from enum value: ACCOUNT_VIEW_UNSPECIFIED = 0;
|
|
858
|
-
*/
|
|
859
|
-
UNSPECIFIED = 0,
|
|
860
|
-
/**
|
|
861
|
-
* ACCOUNT_VIEW_PUBKEY_ONLY returns only the account address.
|
|
862
|
-
*
|
|
863
|
-
* @generated from enum value: ACCOUNT_VIEW_PUBKEY_ONLY = 1;
|
|
864
|
-
*/
|
|
865
|
-
PUBKEY_ONLY = 1,
|
|
866
|
-
/**
|
|
867
|
-
* ACCOUNT_VIEW_META_ONLY returns only account metadata.
|
|
868
|
-
*
|
|
869
|
-
* @generated from enum value: ACCOUNT_VIEW_META_ONLY = 2;
|
|
870
|
-
*/
|
|
871
|
-
META_ONLY = 2,
|
|
872
|
-
/**
|
|
873
|
-
* ACCOUNT_VIEW_DATA_ONLY returns only account data.
|
|
874
|
-
*
|
|
875
|
-
* @generated from enum value: ACCOUNT_VIEW_DATA_ONLY = 3;
|
|
876
|
-
*/
|
|
877
|
-
DATA_ONLY = 3,
|
|
878
|
-
/**
|
|
879
|
-
* ACCOUNT_VIEW_FULL returns address, metadata, and data.
|
|
880
|
-
*
|
|
881
|
-
* @generated from enum value: ACCOUNT_VIEW_FULL = 4;
|
|
882
|
-
*/
|
|
883
|
-
FULL = 4
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
/**
|
|
887
|
-
* BlockHash represents a 32-byte hash for block identifiers.
|
|
888
|
-
*
|
|
889
|
-
* @generated from message thru.core.v1.BlockHash
|
|
890
|
-
*/
|
|
891
|
-
type BlockHash = Message<"thru.core.v1.BlockHash"> & {
|
|
892
|
-
/**
|
|
893
|
-
* 32-byte block hash buffer.
|
|
894
|
-
*
|
|
895
|
-
* @generated from field: bytes value = 1;
|
|
896
|
-
*/
|
|
897
|
-
value: Uint8Array;
|
|
898
|
-
};
|
|
899
|
-
|
|
900
|
-
/**
|
|
901
|
-
* BlockHeader describes metadata about a block.
|
|
902
|
-
*
|
|
903
|
-
* @generated from message thru.core.v1.BlockHeader
|
|
904
|
-
*/
|
|
905
|
-
type BlockHeader$1 = Message<"thru.core.v1.BlockHeader"> & {
|
|
906
|
-
/**
|
|
907
|
-
* @generated from field: uint64 slot = 1;
|
|
908
|
-
*/
|
|
909
|
-
slot: bigint;
|
|
910
|
-
/**
|
|
911
|
-
* @generated from field: thru.core.v1.BlockHash block_hash = 2;
|
|
912
|
-
*/
|
|
913
|
-
blockHash?: BlockHash;
|
|
914
|
-
/**
|
|
915
|
-
* @generated from field: thru.common.v1.Signature header_signature = 3;
|
|
916
|
-
*/
|
|
917
|
-
headerSignature?: Signature$1;
|
|
918
|
-
/**
|
|
919
|
-
* @generated from field: uint32 version = 4;
|
|
920
|
-
*/
|
|
921
|
-
version: number;
|
|
922
|
-
/**
|
|
923
|
-
* @generated from field: thru.common.v1.Pubkey producer = 5;
|
|
924
|
-
*/
|
|
925
|
-
producer?: Pubkey$1;
|
|
926
|
-
/**
|
|
927
|
-
* @generated from field: google.protobuf.Timestamp expiry_timestamp = 6;
|
|
928
|
-
*/
|
|
929
|
-
expiryTimestamp?: Timestamp;
|
|
930
|
-
/**
|
|
931
|
-
* @generated from field: uint64 start_slot = 7;
|
|
932
|
-
*/
|
|
933
|
-
startSlot: bigint;
|
|
934
|
-
/**
|
|
935
|
-
* @generated from field: uint32 expiry_after = 8;
|
|
936
|
-
*/
|
|
937
|
-
expiryAfter: number;
|
|
938
|
-
/**
|
|
939
|
-
* @generated from field: uint32 max_block_size = 9;
|
|
940
|
-
*/
|
|
941
|
-
maxBlockSize: number;
|
|
942
|
-
/**
|
|
943
|
-
* @generated from field: uint64 max_compute_units = 10;
|
|
944
|
-
*/
|
|
945
|
-
maxComputeUnits: bigint;
|
|
946
|
-
/**
|
|
947
|
-
* @generated from field: uint32 max_state_units = 11;
|
|
948
|
-
*/
|
|
949
|
-
maxStateUnits: number;
|
|
950
|
-
/**
|
|
951
|
-
* @generated from field: uint64 bond_amount_lock_up = 12;
|
|
952
|
-
*/
|
|
953
|
-
bondAmountLockUp: bigint;
|
|
954
|
-
/**
|
|
955
|
-
* @generated from field: google.protobuf.Timestamp block_time = 13;
|
|
956
|
-
*/
|
|
957
|
-
blockTime?: Timestamp;
|
|
958
|
-
/**
|
|
959
|
-
* @generated from field: uint64 weight_slot = 14;
|
|
960
|
-
*/
|
|
961
|
-
weightSlot: bigint;
|
|
962
|
-
};
|
|
963
|
-
/**
|
|
964
|
-
* BlockFooter captures execution result metadata for a block.
|
|
965
|
-
*
|
|
966
|
-
* @generated from message thru.core.v1.BlockFooter
|
|
967
|
-
*/
|
|
968
|
-
type BlockFooter$1 = Message<"thru.core.v1.BlockFooter"> & {
|
|
969
|
-
/**
|
|
970
|
-
* @generated from field: thru.common.v1.Signature signature = 1;
|
|
971
|
-
*/
|
|
972
|
-
signature?: Signature$1;
|
|
973
|
-
/**
|
|
974
|
-
* @generated from field: thru.core.v1.ExecutionStatus status = 2;
|
|
975
|
-
*/
|
|
976
|
-
status: ExecutionStatus;
|
|
977
|
-
/**
|
|
978
|
-
* @generated from field: uint64 consumed_compute_units = 3;
|
|
979
|
-
*/
|
|
980
|
-
consumedComputeUnits: bigint;
|
|
981
|
-
/**
|
|
982
|
-
* @generated from field: uint32 consumed_state_units = 4;
|
|
983
|
-
*/
|
|
984
|
-
consumedStateUnits: number;
|
|
985
|
-
/**
|
|
986
|
-
* @generated from field: uint64 attestor_payment = 5;
|
|
987
|
-
*/
|
|
988
|
-
attestorPayment: bigint;
|
|
989
|
-
};
|
|
990
|
-
/**
|
|
991
|
-
* Block represents a fully decoded block resource.
|
|
992
|
-
*
|
|
993
|
-
* @generated from message thru.core.v1.Block
|
|
994
|
-
*/
|
|
995
|
-
type Block$1 = Message<"thru.core.v1.Block"> & {
|
|
996
|
-
/**
|
|
997
|
-
* @generated from field: thru.core.v1.BlockHeader header = 1;
|
|
998
|
-
*/
|
|
999
|
-
header?: BlockHeader$1;
|
|
1000
|
-
/**
|
|
1001
|
-
* @generated from field: optional thru.core.v1.BlockFooter footer = 2;
|
|
1002
|
-
*/
|
|
1003
|
-
footer?: BlockFooter$1;
|
|
1004
|
-
/**
|
|
1005
|
-
* @generated from field: optional bytes body = 3;
|
|
1006
|
-
*/
|
|
1007
|
-
body?: Uint8Array;
|
|
1008
|
-
/**
|
|
1009
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus consensus_status = 4;
|
|
1010
|
-
*/
|
|
1011
|
-
consensusStatus?: ConsensusStatus;
|
|
1012
|
-
};
|
|
1013
|
-
/**
|
|
1014
|
-
* RawBlock captures raw block bytes for direct access.
|
|
1015
|
-
*
|
|
1016
|
-
* @generated from message thru.core.v1.RawBlock
|
|
1017
|
-
*/
|
|
1018
|
-
type RawBlock = Message<"thru.core.v1.RawBlock"> & {
|
|
1019
|
-
/**
|
|
1020
|
-
* @generated from field: uint64 slot = 1;
|
|
1021
|
-
*/
|
|
1022
|
-
slot: bigint;
|
|
1023
|
-
/**
|
|
1024
|
-
* @generated from field: bytes raw_block = 2;
|
|
1025
|
-
*/
|
|
1026
|
-
rawBlock: Uint8Array;
|
|
1027
|
-
};
|
|
1028
|
-
/**
|
|
1029
|
-
* BlockView controls how much of a block resource is returned.
|
|
1030
|
-
*
|
|
1031
|
-
* @generated from enum thru.core.v1.BlockView
|
|
1032
|
-
*/
|
|
1033
|
-
declare enum BlockView {
|
|
1034
|
-
/**
|
|
1035
|
-
* @generated from enum value: BLOCK_VIEW_UNSPECIFIED = 0;
|
|
1036
|
-
*/
|
|
1037
|
-
UNSPECIFIED = 0,
|
|
1038
|
-
/**
|
|
1039
|
-
* @generated from enum value: BLOCK_VIEW_HEADER_ONLY = 1;
|
|
1040
|
-
*/
|
|
1041
|
-
HEADER_ONLY = 1,
|
|
1042
|
-
/**
|
|
1043
|
-
* @generated from enum value: BLOCK_VIEW_HEADER_AND_FOOTER = 2;
|
|
1044
|
-
*/
|
|
1045
|
-
HEADER_AND_FOOTER = 2,
|
|
1046
|
-
/**
|
|
1047
|
-
* @generated from enum value: BLOCK_VIEW_BODY_ONLY = 3;
|
|
1048
|
-
*/
|
|
1049
|
-
BODY_ONLY = 3,
|
|
1050
|
-
/**
|
|
1051
|
-
* @generated from enum value: BLOCK_VIEW_FULL = 4;
|
|
1052
|
-
*/
|
|
1053
|
-
FULL = 4
|
|
1054
|
-
}
|
|
1055
|
-
/**
|
|
1056
|
-
* ExecutionStatus enumerates block execution results.
|
|
1057
|
-
*
|
|
1058
|
-
* @generated from enum thru.core.v1.ExecutionStatus
|
|
1059
|
-
*/
|
|
1060
|
-
declare enum ExecutionStatus {
|
|
1061
|
-
/**
|
|
1062
|
-
* @generated from enum value: EXECUTION_STATUS_UNSPECIFIED = 0;
|
|
1063
|
-
*/
|
|
1064
|
-
UNSPECIFIED = 0,
|
|
1065
|
-
/**
|
|
1066
|
-
* @generated from enum value: EXECUTION_STATUS_PENDING = 1;
|
|
1067
|
-
*/
|
|
1068
|
-
PENDING = 1,
|
|
1069
|
-
/**
|
|
1070
|
-
* @generated from enum value: EXECUTION_STATUS_EXECUTED = 2;
|
|
1071
|
-
*/
|
|
1072
|
-
EXECUTED = 2,
|
|
1073
|
-
/**
|
|
1074
|
-
* @generated from enum value: EXECUTION_STATUS_FAILED = 3;
|
|
1075
|
-
*/
|
|
1076
|
-
FAILED = 3
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
/**
|
|
1080
|
-
* StreamEventsResponse delivers event payloads.
|
|
1081
|
-
*
|
|
1082
|
-
* @generated from message thru.services.v1.StreamEventsResponse
|
|
1083
|
-
*/
|
|
1084
|
-
type StreamEventsResponse = Message<"thru.services.v1.StreamEventsResponse"> & {
|
|
1085
|
-
/**
|
|
1086
|
-
* @generated from field: string event_id = 1;
|
|
1087
|
-
*/
|
|
1088
|
-
eventId: string;
|
|
1089
|
-
/**
|
|
1090
|
-
* @generated from field: optional bytes payload = 2;
|
|
1091
|
-
*/
|
|
1092
|
-
payload?: Uint8Array;
|
|
1093
|
-
/**
|
|
1094
|
-
* @generated from field: optional google.protobuf.Timestamp timestamp = 3;
|
|
1095
|
-
*/
|
|
1096
|
-
timestamp?: Timestamp;
|
|
1097
|
-
/**
|
|
1098
|
-
* @generated from field: thru.common.v1.Pubkey program = 4;
|
|
1099
|
-
*/
|
|
1100
|
-
program?: Pubkey$1;
|
|
1101
|
-
/**
|
|
1102
|
-
* @generated from field: uint32 call_idx = 5;
|
|
1103
|
-
*/
|
|
1104
|
-
callIdx: number;
|
|
1105
|
-
/**
|
|
1106
|
-
* @generated from field: thru.common.v1.Signature signature = 6;
|
|
1107
|
-
*/
|
|
1108
|
-
signature?: Signature$1;
|
|
1109
|
-
/**
|
|
1110
|
-
* @generated from field: uint64 slot = 7;
|
|
1111
|
-
*/
|
|
1112
|
-
slot: bigint;
|
|
1113
|
-
};
|
|
1114
|
-
|
|
1115
|
-
type PubkeyInput = Uint8Array | string | Pubkey;
|
|
1116
|
-
declare class Pubkey {
|
|
1117
|
-
private readonly bytes;
|
|
1118
|
-
private constructor();
|
|
1119
|
-
static from(value: PubkeyInput): Pubkey;
|
|
1120
|
-
static isThruFmt(value: string): boolean;
|
|
1121
|
-
toBytes(): Uint8Array;
|
|
1122
|
-
toBytesUnsafe(): Uint8Array;
|
|
1123
|
-
toThruFmt(): string;
|
|
1124
|
-
toHex(): string;
|
|
1125
|
-
equals(other: PubkeyInput): boolean;
|
|
1126
|
-
toProtoPubkey(): Pubkey$1;
|
|
1127
|
-
toProtoTaPubkey(): TaPubkey;
|
|
1128
|
-
static fromProtoPubkey(proto?: Pubkey$1): Pubkey;
|
|
1129
|
-
static fromProtoTaPubkey(proto?: TaPubkey): Pubkey;
|
|
1130
|
-
private static bytesFromString;
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
type SignatureInput = Uint8Array | string | Signature;
|
|
1134
|
-
declare class Signature {
|
|
1135
|
-
private readonly bytes;
|
|
1136
|
-
private constructor();
|
|
1137
|
-
static from(value: SignatureInput): Signature;
|
|
1138
|
-
static fromProto(proto?: Signature$1): Signature;
|
|
1139
|
-
static isThruFmt(value: string): boolean;
|
|
1140
|
-
toBytes(): Uint8Array;
|
|
1141
|
-
toBytesUnsafe(): Uint8Array;
|
|
1142
|
-
toThruFmt(): string;
|
|
1143
|
-
toHex(): string;
|
|
1144
|
-
equals(other: SignatureInput): boolean;
|
|
1145
|
-
toProtoSignature(): Signature$1;
|
|
1146
|
-
toProtoTsSignature(): TsSignature;
|
|
1147
|
-
static fromProtoTsSignature(proto?: TsSignature): Signature;
|
|
1148
|
-
static fromProtoSignature(proto?: Signature$1): Signature;
|
|
1149
|
-
private static bytesFromString;
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
interface ResourceLimits {
|
|
1153
|
-
computeUnits?: number;
|
|
1154
|
-
stateUnits?: number;
|
|
1155
|
-
memoryUnits?: number;
|
|
1156
|
-
}
|
|
1157
|
-
interface OptionalProofs {
|
|
1158
|
-
feePayerStateProof?: Uint8Array;
|
|
1159
|
-
feePayerAccountMetaRaw?: Uint8Array;
|
|
1160
|
-
}
|
|
1161
|
-
interface TransactionHeaderInput extends ResourceLimits {
|
|
1162
|
-
fee: bigint;
|
|
1163
|
-
nonce: bigint;
|
|
1164
|
-
startSlot: bigint;
|
|
1165
|
-
expiryAfter?: number;
|
|
1166
|
-
flags?: number;
|
|
1167
|
-
}
|
|
1168
|
-
interface TransactionAccountsInput {
|
|
1169
|
-
readWriteAccounts?: PubkeyInput[];
|
|
1170
|
-
readOnlyAccounts?: PubkeyInput[];
|
|
1171
|
-
}
|
|
1172
|
-
/**
|
|
1173
|
-
* Context provided to instruction data functions.
|
|
1174
|
-
* Contains all transaction accounts in their final sorted order and helper functions
|
|
1175
|
-
* for looking up account indexes.
|
|
1176
|
-
*/
|
|
1177
|
-
interface InstructionContext {
|
|
1178
|
-
/** All accounts in final transaction order: [feePayer, program, ...readWrite, ...readOnly] */
|
|
1179
|
-
accounts: Pubkey[];
|
|
1180
|
-
/** Get the index of an account by its public key. Throws if account is not found in transaction. */
|
|
1181
|
-
getAccountIndex: (pubkey: PubkeyInput) => number;
|
|
1182
|
-
}
|
|
1183
|
-
interface FeePayerInput {
|
|
1184
|
-
publicKey: PubkeyInput;
|
|
1185
|
-
privateKey?: Uint8Array;
|
|
1186
|
-
}
|
|
1187
|
-
interface BuildTransactionParams {
|
|
1188
|
-
feePayer: FeePayerInput;
|
|
1189
|
-
program: PubkeyInput;
|
|
1190
|
-
header: TransactionHeaderInput;
|
|
1191
|
-
accounts?: TransactionAccountsInput;
|
|
1192
|
-
instructionData?: Uint8Array | string;
|
|
1193
|
-
proofs?: OptionalProofs;
|
|
1194
|
-
}
|
|
1195
|
-
interface BuiltTransactionResult {
|
|
1196
|
-
transaction: TransactionLike;
|
|
1197
|
-
}
|
|
1198
|
-
interface SignedTransactionResult extends BuiltTransactionResult {
|
|
1199
|
-
signature: Signature;
|
|
1200
|
-
rawTransaction: Uint8Array;
|
|
1201
|
-
}
|
|
1202
|
-
interface TransactionLike {
|
|
1203
|
-
toWire(): Uint8Array;
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
interface TransactionExecutionEvent {
|
|
1207
|
-
eventId: string;
|
|
1208
|
-
callIdx: number;
|
|
1209
|
-
programIdx: number;
|
|
1210
|
-
program?: Pubkey;
|
|
1211
|
-
payload: Uint8Array;
|
|
1212
|
-
}
|
|
1213
|
-
interface TransactionExecutionResultData {
|
|
1214
|
-
consumedComputeUnits: number;
|
|
1215
|
-
consumedMemoryUnits: number;
|
|
1216
|
-
consumedStateUnits: number;
|
|
1217
|
-
userErrorCode: bigint;
|
|
1218
|
-
vmError: TransactionVmError;
|
|
1219
|
-
executionResult: bigint;
|
|
1220
|
-
pagesUsed: number;
|
|
1221
|
-
eventsCount: number;
|
|
1222
|
-
eventsSize: number;
|
|
1223
|
-
readwriteAccounts: Pubkey[];
|
|
1224
|
-
readonlyAccounts: Pubkey[];
|
|
1225
|
-
events?: TransactionExecutionEvent[];
|
|
1226
|
-
}
|
|
1227
|
-
declare class Transaction {
|
|
1228
|
-
readonly version: number;
|
|
1229
|
-
readonly feePayer: Pubkey;
|
|
1230
|
-
readonly program: Pubkey;
|
|
1231
|
-
readonly fee: bigint;
|
|
1232
|
-
readonly nonce: bigint;
|
|
1233
|
-
readonly startSlot: bigint;
|
|
1234
|
-
readonly expiryAfter: number;
|
|
1235
|
-
readonly requestedComputeUnits: number;
|
|
1236
|
-
readonly requestedStateUnits: number;
|
|
1237
|
-
readonly requestedMemoryUnits: number;
|
|
1238
|
-
readonly flags: number;
|
|
1239
|
-
readonly readWriteAccounts: Pubkey[];
|
|
1240
|
-
readonly readOnlyAccounts: Pubkey[];
|
|
1241
|
-
readonly instructionData?: Uint8Array;
|
|
1242
|
-
readonly instructionDataSize?: number;
|
|
1243
|
-
readonly feePayerStateProof?: Uint8Array;
|
|
1244
|
-
readonly feePayerAccountMetaRaw?: Uint8Array;
|
|
1245
|
-
executionResult?: TransactionExecutionResultData;
|
|
1246
|
-
slot?: bigint;
|
|
1247
|
-
blockOffset?: number;
|
|
1248
|
-
private signature?;
|
|
1249
|
-
constructor(params: {
|
|
1250
|
-
version?: number;
|
|
1251
|
-
feePayer: PubkeyInput;
|
|
1252
|
-
program: PubkeyInput;
|
|
1253
|
-
header: TransactionHeaderInput;
|
|
1254
|
-
accounts?: TransactionAccountsInput;
|
|
1255
|
-
instructionData?: Uint8Array;
|
|
1256
|
-
instructionDataSize?: number;
|
|
1257
|
-
proofs?: OptionalProofs;
|
|
1258
|
-
});
|
|
1259
|
-
static fromWire(data: Uint8Array): Transaction;
|
|
1260
|
-
static parseWire(data: Uint8Array, options?: {
|
|
1261
|
-
strict?: boolean;
|
|
1262
|
-
}): {
|
|
1263
|
-
transaction: Transaction;
|
|
1264
|
-
size: number;
|
|
1265
|
-
};
|
|
1266
|
-
static fromProto(proto: Transaction$1): Transaction;
|
|
1267
|
-
getSignature(): Signature | undefined;
|
|
1268
|
-
setSignature(signature: Signature): void;
|
|
1269
|
-
sign(privateKey: Uint8Array): Promise<Signature>;
|
|
1270
|
-
toWireForSigning(): Uint8Array;
|
|
1271
|
-
toWire(): Uint8Array;
|
|
1272
|
-
private createHeader;
|
|
1273
|
-
private buildWirePayload;
|
|
1274
|
-
private static parseBodySections;
|
|
1275
|
-
private static ensureAvailable;
|
|
1276
|
-
private static parseStateProof;
|
|
1277
|
-
static executionResultFromProto(proto: TransactionExecutionResult): TransactionExecutionResultData;
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
type StreamTransactionUpdate = {
|
|
1281
|
-
kind: "partial";
|
|
1282
|
-
signature: Uint8Array;
|
|
1283
|
-
slot?: bigint;
|
|
1284
|
-
executionResult?: ReturnType<typeof Transaction.executionResultFromProto>;
|
|
1285
|
-
} | {
|
|
1286
|
-
kind: "full";
|
|
1287
|
-
transaction: Transaction;
|
|
1288
|
-
};
|
|
1289
|
-
interface TrackTransactionUpdate {
|
|
1290
|
-
signature?: Uint8Array;
|
|
1291
|
-
status: string;
|
|
1292
|
-
statusCode: ConsensusStatus;
|
|
1293
|
-
executionResult?: ReturnType<typeof Transaction.executionResultFromProto>;
|
|
1294
|
-
transaction?: Transaction;
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
/**
|
|
1298
|
-
* PageRequest contains pagination parameters for listing RPCs.
|
|
1299
|
-
*
|
|
1300
|
-
* @generated from message thru.common.v1.PageRequest
|
|
1301
|
-
*/
|
|
1302
|
-
type PageRequest$1 = Message<"thru.common.v1.PageRequest"> & {
|
|
1303
|
-
/**
|
|
1304
|
-
* Maximum number of items to return in a single response.
|
|
1305
|
-
*
|
|
1306
|
-
* @generated from field: optional uint32 page_size = 1;
|
|
1307
|
-
*/
|
|
1308
|
-
pageSize?: number;
|
|
1309
|
-
/**
|
|
1310
|
-
* Token identifying the position to resume from.
|
|
1311
|
-
*
|
|
1312
|
-
* @generated from field: optional string page_token = 2;
|
|
1313
|
-
*/
|
|
1314
|
-
pageToken?: string;
|
|
1315
|
-
/**
|
|
1316
|
-
* Optional ordering specification in "field [asc|desc]" form.
|
|
1317
|
-
*
|
|
1318
|
-
* @generated from field: optional string order_by = 3;
|
|
1319
|
-
*/
|
|
1320
|
-
orderBy?: string;
|
|
1321
|
-
};
|
|
1322
|
-
/**
|
|
1323
|
-
* PageResponse captures pagination metadata returned with list results.
|
|
1324
|
-
*
|
|
1325
|
-
* @generated from message thru.common.v1.PageResponse
|
|
1326
|
-
*/
|
|
1327
|
-
type PageResponse$1 = Message<"thru.common.v1.PageResponse"> & {
|
|
1328
|
-
/**
|
|
1329
|
-
* Token to retrieve the next page of results, if any.
|
|
1330
|
-
*
|
|
1331
|
-
* @generated from field: optional string next_page_token = 1;
|
|
1332
|
-
*/
|
|
1333
|
-
nextPageToken?: string;
|
|
1334
|
-
/**
|
|
1335
|
-
* Total number of items available when known.
|
|
1336
|
-
*
|
|
1337
|
-
* @generated from field: optional uint64 total_size = 2;
|
|
1338
|
-
*/
|
|
1339
|
-
totalSize?: bigint;
|
|
1340
|
-
};
|
|
1341
|
-
|
|
1342
|
-
/**
|
|
1343
|
-
* StateProof returns binary proof data along with context.
|
|
1344
|
-
*
|
|
1345
|
-
* @generated from message thru.core.v1.StateProof
|
|
1346
|
-
*/
|
|
1347
|
-
type StateProof$1 = Message<"thru.core.v1.StateProof"> & {
|
|
1348
|
-
/**
|
|
1349
|
-
* @generated from field: bytes proof = 1;
|
|
1350
|
-
*/
|
|
1351
|
-
proof: Uint8Array;
|
|
1352
|
-
/**
|
|
1353
|
-
* @generated from field: uint64 slot = 2;
|
|
1354
|
-
*/
|
|
1355
|
-
slot: bigint;
|
|
1356
|
-
};
|
|
1357
|
-
/**
|
|
1358
|
-
* StateProofType selects the type of state proof to generate.
|
|
1359
|
-
*
|
|
1360
|
-
* @generated from enum thru.core.v1.StateProofType
|
|
1361
|
-
*/
|
|
1362
|
-
declare enum StateProofType {
|
|
1363
|
-
/**
|
|
1364
|
-
* @generated from enum value: STATE_PROOF_TYPE_UNSPECIFIED = 0;
|
|
1365
|
-
*/
|
|
1366
|
-
UNSPECIFIED = 0,
|
|
1367
|
-
/**
|
|
1368
|
-
* @generated from enum value: STATE_PROOF_TYPE_CREATING = 1;
|
|
1369
|
-
*/
|
|
1370
|
-
CREATING = 1,
|
|
1371
|
-
/**
|
|
1372
|
-
* @generated from enum value: STATE_PROOF_TYPE_UPDATING = 2;
|
|
1373
|
-
*/
|
|
1374
|
-
UPDATING = 2,
|
|
1375
|
-
/**
|
|
1376
|
-
* @generated from enum value: STATE_PROOF_TYPE_EXISTING = 3;
|
|
1377
|
-
*/
|
|
1378
|
-
EXISTING = 3
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
/**
|
|
1382
|
-
* GetVersionResponse returns version information per component.
|
|
1383
|
-
*
|
|
1384
|
-
* @generated from message thru.services.v1.GetVersionResponse
|
|
1385
|
-
*/
|
|
1386
|
-
type GetVersionResponse = Message<"thru.services.v1.GetVersionResponse"> & {
|
|
1387
|
-
/**
|
|
1388
|
-
* @generated from field: map<string, string> versions = 1;
|
|
1389
|
-
*/
|
|
1390
|
-
versions: {
|
|
1391
|
-
[key: string]: string;
|
|
1392
|
-
};
|
|
1393
|
-
};
|
|
1394
|
-
/**
|
|
1395
|
-
* Event represents a transaction event emitted by the chain.
|
|
1396
|
-
*
|
|
1397
|
-
* @generated from message thru.services.v1.Event
|
|
1398
|
-
*/
|
|
1399
|
-
type Event = Message<"thru.services.v1.Event"> & {
|
|
1400
|
-
/**
|
|
1401
|
-
* @generated from field: string event_id = 1;
|
|
1402
|
-
*/
|
|
1403
|
-
eventId: string;
|
|
1404
|
-
/**
|
|
1405
|
-
* @generated from field: thru.common.v1.Signature transaction_signature = 2;
|
|
1406
|
-
*/
|
|
1407
|
-
transactionSignature?: Signature$1;
|
|
1408
|
-
/**
|
|
1409
|
-
* @generated from field: optional thru.common.v1.Pubkey program = 3;
|
|
1410
|
-
*/
|
|
1411
|
-
program?: Pubkey$1;
|
|
1412
|
-
/**
|
|
1413
|
-
* @generated from field: optional bytes payload = 4;
|
|
1414
|
-
*/
|
|
1415
|
-
payload?: Uint8Array;
|
|
1416
|
-
/**
|
|
1417
|
-
* @generated from field: optional uint64 slot = 5;
|
|
1418
|
-
*/
|
|
1419
|
-
slot?: bigint;
|
|
1420
|
-
/**
|
|
1421
|
-
* @generated from field: optional uint32 call_idx = 6;
|
|
1422
|
-
*/
|
|
1423
|
-
callIdx?: number;
|
|
1424
|
-
/**
|
|
1425
|
-
* @generated from field: optional uint32 program_idx = 7;
|
|
1426
|
-
*/
|
|
1427
|
-
programIdx?: number;
|
|
1428
|
-
/**
|
|
1429
|
-
* @generated from field: optional uint32 payload_size = 8;
|
|
1430
|
-
*/
|
|
1431
|
-
payloadSize?: number;
|
|
1432
|
-
/**
|
|
1433
|
-
* @generated from field: optional uint32 block_offset = 9;
|
|
1434
|
-
*/
|
|
1435
|
-
blockOffset?: number;
|
|
1436
|
-
/**
|
|
1437
|
-
* @generated from field: optional google.protobuf.Timestamp timestamp = 10;
|
|
1438
|
-
*/
|
|
1439
|
-
timestamp?: Timestamp;
|
|
1440
|
-
};
|
|
1441
|
-
/**
|
|
1442
|
-
* TransactionStatus captures status metadata for a transaction.
|
|
1443
|
-
*
|
|
1444
|
-
* @generated from message thru.services.v1.TransactionStatus
|
|
1445
|
-
*/
|
|
1446
|
-
type TransactionStatus = Message<"thru.services.v1.TransactionStatus"> & {
|
|
1447
|
-
/**
|
|
1448
|
-
* @generated from field: thru.common.v1.Signature signature = 1;
|
|
1449
|
-
*/
|
|
1450
|
-
signature?: Signature$1;
|
|
1451
|
-
/**
|
|
1452
|
-
* @generated from field: optional thru.common.v1.ConsensusStatus consensus_status = 2;
|
|
1453
|
-
*/
|
|
1454
|
-
consensusStatus?: ConsensusStatus;
|
|
1455
|
-
/**
|
|
1456
|
-
* @generated from field: optional thru.core.v1.TransactionExecutionResult execution_result = 3;
|
|
1457
|
-
*/
|
|
1458
|
-
executionResult?: TransactionExecutionResult;
|
|
1459
|
-
};
|
|
1460
|
-
|
|
1461
|
-
interface TransactionStatusParams {
|
|
1462
|
-
signature: Uint8Array;
|
|
1463
|
-
consensusStatus?: ConsensusStatus;
|
|
1464
|
-
executionResult?: ReturnType<typeof Transaction.executionResultFromProto>;
|
|
1465
|
-
}
|
|
1466
|
-
declare class TransactionStatusSnapshot {
|
|
1467
|
-
readonly signature: Uint8Array;
|
|
1468
|
-
readonly statusCode?: ConsensusStatus;
|
|
1469
|
-
readonly status?: string;
|
|
1470
|
-
readonly executionResult?: ReturnType<typeof Transaction.executionResultFromProto>;
|
|
1471
|
-
constructor(params: TransactionStatusParams);
|
|
1472
|
-
static fromProto(proto: TransactionStatus): TransactionStatusSnapshot;
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
/**
|
|
1476
|
-
* BatchSendTransactionsResponse returns submission results for each transaction.
|
|
1477
|
-
*
|
|
1478
|
-
* @generated from message thru.services.v1.BatchSendTransactionsResponse
|
|
1479
|
-
*/
|
|
1480
|
-
type BatchSendTransactionsResponse = Message<"thru.services.v1.BatchSendTransactionsResponse"> & {
|
|
1481
|
-
/**
|
|
1482
|
-
* Signatures for each transaction (in same order as request).
|
|
1483
|
-
*
|
|
1484
|
-
* @generated from field: repeated thru.common.v1.Signature signatures = 1;
|
|
1485
|
-
*/
|
|
1486
|
-
signatures: Signature$1[];
|
|
1487
|
-
/**
|
|
1488
|
-
* Acceptance status for each transaction (true if accepted, false if not).
|
|
1489
|
-
*
|
|
1490
|
-
* @generated from field: repeated bool accepted = 2;
|
|
1491
|
-
*/
|
|
1492
|
-
accepted: boolean[];
|
|
1493
|
-
};
|
|
1494
|
-
|
|
1495
|
-
type PartialTransportOptions = Partial<GrpcWebTransportOptions>;
|
|
1496
|
-
interface ThruClientConfig {
|
|
1497
|
-
baseUrl?: string;
|
|
1498
|
-
transport?: Transport;
|
|
1499
|
-
transportOptions?: PartialTransportOptions;
|
|
1500
|
-
interceptors?: Interceptor[];
|
|
1501
|
-
callOptions?: CallOptions;
|
|
1502
|
-
}
|
|
1503
|
-
type QueryClient = ReturnType<typeof createClient<typeof QueryService>>;
|
|
1504
|
-
type CommandClient = ReturnType<typeof createClient<typeof CommandService>>;
|
|
1505
|
-
type StreamingClient = ReturnType<typeof createClient<typeof StreamingService>>;
|
|
1506
|
-
interface ThruClientContext {
|
|
1507
|
-
baseUrl: string;
|
|
1508
|
-
transport: Transport;
|
|
1509
|
-
query: QueryClient;
|
|
1510
|
-
command: CommandClient;
|
|
1511
|
-
streaming: StreamingClient;
|
|
1512
|
-
callOptions?: CallOptions;
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
interface AccountFlagsData {
|
|
1516
|
-
isProgram: boolean;
|
|
1517
|
-
isPrivileged: boolean;
|
|
1518
|
-
isUncompressable: boolean;
|
|
1519
|
-
isEphemeral: boolean;
|
|
1520
|
-
isDeleted: boolean;
|
|
1521
|
-
isNew: boolean;
|
|
1522
|
-
isCompressed: boolean;
|
|
1523
|
-
}
|
|
1524
|
-
declare class AccountFlags implements AccountFlagsData {
|
|
1525
|
-
readonly isProgram: boolean;
|
|
1526
|
-
readonly isPrivileged: boolean;
|
|
1527
|
-
readonly isUncompressable: boolean;
|
|
1528
|
-
readonly isEphemeral: boolean;
|
|
1529
|
-
readonly isDeleted: boolean;
|
|
1530
|
-
readonly isNew: boolean;
|
|
1531
|
-
readonly isCompressed: boolean;
|
|
1532
|
-
constructor(flags?: Partial<AccountFlagsData>);
|
|
1533
|
-
static fromProto(flags?: AccountFlags$1): AccountFlags;
|
|
1534
|
-
}
|
|
1535
|
-
declare class AccountMeta {
|
|
1536
|
-
readonly version: number;
|
|
1537
|
-
readonly flags: AccountFlags;
|
|
1538
|
-
readonly dataSize: number;
|
|
1539
|
-
readonly seq: bigint;
|
|
1540
|
-
readonly owner?: Pubkey;
|
|
1541
|
-
readonly balance: bigint;
|
|
1542
|
-
readonly nonce?: bigint;
|
|
1543
|
-
constructor(params: {
|
|
1544
|
-
version: number;
|
|
1545
|
-
flags?: AccountFlags;
|
|
1546
|
-
dataSize: number;
|
|
1547
|
-
seq: bigint;
|
|
1548
|
-
owner?: Pubkey;
|
|
1549
|
-
balance: bigint;
|
|
1550
|
-
nonce?: bigint;
|
|
1551
|
-
});
|
|
1552
|
-
static fromProto(meta?: AccountMeta$1): AccountMeta | undefined;
|
|
1553
|
-
}
|
|
1554
|
-
declare class AccountData {
|
|
1555
|
-
readonly data?: Uint8Array;
|
|
1556
|
-
readonly compressed: boolean;
|
|
1557
|
-
readonly compressionAlgorithm?: string;
|
|
1558
|
-
constructor(params: {
|
|
1559
|
-
data?: Uint8Array;
|
|
1560
|
-
compressed?: boolean;
|
|
1561
|
-
compressionAlgorithm?: string;
|
|
1562
|
-
});
|
|
1563
|
-
static fromProto(data?: AccountData$1): AccountData | undefined;
|
|
1564
|
-
}
|
|
1565
|
-
interface AccountVersionContext {
|
|
1566
|
-
slot?: bigint;
|
|
1567
|
-
blockTimestampNs?: bigint;
|
|
1568
|
-
}
|
|
1569
|
-
declare class Account {
|
|
1570
|
-
readonly address: Pubkey;
|
|
1571
|
-
readonly meta?: AccountMeta;
|
|
1572
|
-
readonly data?: AccountData;
|
|
1573
|
-
readonly versionContext?: AccountVersionContext;
|
|
1574
|
-
readonly consensusStatus?: ConsensusStatus;
|
|
1575
|
-
constructor(params: {
|
|
1576
|
-
address: Pubkey;
|
|
1577
|
-
meta?: AccountMeta;
|
|
1578
|
-
data?: AccountData;
|
|
1579
|
-
versionContext?: AccountVersionContext;
|
|
1580
|
-
consensusStatus?: ConsensusStatus;
|
|
1581
|
-
});
|
|
1582
|
-
static fromProto(proto: Account$1): Account;
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
interface AccountPageChunk {
|
|
1586
|
-
pageIndex: number;
|
|
1587
|
-
pageSize: number;
|
|
1588
|
-
data: Uint8Array;
|
|
1589
|
-
compressed?: boolean;
|
|
1590
|
-
compressionAlgorithm?: string;
|
|
1591
|
-
}
|
|
1592
|
-
interface AccountSnapshot {
|
|
1593
|
-
account: Account;
|
|
1594
|
-
}
|
|
1595
|
-
interface AccountUpdateDelta {
|
|
1596
|
-
slot: bigint;
|
|
1597
|
-
meta?: AccountMeta;
|
|
1598
|
-
page?: AccountPageChunk;
|
|
1599
|
-
deleted?: boolean;
|
|
1600
|
-
}
|
|
1601
|
-
type StreamAccountUpdate = {
|
|
1602
|
-
kind: "snapshot";
|
|
1603
|
-
snapshot: AccountSnapshot;
|
|
1604
|
-
} | {
|
|
1605
|
-
kind: "update";
|
|
1606
|
-
update: AccountUpdateDelta;
|
|
1607
|
-
};
|
|
1608
|
-
|
|
1609
|
-
type FilterParamValueCase = "stringValue" | "bytesValue" | "boolValue" | "intValue" | "doubleValue" | "uintValue" | "pubkeyValue" | "signatureValue" | "taPubkeyValue" | "tsSignatureValue";
|
|
1610
|
-
declare class FilterParamValue {
|
|
1611
|
-
private readonly case?;
|
|
1612
|
-
private readonly value?;
|
|
1613
|
-
private constructor();
|
|
1614
|
-
static none(): FilterParamValue;
|
|
1615
|
-
static string(value: string): FilterParamValue;
|
|
1616
|
-
static bytes(value: Uint8Array): FilterParamValue;
|
|
1617
|
-
static bool(value: boolean): FilterParamValue;
|
|
1618
|
-
static int(value: bigint): FilterParamValue;
|
|
1619
|
-
static double(value: number): FilterParamValue;
|
|
1620
|
-
static uint(value: number | bigint): FilterParamValue;
|
|
1621
|
-
static pubkey(value: PubkeyInput): FilterParamValue;
|
|
1622
|
-
static signature(value: SignatureInput): FilterParamValue;
|
|
1623
|
-
static taPubkey(value: PubkeyInput | string): FilterParamValue;
|
|
1624
|
-
static tsSignature(value: SignatureInput): FilterParamValue;
|
|
1625
|
-
static fromProto(proto: FilterParamValue$1): FilterParamValue;
|
|
1626
|
-
toProto(): FilterParamValue$1;
|
|
1627
|
-
getCase(): FilterParamValueCase | undefined;
|
|
1628
|
-
getString(): string | undefined;
|
|
1629
|
-
getBytes(): Uint8Array | undefined;
|
|
1630
|
-
getBool(): boolean | undefined;
|
|
1631
|
-
getInt(): bigint | undefined;
|
|
1632
|
-
getUint(): bigint | undefined;
|
|
1633
|
-
getDouble(): number | undefined;
|
|
1634
|
-
getPubkey(): Uint8Array | undefined;
|
|
1635
|
-
getSignature(): Uint8Array | undefined;
|
|
1636
|
-
getTaPubkey(): string | undefined;
|
|
1637
|
-
getTsSignature(): string | undefined;
|
|
1638
|
-
}
|
|
1639
|
-
interface FilterParamsInit {
|
|
1640
|
-
[key: string]: FilterParamValue;
|
|
1641
|
-
}
|
|
1642
|
-
declare class Filter {
|
|
1643
|
-
readonly expression?: string;
|
|
1644
|
-
private readonly params;
|
|
1645
|
-
constructor(init?: {
|
|
1646
|
-
expression?: string;
|
|
1647
|
-
params?: FilterParamsInit | Map<string, FilterParamValue> | Iterable<[string, FilterParamValue]>;
|
|
1648
|
-
});
|
|
1649
|
-
static fromProto(proto: Filter$1): Filter;
|
|
1650
|
-
toProto(): Filter$1;
|
|
1651
|
-
hasParam(name: string): boolean;
|
|
1652
|
-
getParam(name: string): FilterParamValue | undefined;
|
|
1653
|
-
listParams(): string[];
|
|
1654
|
-
entries(): [string, FilterParamValue][];
|
|
1655
|
-
withExpression(expression?: string): Filter;
|
|
1656
|
-
withParam(name: string, value: FilterParamValue): Filter;
|
|
1657
|
-
withoutParam(name: string): Filter;
|
|
1658
|
-
private setParamInternal;
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
interface PageRequestParams {
|
|
1662
|
-
pageSize?: number;
|
|
1663
|
-
pageToken?: string;
|
|
1664
|
-
orderBy?: string;
|
|
1665
|
-
}
|
|
1666
|
-
declare class PageRequest {
|
|
1667
|
-
readonly pageSize?: number;
|
|
1668
|
-
readonly pageToken?: string;
|
|
1669
|
-
readonly orderBy?: string;
|
|
1670
|
-
constructor(params?: PageRequestParams);
|
|
1671
|
-
static fromProto(proto?: PageRequest$1): PageRequest | undefined;
|
|
1672
|
-
toProto(): PageRequest$1;
|
|
1673
|
-
withParams(params: PageRequestParams): PageRequest;
|
|
1674
|
-
}
|
|
1675
|
-
interface PageResponseParams {
|
|
1676
|
-
nextPageToken?: string;
|
|
1677
|
-
totalSize?: bigint;
|
|
1678
|
-
}
|
|
1679
|
-
declare class PageResponse {
|
|
1680
|
-
readonly nextPageToken?: string;
|
|
1681
|
-
readonly totalSize?: bigint;
|
|
1682
|
-
constructor(params?: PageResponseParams);
|
|
1683
|
-
static fromProto(proto?: PageResponse$1): PageResponse | undefined;
|
|
1684
|
-
toProto(): PageResponse$1;
|
|
1685
|
-
hasNextPage(): boolean;
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
interface CreateAccountOptions {
|
|
1689
|
-
/** The new account's public key (fee payer). */
|
|
1690
|
-
publicKey: PubkeyInput;
|
|
1691
|
-
/** Optional overrides for the transaction header. */
|
|
1692
|
-
header?: Partial<TransactionHeaderInput>;
|
|
1693
|
-
}
|
|
1694
|
-
interface AccountQueryOptions {
|
|
1695
|
-
view?: AccountView;
|
|
1696
|
-
versionContext?: VersionContext;
|
|
1697
|
-
minConsensus?: ConsensusStatus;
|
|
1698
|
-
dataSlice?: DataSlice;
|
|
1699
|
-
}
|
|
1700
|
-
interface RawAccountQueryOptions {
|
|
1701
|
-
view?: AccountView;
|
|
1702
|
-
versionContext?: VersionContext;
|
|
1703
|
-
minConsensus?: ConsensusStatus;
|
|
1704
|
-
}
|
|
1705
|
-
interface ListAccountsOptions {
|
|
1706
|
-
view?: AccountView;
|
|
1707
|
-
versionContext?: VersionContext;
|
|
1708
|
-
filter?: Filter;
|
|
1709
|
-
page?: PageRequest;
|
|
1710
|
-
minConsensus?: ConsensusStatus;
|
|
1711
|
-
}
|
|
1712
|
-
interface AccountList {
|
|
1713
|
-
accounts: Account[];
|
|
1714
|
-
page?: PageResponse;
|
|
1715
|
-
}
|
|
1716
|
-
declare function getAccount(ctx: ThruClientContext, address: PubkeyInput, options?: AccountQueryOptions): Promise<Account>;
|
|
1717
|
-
declare function getRawAccount(ctx: ThruClientContext, address: PubkeyInput, options?: RawAccountQueryOptions): Promise<RawAccount>;
|
|
1718
|
-
declare function listAccounts(ctx: ThruClientContext, options: ListAccountsOptions): Promise<AccountList>;
|
|
1719
|
-
declare function createAccount(ctx: ThruClientContext, options: CreateAccountOptions): Promise<Transaction>;
|
|
1720
|
-
|
|
1721
|
-
type accounts_AccountList = AccountList;
|
|
1722
|
-
type accounts_AccountQueryOptions = AccountQueryOptions;
|
|
1723
|
-
type accounts_CreateAccountOptions = CreateAccountOptions;
|
|
1724
|
-
type accounts_ListAccountsOptions = ListAccountsOptions;
|
|
1725
|
-
type accounts_RawAccountQueryOptions = RawAccountQueryOptions;
|
|
1726
|
-
declare const accounts_createAccount: typeof createAccount;
|
|
1727
|
-
declare const accounts_getAccount: typeof getAccount;
|
|
1728
|
-
declare const accounts_getRawAccount: typeof getRawAccount;
|
|
1729
|
-
declare const accounts_listAccounts: typeof listAccounts;
|
|
1730
|
-
declare namespace accounts {
|
|
1731
|
-
export { type accounts_AccountList as AccountList, type accounts_AccountQueryOptions as AccountQueryOptions, type accounts_CreateAccountOptions as CreateAccountOptions, type accounts_ListAccountsOptions as ListAccountsOptions, type accounts_RawAccountQueryOptions as RawAccountQueryOptions, accounts_createAccount as createAccount, accounts_getAccount as getAccount, accounts_getRawAccount as getRawAccount, accounts_listAccounts as listAccounts };
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
interface BlockFooterParams {
|
|
1735
|
-
signature?: Uint8Array;
|
|
1736
|
-
status: ExecutionStatus;
|
|
1737
|
-
consumedComputeUnits: bigint;
|
|
1738
|
-
consumedStateUnits: number;
|
|
1739
|
-
attestorPayment: bigint;
|
|
1740
|
-
}
|
|
1741
|
-
declare class BlockFooter {
|
|
1742
|
-
readonly signature?: Uint8Array;
|
|
1743
|
-
readonly status: ExecutionStatus;
|
|
1744
|
-
readonly consumedComputeUnits: bigint;
|
|
1745
|
-
readonly consumedStateUnits: number;
|
|
1746
|
-
readonly attestorPayment: bigint;
|
|
1747
|
-
constructor(params: BlockFooterParams);
|
|
1748
|
-
static fromProto(proto: BlockFooter$1): BlockFooter;
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
interface BlockHeaderParams {
|
|
1752
|
-
slot: bigint;
|
|
1753
|
-
version: number;
|
|
1754
|
-
headerSignature?: Uint8Array;
|
|
1755
|
-
producer?: Uint8Array;
|
|
1756
|
-
expiryTimestamp?: Timestamp;
|
|
1757
|
-
startSlot: bigint;
|
|
1758
|
-
expiryAfter?: number;
|
|
1759
|
-
maxBlockSize?: number;
|
|
1760
|
-
maxComputeUnits?: bigint;
|
|
1761
|
-
maxStateUnits?: number;
|
|
1762
|
-
bondAmountLockUp?: bigint;
|
|
1763
|
-
weightSlot?: bigint;
|
|
1764
|
-
blockHash?: Uint8Array;
|
|
1765
|
-
}
|
|
1766
|
-
declare class BlockHeader {
|
|
1767
|
-
readonly slot: bigint;
|
|
1768
|
-
readonly version: number;
|
|
1769
|
-
readonly headerSignature?: Uint8Array;
|
|
1770
|
-
readonly producer?: Uint8Array;
|
|
1771
|
-
readonly expiryTimestamp?: Timestamp;
|
|
1772
|
-
readonly startSlot: bigint;
|
|
1773
|
-
readonly expiryAfter?: number;
|
|
1774
|
-
readonly maxBlockSize?: number;
|
|
1775
|
-
readonly maxComputeUnits?: bigint;
|
|
1776
|
-
readonly maxStateUnits?: number;
|
|
1777
|
-
readonly bondAmountLockUp?: bigint;
|
|
1778
|
-
readonly weightSlot?: bigint;
|
|
1779
|
-
readonly blockHash?: Uint8Array;
|
|
1780
|
-
constructor(params: BlockHeaderParams);
|
|
1781
|
-
static fromProto(proto: BlockHeader$1): BlockHeader;
|
|
1782
|
-
withBlockHash(blockHash: Uint8Array): BlockHeader;
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
|
-
declare class Block {
|
|
1786
|
-
readonly header: BlockHeader;
|
|
1787
|
-
readonly footer?: BlockFooter;
|
|
1788
|
-
readonly body?: Uint8Array;
|
|
1789
|
-
readonly consensusStatus?: ConsensusStatus;
|
|
1790
|
-
blockTimeNs?: bigint;
|
|
1791
|
-
attestorPayment?: bigint;
|
|
1792
|
-
constructor(params: {
|
|
1793
|
-
header: BlockHeader;
|
|
1794
|
-
footer?: BlockFooter;
|
|
1795
|
-
body?: Uint8Array;
|
|
1796
|
-
consensusStatus?: ConsensusStatus;
|
|
1797
|
-
});
|
|
1798
|
-
static fromProto(proto: Block$1): Block;
|
|
1799
|
-
static fromWire(data: Uint8Array): Block;
|
|
1800
|
-
toWire(): Uint8Array;
|
|
1801
|
-
getTransactions(): Transaction[];
|
|
1802
|
-
private static extractTransactionBody;
|
|
1803
|
-
private serializeHeader;
|
|
1804
|
-
private serializeFooter;
|
|
1805
|
-
private static parseHeader;
|
|
1806
|
-
private static parseFooter;
|
|
1807
|
-
private static parseTransactionsFromBody;
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
type BlockSelector = {
|
|
1811
|
-
slot: number | bigint;
|
|
1812
|
-
} | {
|
|
1813
|
-
blockHash: Uint8Array | string;
|
|
1814
|
-
};
|
|
1815
|
-
interface DeriveProgramAddressOptions {
|
|
1816
|
-
programAddress: PubkeyInput;
|
|
1817
|
-
seed: Uint8Array | string;
|
|
1818
|
-
ephemeral?: boolean;
|
|
1819
|
-
}
|
|
1820
|
-
interface DeriveProgramAddressResult {
|
|
1821
|
-
bytes: Uint8Array;
|
|
1822
|
-
address: string;
|
|
1823
|
-
}
|
|
1824
|
-
declare function deriveProgramAddress(options: DeriveProgramAddressOptions): DeriveProgramAddressResult;
|
|
1825
|
-
|
|
1826
|
-
interface BlockQueryOptions {
|
|
1827
|
-
view?: BlockView;
|
|
1828
|
-
minConsensus?: ConsensusStatus;
|
|
1829
|
-
}
|
|
1830
|
-
interface RawBlockQueryOptions {
|
|
1831
|
-
minConsensus?: ConsensusStatus;
|
|
1832
|
-
}
|
|
1833
|
-
interface ListBlocksOptions {
|
|
1834
|
-
filter?: Filter;
|
|
1835
|
-
page?: PageRequest;
|
|
1836
|
-
view?: BlockView;
|
|
1837
|
-
minConsensus?: ConsensusStatus;
|
|
1838
|
-
}
|
|
1839
|
-
interface BlockList {
|
|
1840
|
-
blocks: Block[];
|
|
1841
|
-
page?: PageResponse;
|
|
1842
|
-
}
|
|
1843
|
-
declare function getBlock(ctx: ThruClientContext, selector: BlockSelector, options?: BlockQueryOptions): Promise<Block>;
|
|
1844
|
-
declare function getRawBlock(ctx: ThruClientContext, selector: BlockSelector, options?: RawBlockQueryOptions): Promise<RawBlock>;
|
|
1845
|
-
declare function listBlocks(ctx: ThruClientContext, options?: ListBlocksOptions): Promise<BlockList>;
|
|
1846
|
-
|
|
1847
|
-
type blocks_BlockList = BlockList;
|
|
1848
|
-
type blocks_BlockQueryOptions = BlockQueryOptions;
|
|
1849
|
-
type blocks_ListBlocksOptions = ListBlocksOptions;
|
|
1850
|
-
type blocks_RawBlockQueryOptions = RawBlockQueryOptions;
|
|
1851
|
-
declare const blocks_getBlock: typeof getBlock;
|
|
1852
|
-
declare const blocks_getRawBlock: typeof getRawBlock;
|
|
1853
|
-
declare const blocks_listBlocks: typeof listBlocks;
|
|
1854
|
-
declare namespace blocks {
|
|
1855
|
-
export { type blocks_BlockList as BlockList, type blocks_BlockQueryOptions as BlockQueryOptions, type blocks_ListBlocksOptions as ListBlocksOptions, type blocks_RawBlockQueryOptions as RawBlockQueryOptions, blocks_getBlock as getBlock, blocks_getRawBlock as getRawBlock, blocks_listBlocks as listBlocks };
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
declare function consensusStatusToString(status: ConsensusStatus): string;
|
|
1859
|
-
|
|
1860
|
-
type VersionContextInput = VersionContext | {
|
|
1861
|
-
current: true;
|
|
1862
|
-
} | {
|
|
1863
|
-
currentOrHistorical: true;
|
|
1864
|
-
} | {
|
|
1865
|
-
slot: number | bigint;
|
|
1866
|
-
} | {
|
|
1867
|
-
timestamp: Date | number | Timestamp;
|
|
1868
|
-
} | {
|
|
1869
|
-
seq: number | bigint;
|
|
1870
|
-
};
|
|
1871
|
-
|
|
1872
|
-
declare function currentVersionContext(): VersionContext;
|
|
1873
|
-
declare function currentOrHistoricalVersionContext(): VersionContext;
|
|
1874
|
-
declare function slotVersionContext(slot: number | bigint): VersionContext;
|
|
1875
|
-
declare function timestampVersionContext(value: Date | number | Timestamp): VersionContext;
|
|
1876
|
-
declare function seqVersionContext(seq: number | bigint): VersionContext;
|
|
1877
|
-
declare function versionContext(input?: VersionContextInput): VersionContext;
|
|
1878
|
-
|
|
1879
|
-
type consensus_VersionContextInput = VersionContextInput;
|
|
1880
|
-
declare const consensus_consensusStatusToString: typeof consensusStatusToString;
|
|
1881
|
-
declare const consensus_currentOrHistoricalVersionContext: typeof currentOrHistoricalVersionContext;
|
|
1882
|
-
declare const consensus_currentVersionContext: typeof currentVersionContext;
|
|
1883
|
-
declare const consensus_seqVersionContext: typeof seqVersionContext;
|
|
1884
|
-
declare const consensus_slotVersionContext: typeof slotVersionContext;
|
|
1885
|
-
declare const consensus_timestampVersionContext: typeof timestampVersionContext;
|
|
1886
|
-
declare const consensus_versionContext: typeof versionContext;
|
|
1887
|
-
declare namespace consensus {
|
|
1888
|
-
export { type consensus_VersionContextInput as VersionContextInput, consensus_consensusStatusToString as consensusStatusToString, consensus_currentOrHistoricalVersionContext as currentOrHistoricalVersionContext, consensus_currentVersionContext as currentVersionContext, consensus_seqVersionContext as seqVersionContext, consensus_slotVersionContext as slotVersionContext, consensus_timestampVersionContext as timestampVersionContext, consensus_versionContext as versionContext };
|
|
1889
|
-
}
|
|
1890
|
-
|
|
1891
|
-
interface ChainEventParams {
|
|
1892
|
-
id: string;
|
|
1893
|
-
transactionSignature?: Uint8Array;
|
|
1894
|
-
program?: Uint8Array;
|
|
1895
|
-
payload?: Uint8Array;
|
|
1896
|
-
slot?: bigint;
|
|
1897
|
-
callIndex?: number;
|
|
1898
|
-
programIndex?: number;
|
|
1899
|
-
payloadSize?: number;
|
|
1900
|
-
timestampNs?: bigint;
|
|
1901
|
-
}
|
|
1902
|
-
declare class ChainEvent {
|
|
1903
|
-
readonly id: string;
|
|
1904
|
-
readonly transactionSignature?: Uint8Array;
|
|
1905
|
-
readonly program?: Uint8Array;
|
|
1906
|
-
readonly payload?: Uint8Array;
|
|
1907
|
-
readonly slot?: bigint;
|
|
1908
|
-
readonly callIndex?: number;
|
|
1909
|
-
readonly programIndex?: number;
|
|
1910
|
-
readonly payloadSize?: number;
|
|
1911
|
-
readonly timestampNs?: bigint;
|
|
1912
|
-
constructor(params: ChainEventParams);
|
|
1913
|
-
static fromQuery(proto: Event): ChainEvent;
|
|
1914
|
-
static fromStream(proto: StreamEventsResponse): ChainEvent;
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
interface GetEventOptions {
|
|
1918
|
-
versionContext?: VersionContext;
|
|
1919
|
-
}
|
|
1920
|
-
declare function getEvent(ctx: ThruClientContext, eventId: string, options?: GetEventOptions): Promise<ChainEvent>;
|
|
1921
|
-
|
|
1922
|
-
type events_GetEventOptions = GetEventOptions;
|
|
1923
|
-
declare const events_getEvent: typeof getEvent;
|
|
1924
|
-
declare namespace events {
|
|
1925
|
-
export { type events_GetEventOptions as GetEventOptions, events_getEvent as getEvent };
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
|
-
interface HeightSnapshotParams {
|
|
1929
|
-
finalized: bigint;
|
|
1930
|
-
locallyExecuted: bigint;
|
|
1931
|
-
clusterExecuted: bigint;
|
|
1932
|
-
}
|
|
1933
|
-
declare class HeightSnapshot {
|
|
1934
|
-
readonly finalized: bigint;
|
|
1935
|
-
readonly locallyExecuted: bigint;
|
|
1936
|
-
readonly clusterExecuted: bigint;
|
|
1937
|
-
constructor(params: HeightSnapshotParams);
|
|
1938
|
-
static fromProto(proto: {
|
|
1939
|
-
finalized: bigint;
|
|
1940
|
-
locallyExecuted: bigint;
|
|
1941
|
-
clusterExecuted: bigint;
|
|
1942
|
-
}): HeightSnapshot;
|
|
1943
|
-
delta(other: HeightSnapshot): {
|
|
1944
|
-
finalized: bigint;
|
|
1945
|
-
locallyExecuted: bigint;
|
|
1946
|
-
clusterExecuted: bigint;
|
|
1947
|
-
};
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
declare function getBlockHeight(ctx: ThruClientContext): Promise<HeightSnapshot>;
|
|
1951
|
-
|
|
1952
|
-
declare const height_getBlockHeight: typeof getBlockHeight;
|
|
1953
|
-
declare namespace height {
|
|
1954
|
-
export { height_getBlockHeight as getBlockHeight };
|
|
1955
|
-
}
|
|
1956
|
-
|
|
1957
|
-
interface GeneratedKeyPair {
|
|
1958
|
-
address: string;
|
|
1959
|
-
publicKey: Uint8Array;
|
|
1960
|
-
privateKey: Uint8Array;
|
|
1961
|
-
}
|
|
1962
|
-
/**
|
|
1963
|
-
* Generates a new Ed25519 keypair using the same HD wallet pipeline as the Thru wallet.
|
|
1964
|
-
*/
|
|
1965
|
-
declare function generateKeyPair(): Promise<GeneratedKeyPair>;
|
|
1966
|
-
declare function fromPrivateKey(privateKey: Uint8Array): Promise<Uint8Array>;
|
|
1967
|
-
|
|
1968
|
-
type keys_GeneratedKeyPair = GeneratedKeyPair;
|
|
1969
|
-
declare const keys_fromPrivateKey: typeof fromPrivateKey;
|
|
1970
|
-
declare const keys_generateKeyPair: typeof generateKeyPair;
|
|
1971
|
-
declare namespace keys {
|
|
1972
|
-
export { type keys_GeneratedKeyPair as GeneratedKeyPair, keys_fromPrivateKey as fromPrivateKey, keys_generateKeyPair as generateKeyPair };
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
declare class StateProof {
|
|
1976
|
-
readonly proof: Uint8Array;
|
|
1977
|
-
readonly slot: bigint;
|
|
1978
|
-
constructor(params: {
|
|
1979
|
-
proof: Uint8Array;
|
|
1980
|
-
slot: bigint;
|
|
1981
|
-
});
|
|
1982
|
-
static fromProto(proto: StateProof$1): StateProof;
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
type GenerateStateProofOptions = {
|
|
1986
|
-
address?: PubkeyInput;
|
|
1987
|
-
proofType: StateProofType;
|
|
1988
|
-
targetSlot?: bigint;
|
|
1989
|
-
};
|
|
1990
|
-
|
|
1991
|
-
declare function generateStateProof(ctx: ThruClientContext, options: GenerateStateProofOptions): Promise<StateProof>;
|
|
1992
|
-
|
|
1993
|
-
declare const proofs_generateStateProof: typeof generateStateProof;
|
|
1994
|
-
declare namespace proofs {
|
|
1995
|
-
export { proofs_generateStateProof as generateStateProof };
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
interface TrackTransactionOptions {
|
|
1999
|
-
timeoutMs?: number;
|
|
2000
|
-
signal?: AbortSignal;
|
|
2001
|
-
}
|
|
2002
|
-
interface StreamBlocksOptions {
|
|
2003
|
-
startSlot?: bigint;
|
|
2004
|
-
filter?: Filter;
|
|
2005
|
-
view?: BlockView;
|
|
2006
|
-
minConsensus?: ConsensusStatus;
|
|
2007
|
-
signal?: AbortSignal;
|
|
2008
|
-
}
|
|
2009
|
-
interface StreamBlocksResult {
|
|
2010
|
-
block: Block;
|
|
2011
|
-
}
|
|
2012
|
-
declare function streamBlocks(ctx: ThruClientContext, options?: StreamBlocksOptions): AsyncIterable<StreamBlocksResult>;
|
|
2013
|
-
interface StreamAccountUpdatesOptions {
|
|
2014
|
-
view?: AccountView;
|
|
2015
|
-
filter?: Filter;
|
|
2016
|
-
signal?: AbortSignal;
|
|
2017
|
-
}
|
|
2018
|
-
interface StreamAccountUpdatesResult {
|
|
2019
|
-
update: StreamAccountUpdate;
|
|
2020
|
-
}
|
|
2021
|
-
declare function streamAccountUpdates(ctx: ThruClientContext, address: PubkeyInput, options?: StreamAccountUpdatesOptions): AsyncIterable<StreamAccountUpdatesResult>;
|
|
2022
|
-
interface StreamTransactionsOptions {
|
|
2023
|
-
filter?: Filter;
|
|
2024
|
-
minConsensus?: ConsensusStatus;
|
|
2025
|
-
signal?: AbortSignal;
|
|
2026
|
-
}
|
|
2027
|
-
type StreamTransactionsResult = StreamTransactionUpdate;
|
|
2028
|
-
declare function streamTransactions(ctx: ThruClientContext, options?: StreamTransactionsOptions): AsyncIterable<StreamTransactionsResult>;
|
|
2029
|
-
interface StreamEventsOptions {
|
|
2030
|
-
filter?: Filter;
|
|
2031
|
-
signal?: AbortSignal;
|
|
2032
|
-
}
|
|
2033
|
-
interface StreamEventsResult {
|
|
2034
|
-
event: ChainEvent;
|
|
2035
|
-
}
|
|
2036
|
-
declare function streamEvents(ctx: ThruClientContext, options?: StreamEventsOptions): AsyncIterable<StreamEventsResult>;
|
|
2037
|
-
declare function trackTransaction(ctx: ThruClientContext, signature: SignatureInput, options?: TrackTransactionOptions): AsyncIterable<TrackTransactionUpdate>;
|
|
2038
|
-
interface CollectStreamOptions {
|
|
2039
|
-
limit?: number;
|
|
2040
|
-
signal?: AbortSignal;
|
|
2041
|
-
}
|
|
2042
|
-
declare function collectStream<T>(iterable: AsyncIterable<T>, options?: CollectStreamOptions): Promise<T[]>;
|
|
2043
|
-
declare function firstStreamValue<T>(iterable: AsyncIterable<T>, options?: {
|
|
2044
|
-
signal?: AbortSignal;
|
|
2045
|
-
}): Promise<T | undefined>;
|
|
2046
|
-
declare function forEachStreamValue<T>(iterable: AsyncIterable<T>, handler: (value: T, index: number) => void | Promise<void>, options?: {
|
|
2047
|
-
signal?: AbortSignal;
|
|
2048
|
-
}): Promise<void>;
|
|
2049
|
-
|
|
2050
|
-
type streaming_CollectStreamOptions = CollectStreamOptions;
|
|
2051
|
-
type streaming_StreamAccountUpdatesOptions = StreamAccountUpdatesOptions;
|
|
2052
|
-
type streaming_StreamAccountUpdatesResult = StreamAccountUpdatesResult;
|
|
2053
|
-
type streaming_StreamBlocksOptions = StreamBlocksOptions;
|
|
2054
|
-
type streaming_StreamBlocksResult = StreamBlocksResult;
|
|
2055
|
-
type streaming_StreamEventsOptions = StreamEventsOptions;
|
|
2056
|
-
type streaming_StreamEventsResult = StreamEventsResult;
|
|
2057
|
-
type streaming_StreamTransactionUpdate = StreamTransactionUpdate;
|
|
2058
|
-
type streaming_StreamTransactionsOptions = StreamTransactionsOptions;
|
|
2059
|
-
type streaming_StreamTransactionsResult = StreamTransactionsResult;
|
|
2060
|
-
type streaming_TrackTransactionOptions = TrackTransactionOptions;
|
|
2061
|
-
type streaming_TrackTransactionUpdate = TrackTransactionUpdate;
|
|
2062
|
-
declare const streaming_collectStream: typeof collectStream;
|
|
2063
|
-
declare const streaming_firstStreamValue: typeof firstStreamValue;
|
|
2064
|
-
declare const streaming_forEachStreamValue: typeof forEachStreamValue;
|
|
2065
|
-
declare const streaming_streamAccountUpdates: typeof streamAccountUpdates;
|
|
2066
|
-
declare const streaming_streamBlocks: typeof streamBlocks;
|
|
2067
|
-
declare const streaming_streamEvents: typeof streamEvents;
|
|
2068
|
-
declare const streaming_streamTransactions: typeof streamTransactions;
|
|
2069
|
-
declare const streaming_trackTransaction: typeof trackTransaction;
|
|
2070
|
-
declare namespace streaming {
|
|
2071
|
-
export { type streaming_CollectStreamOptions as CollectStreamOptions, type streaming_StreamAccountUpdatesOptions as StreamAccountUpdatesOptions, type streaming_StreamAccountUpdatesResult as StreamAccountUpdatesResult, type streaming_StreamBlocksOptions as StreamBlocksOptions, type streaming_StreamBlocksResult as StreamBlocksResult, type streaming_StreamEventsOptions as StreamEventsOptions, type streaming_StreamEventsResult as StreamEventsResult, type streaming_StreamTransactionUpdate as StreamTransactionUpdate, type streaming_StreamTransactionsOptions as StreamTransactionsOptions, type streaming_StreamTransactionsResult as StreamTransactionsResult, type streaming_TrackTransactionOptions as TrackTransactionOptions, type streaming_TrackTransactionUpdate as TrackTransactionUpdate, streaming_collectStream as collectStream, streaming_firstStreamValue as firstStreamValue, streaming_forEachStreamValue as forEachStreamValue, streaming_streamAccountUpdates as streamAccountUpdates, streaming_streamBlocks as streamBlocks, streaming_streamEvents as streamEvents, streaming_streamTransactions as streamTransactions, streaming_trackTransaction as trackTransaction };
|
|
2072
|
-
}
|
|
2073
|
-
|
|
2074
|
-
interface TransactionFeePayerConfig {
|
|
2075
|
-
publicKey: PubkeyInput;
|
|
2076
|
-
privateKey?: Uint8Array;
|
|
2077
|
-
}
|
|
2078
|
-
interface TransactionAccountsConfig {
|
|
2079
|
-
readWrite?: PubkeyInput[];
|
|
2080
|
-
readOnly?: PubkeyInput[];
|
|
2081
|
-
}
|
|
2082
|
-
interface TransactionHeaderConfig {
|
|
2083
|
-
fee?: bigint;
|
|
2084
|
-
nonce?: bigint;
|
|
2085
|
-
startSlot?: bigint;
|
|
2086
|
-
expiryAfter?: number;
|
|
2087
|
-
computeUnits?: number;
|
|
2088
|
-
stateUnits?: number;
|
|
2089
|
-
memoryUnits?: number;
|
|
2090
|
-
flags?: number;
|
|
2091
|
-
}
|
|
2092
|
-
/**
|
|
2093
|
-
* Instruction data can be either:
|
|
2094
|
-
* - A Uint8Array directly
|
|
2095
|
-
* - A function that takes an InstructionContext and returns a Uint8Array
|
|
2096
|
-
*/
|
|
2097
|
-
type InstructionData = Uint8Array | string | ((context: InstructionContext) => Promise<Uint8Array>);
|
|
2098
|
-
interface BuildTransactionOptions {
|
|
2099
|
-
feePayer: TransactionFeePayerConfig;
|
|
2100
|
-
program: PubkeyInput;
|
|
2101
|
-
header?: TransactionHeaderConfig;
|
|
2102
|
-
accounts?: TransactionAccountsConfig;
|
|
2103
|
-
instructionData?: InstructionData;
|
|
2104
|
-
feePayerStateProof?: Uint8Array;
|
|
2105
|
-
feePayerAccountMetaRaw?: Uint8Array;
|
|
2106
|
-
}
|
|
2107
|
-
interface BuildAndSignTransactionOptions extends BuildTransactionOptions {
|
|
2108
|
-
feePayer: TransactionFeePayerConfig & {
|
|
2109
|
-
privateKey: Uint8Array;
|
|
2110
|
-
};
|
|
2111
|
-
}
|
|
2112
|
-
interface TransactionQueryOptions {
|
|
2113
|
-
view?: TransactionView;
|
|
2114
|
-
versionContext?: VersionContext;
|
|
2115
|
-
minConsensus?: ConsensusStatus;
|
|
2116
|
-
}
|
|
2117
|
-
interface RawTransactionQueryOptions {
|
|
2118
|
-
versionContext?: VersionContext;
|
|
2119
|
-
minConsensus?: ConsensusStatus;
|
|
2120
|
-
}
|
|
2121
|
-
interface ListTransactionsForAccountOptions {
|
|
2122
|
-
filter?: Filter;
|
|
2123
|
-
page?: PageRequest;
|
|
2124
|
-
transactionOptions?: TransactionQueryOptions;
|
|
2125
|
-
}
|
|
2126
|
-
interface TransactionList {
|
|
2127
|
-
transactions: Transaction[];
|
|
2128
|
-
page?: PageResponse;
|
|
2129
|
-
}
|
|
2130
|
-
declare function getTransaction(ctx: ThruClientContext, signature: SignatureInput, options?: TransactionQueryOptions): Promise<Transaction>;
|
|
2131
|
-
declare function getRawTransaction(ctx: ThruClientContext, signature: SignatureInput, options?: RawTransactionQueryOptions): Promise<RawTransaction>;
|
|
2132
|
-
declare function getTransactionStatus(ctx: ThruClientContext, signature: SignatureInput): Promise<TransactionStatusSnapshot>;
|
|
2133
|
-
declare function listTransactionsForAccount(ctx: ThruClientContext, account: PubkeyInput, options?: ListTransactionsForAccountOptions): Promise<TransactionList>;
|
|
2134
|
-
declare function buildTransaction(ctx: ThruClientContext, options: BuildTransactionOptions): Promise<Transaction>;
|
|
2135
|
-
declare function buildAndSignTransaction(ctx: ThruClientContext, options: BuildAndSignTransactionOptions): Promise<SignedTransactionResult>;
|
|
2136
|
-
declare function sendTransaction(ctx: ThruClientContext, transaction: Transaction | Uint8Array): Promise<string>;
|
|
2137
|
-
interface BatchSendTransactionsOptions {
|
|
2138
|
-
numRetries?: number;
|
|
2139
|
-
}
|
|
2140
|
-
declare function batchSendTransactions(ctx: ThruClientContext, transactions: (Transaction | Uint8Array)[], options?: BatchSendTransactionsOptions): Promise<BatchSendTransactionsResponse>;
|
|
2141
|
-
|
|
2142
|
-
type transactions_BatchSendTransactionsOptions = BatchSendTransactionsOptions;
|
|
2143
|
-
type transactions_BuildAndSignTransactionOptions = BuildAndSignTransactionOptions;
|
|
2144
|
-
type transactions_BuildTransactionOptions = BuildTransactionOptions;
|
|
2145
|
-
type transactions_InstructionData = InstructionData;
|
|
2146
|
-
type transactions_ListTransactionsForAccountOptions = ListTransactionsForAccountOptions;
|
|
2147
|
-
type transactions_RawTransactionQueryOptions = RawTransactionQueryOptions;
|
|
2148
|
-
type transactions_TransactionAccountsConfig = TransactionAccountsConfig;
|
|
2149
|
-
type transactions_TransactionFeePayerConfig = TransactionFeePayerConfig;
|
|
2150
|
-
type transactions_TransactionHeaderConfig = TransactionHeaderConfig;
|
|
2151
|
-
type transactions_TransactionList = TransactionList;
|
|
2152
|
-
type transactions_TransactionQueryOptions = TransactionQueryOptions;
|
|
2153
|
-
declare const transactions_batchSendTransactions: typeof batchSendTransactions;
|
|
2154
|
-
declare const transactions_buildAndSignTransaction: typeof buildAndSignTransaction;
|
|
2155
|
-
declare const transactions_buildTransaction: typeof buildTransaction;
|
|
2156
|
-
declare const transactions_getRawTransaction: typeof getRawTransaction;
|
|
2157
|
-
declare const transactions_getTransaction: typeof getTransaction;
|
|
2158
|
-
declare const transactions_getTransactionStatus: typeof getTransactionStatus;
|
|
2159
|
-
declare const transactions_listTransactionsForAccount: typeof listTransactionsForAccount;
|
|
2160
|
-
declare const transactions_sendTransaction: typeof sendTransaction;
|
|
2161
|
-
declare namespace transactions {
|
|
2162
|
-
export { type transactions_BatchSendTransactionsOptions as BatchSendTransactionsOptions, type transactions_BuildAndSignTransactionOptions as BuildAndSignTransactionOptions, type transactions_BuildTransactionOptions as BuildTransactionOptions, type transactions_InstructionData as InstructionData, type transactions_ListTransactionsForAccountOptions as ListTransactionsForAccountOptions, type transactions_RawTransactionQueryOptions as RawTransactionQueryOptions, type transactions_TransactionAccountsConfig as TransactionAccountsConfig, type transactions_TransactionFeePayerConfig as TransactionFeePayerConfig, type transactions_TransactionHeaderConfig as TransactionHeaderConfig, type transactions_TransactionList as TransactionList, type transactions_TransactionQueryOptions as TransactionQueryOptions, transactions_batchSendTransactions as batchSendTransactions, transactions_buildAndSignTransaction as buildAndSignTransaction, transactions_buildTransaction as buildTransaction, transactions_getRawTransaction as getRawTransaction, transactions_getTransaction as getTransaction, transactions_getTransactionStatus as getTransactionStatus, transactions_listTransactionsForAccount as listTransactionsForAccount, transactions_sendTransaction as sendTransaction };
|
|
2163
|
-
}
|
|
2164
|
-
|
|
2165
|
-
declare class VersionInfo {
|
|
2166
|
-
readonly components: Record<string, string>;
|
|
2167
|
-
constructor(components: Record<string, string>);
|
|
2168
|
-
static fromProto(proto: GetVersionResponse): VersionInfo;
|
|
2169
|
-
get(component: string): string | undefined;
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
export { type DeriveProgramAddressResult as $, Account as A, type BuildTransactionParams as B, ChainEvent as C, TransactionVmError as D, ExecutionStatus as E, Filter as F, type PageRequestParams as G, HeightSnapshot as H, type PageResponseParams as I, type PubkeyInput as J, type SignatureInput as K, type VersionContextInput as L, type AccountQueryOptions as M, type CreateAccountOptions as N, type ListAccountsOptions as O, PageRequest as P, type BlockList as Q, type RawAccountQueryOptions as R, type SignedTransactionResult as S, Transaction as T, type BlockQueryOptions as U, VersionInfo as V, type ListBlocksOptions as W, type RawBlockQueryOptions as X, type GetEventOptions as Y, type BlockSelector as Z, type DeriveProgramAddressOptions as _, accounts as a, type GeneratedKeyPair as a0, type StreamAccountUpdate as a1, type HeightSnapshotParams as a2, type StreamAccountUpdatesOptions as a3, type StreamAccountUpdatesResult as a4, type StreamBlocksOptions as a5, type StreamBlocksResult as a6, type StreamEventsOptions as a7, type StreamEventsResult as a8, type StreamTransactionsOptions as a9, getRawAccount as aA, listAccounts as aB, streamAccountUpdates as aC, createAccount as aD, getTransaction as aE, getRawTransaction as aF, getTransactionStatus as aG, listTransactionsForAccount as aH, streamTransactions as aI, buildTransaction as aJ, buildAndSignTransaction as aK, sendTransaction as aL, batchSendTransactions as aM, trackTransaction as aN, getEvent as aO, streamEvents as aP, generateStateProof as aQ, generateKeyPair as aR, fromPrivateKey as aS, consensusStatusToString as aT, versionContext as aU, currentVersionContext as aV, currentOrHistoricalVersionContext as aW, slotVersionContext as aX, timestampVersionContext as aY, seqVersionContext as aZ, type ThruClientConfig as a_, type StreamTransactionsResult as aa, type StreamTransactionUpdate as ab, type TrackTransactionOptions as ac, type TrackTransactionUpdate as ad, type TransactionExecutionEvent as ae, type TransactionExecutionResultData as af, type InstructionContext as ag, type BatchSendTransactionsOptions as ah, type BuildAndSignTransactionOptions as ai, type BuildTransactionOptions as aj, type InstructionData as ak, type ListTransactionsForAccountOptions as al, type RawTransactionQueryOptions as am, type TransactionAccountsConfig as an, type TransactionFeePayerConfig as ao, type TransactionHeaderConfig as ap, type TransactionList as aq, type TransactionQueryOptions as ar, type GenerateStateProofOptions as as, type ThruClientContext as at, getBlock as au, getRawBlock as av, listBlocks as aw, streamBlocks as ax, getBlockHeight as ay, getAccount as az, blocks as b, consensus as c, Block as d, events as e, FilterParamValue as f, PageResponse as g, height as h, Pubkey as i, Signature as j, keys as k, StateProof as l, TransactionStatusSnapshot as m, deriveProgramAddress as n, collectStream as o, proofs as p, firstStreamValue as q, forEachStreamValue as r, streaming as s, transactions as t, ConsensusStatus as u, FilterParamValueSchema as v, FilterSchema as w, AccountView as x, BlockView as y, TransactionView as z };
|