@chainlink/cre-sdk 1.6.0-alpha.3 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/README.md +9 -0
  2. package/bin/cre-compile.ts +17 -5
  3. package/dist/sdk/cre/index.d.ts +0 -6
  4. package/dist/sdk/cre/index.js +0 -8
  5. package/dist/sdk/test/generated/index.d.ts +0 -2
  6. package/dist/sdk/test/generated/index.js +0 -2
  7. package/package.json +2 -2
  8. package/scripts/run-standard-tests.sh +3 -3
  9. package/scripts/src/compile-to-wasm.ts +39 -19
  10. package/scripts/src/compile-workflow.ts +31 -12
  11. package/scripts/src/generate-sdks.ts +0 -12
  12. package/dist/generated/capabilities/blockchain/aptos/v1alpha/client_pb.d.ts +0 -1023
  13. package/dist/generated/capabilities/blockchain/aptos/v1alpha/client_pb.js +0 -290
  14. package/dist/generated/capabilities/blockchain/solana/v1alpha/client_pb.d.ts +0 -2904
  15. package/dist/generated/capabilities/blockchain/solana/v1alpha/client_pb.js +0 -506
  16. package/dist/generated-sdk/capabilities/blockchain/aptos/v1alpha/client_sdk_gen.d.ts +0 -52
  17. package/dist/generated-sdk/capabilities/blockchain/aptos/v1alpha/client_sdk_gen.js +0 -186
  18. package/dist/generated-sdk/capabilities/blockchain/solana/v1alpha/client_sdk_gen.d.ts +0 -92
  19. package/dist/generated-sdk/capabilities/blockchain/solana/v1alpha/client_sdk_gen.js +0 -343
  20. package/dist/sdk/test/generated/capabilities/blockchain/aptos/v1alpha/aptos_mock_gen.d.ts +0 -25
  21. package/dist/sdk/test/generated/capabilities/blockchain/aptos/v1alpha/aptos_mock_gen.js +0 -111
  22. package/dist/sdk/test/generated/capabilities/blockchain/solana/v1alpha/solana_mock_gen.d.ts +0 -33
  23. package/dist/sdk/test/generated/capabilities/blockchain/solana/v1alpha/solana_mock_gen.js +0 -178
@@ -1,2904 +0,0 @@
1
- import type { Message } from '@bufbuild/protobuf';
2
- import type { GenEnum, GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
3
- import type { ReportResponse, ReportResponseJson } from '../../../../sdk/v1alpha/sdk_pb';
4
- import type { BigInt, BigIntJson } from '../../../../values/v1/values_pb';
5
- /**
6
- * Describes the file capabilities/blockchain/solana/v1alpha/client.proto.
7
- */
8
- export declare const file_capabilities_blockchain_solana_v1alpha_client: GenFile;
9
- /**
10
- * On-chain account state.
11
- *
12
- * @generated from message capabilities.blockchain.solana.v1alpha.Account
13
- */
14
- export type Account = Message<'capabilities.blockchain.solana.v1alpha.Account'> & {
15
- /**
16
- * balance in lamports (1e-9 SOL)
17
- *
18
- * @generated from field: uint64 lamports = 1 [jstype = JS_NORMAL];
19
- */
20
- lamports: bigint;
21
- /**
22
- * 32-byte program id (Pubkey)
23
- *
24
- * @generated from field: bytes owner = 2;
25
- */
26
- owner: Uint8Array;
27
- /**
28
- * account data (encoded or JSON)
29
- *
30
- * @generated from field: capabilities.blockchain.solana.v1alpha.DataBytesOrJSON data = 3;
31
- */
32
- data?: DataBytesOrJSON;
33
- /**
34
- * true if this is a program account
35
- *
36
- * @generated from field: bool executable = 4;
37
- */
38
- executable: boolean;
39
- /**
40
- * next rent epoch
41
- *
42
- * @generated from field: values.v1.BigInt rent_epoch = 5;
43
- */
44
- rentEpoch?: BigInt;
45
- /**
46
- * data length in bytes
47
- *
48
- * @generated from field: uint64 space = 6 [jstype = JS_NORMAL];
49
- */
50
- space: bigint;
51
- };
52
- /**
53
- * On-chain account state.
54
- *
55
- * @generated from message capabilities.blockchain.solana.v1alpha.Account
56
- */
57
- export type AccountJson = {
58
- /**
59
- * balance in lamports (1e-9 SOL)
60
- *
61
- * @generated from field: uint64 lamports = 1 [jstype = JS_NORMAL];
62
- */
63
- lamports?: string;
64
- /**
65
- * 32-byte program id (Pubkey)
66
- *
67
- * @generated from field: bytes owner = 2;
68
- */
69
- owner?: string;
70
- /**
71
- * account data (encoded or JSON)
72
- *
73
- * @generated from field: capabilities.blockchain.solana.v1alpha.DataBytesOrJSON data = 3;
74
- */
75
- data?: DataBytesOrJSONJson;
76
- /**
77
- * true if this is a program account
78
- *
79
- * @generated from field: bool executable = 4;
80
- */
81
- executable?: boolean;
82
- /**
83
- * next rent epoch
84
- *
85
- * @generated from field: values.v1.BigInt rent_epoch = 5;
86
- */
87
- rentEpoch?: BigIntJson;
88
- /**
89
- * data length in bytes
90
- *
91
- * @generated from field: uint64 space = 6 [jstype = JS_NORMAL];
92
- */
93
- space?: string;
94
- };
95
- /**
96
- * Describes the message capabilities.blockchain.solana.v1alpha.Account.
97
- * Use `create(AccountSchema)` to create a new message.
98
- */
99
- export declare const AccountSchema: GenMessage<Account, {
100
- jsonType: AccountJson;
101
- }>;
102
- /**
103
- * Compute budget configuration when submitting txs.
104
- *
105
- * @generated from message capabilities.blockchain.solana.v1alpha.ComputeConfig
106
- */
107
- export type ComputeConfig = Message<'capabilities.blockchain.solana.v1alpha.ComputeConfig'> & {
108
- /**
109
- * max CUs (approx per-tx limit)
110
- *
111
- * @generated from field: uint32 compute_limit = 1;
112
- */
113
- computeLimit: number;
114
- /**
115
- * max lamports per CU
116
- *
117
- * @generated from field: uint64 compute_max_price = 2 [jstype = JS_NORMAL];
118
- */
119
- computeMaxPrice: bigint;
120
- };
121
- /**
122
- * Compute budget configuration when submitting txs.
123
- *
124
- * @generated from message capabilities.blockchain.solana.v1alpha.ComputeConfig
125
- */
126
- export type ComputeConfigJson = {
127
- /**
128
- * max CUs (approx per-tx limit)
129
- *
130
- * @generated from field: uint32 compute_limit = 1;
131
- */
132
- computeLimit?: number;
133
- /**
134
- * max lamports per CU
135
- *
136
- * @generated from field: uint64 compute_max_price = 2 [jstype = JS_NORMAL];
137
- */
138
- computeMaxPrice?: string;
139
- };
140
- /**
141
- * Describes the message capabilities.blockchain.solana.v1alpha.ComputeConfig.
142
- * Use `create(ComputeConfigSchema)` to create a new message.
143
- */
144
- export declare const ComputeConfigSchema: GenMessage<ComputeConfig, {
145
- jsonType: ComputeConfigJson;
146
- }>;
147
- /**
148
- * Raw bytes vs parsed JSON (as returned by RPC).
149
- *
150
- * @generated from message capabilities.blockchain.solana.v1alpha.DataBytesOrJSON
151
- */
152
- export type DataBytesOrJSON = Message<'capabilities.blockchain.solana.v1alpha.DataBytesOrJSON'> & {
153
- /**
154
- * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1;
155
- */
156
- encoding: EncodingType;
157
- /**
158
- * @generated from oneof capabilities.blockchain.solana.v1alpha.DataBytesOrJSON.body
159
- */
160
- body: {
161
- /**
162
- * program data (node’s base64/base58 decoded)
163
- *
164
- * @generated from field: bytes raw = 2;
165
- */
166
- value: Uint8Array;
167
- case: 'raw';
168
- } | {
169
- /**
170
- * json: UTF-8 bytes of the jsonParsed payload.
171
- *
172
- * @generated from field: bytes json = 3;
173
- */
174
- value: Uint8Array;
175
- case: 'json';
176
- } | {
177
- case: undefined;
178
- value?: undefined;
179
- };
180
- };
181
- /**
182
- * Raw bytes vs parsed JSON (as returned by RPC).
183
- *
184
- * @generated from message capabilities.blockchain.solana.v1alpha.DataBytesOrJSON
185
- */
186
- export type DataBytesOrJSONJson = {
187
- /**
188
- * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1;
189
- */
190
- encoding?: EncodingTypeJson;
191
- /**
192
- * program data (node’s base64/base58 decoded)
193
- *
194
- * @generated from field: bytes raw = 2;
195
- */
196
- raw?: string;
197
- /**
198
- * json: UTF-8 bytes of the jsonParsed payload.
199
- *
200
- * @generated from field: bytes json = 3;
201
- */
202
- json?: string;
203
- };
204
- /**
205
- * Describes the message capabilities.blockchain.solana.v1alpha.DataBytesOrJSON.
206
- * Use `create(DataBytesOrJSONSchema)` to create a new message.
207
- */
208
- export declare const DataBytesOrJSONSchema: GenMessage<DataBytesOrJSON, {
209
- jsonType: DataBytesOrJSONJson;
210
- }>;
211
- /**
212
- * Return a slice of account data.
213
- *
214
- * @generated from message capabilities.blockchain.solana.v1alpha.DataSlice
215
- */
216
- export type DataSlice = Message<'capabilities.blockchain.solana.v1alpha.DataSlice'> & {
217
- /**
218
- * start byte
219
- *
220
- * @generated from field: uint64 offset = 1 [jstype = JS_NORMAL];
221
- */
222
- offset: bigint;
223
- /**
224
- * number of bytes
225
- *
226
- * @generated from field: uint64 length = 2 [jstype = JS_NORMAL];
227
- */
228
- length: bigint;
229
- };
230
- /**
231
- * Return a slice of account data.
232
- *
233
- * @generated from message capabilities.blockchain.solana.v1alpha.DataSlice
234
- */
235
- export type DataSliceJson = {
236
- /**
237
- * start byte
238
- *
239
- * @generated from field: uint64 offset = 1 [jstype = JS_NORMAL];
240
- */
241
- offset?: string;
242
- /**
243
- * number of bytes
244
- *
245
- * @generated from field: uint64 length = 2 [jstype = JS_NORMAL];
246
- */
247
- length?: string;
248
- };
249
- /**
250
- * Describes the message capabilities.blockchain.solana.v1alpha.DataSlice.
251
- * Use `create(DataSliceSchema)` to create a new message.
252
- */
253
- export declare const DataSliceSchema: GenMessage<DataSlice, {
254
- jsonType: DataSliceJson;
255
- }>;
256
- /**
257
- * Options for GetAccountInfo.
258
- *
259
- * @generated from message capabilities.blockchain.solana.v1alpha.GetAccountInfoOpts
260
- */
261
- export type GetAccountInfoOpts = Message<'capabilities.blockchain.solana.v1alpha.GetAccountInfoOpts'> & {
262
- /**
263
- * data encoding
264
- *
265
- * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1;
266
- */
267
- encoding: EncodingType;
268
- /**
269
- * read consistency
270
- *
271
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2;
272
- */
273
- commitment: CommitmentType;
274
- /**
275
- * optional slice window
276
- *
277
- * @generated from field: capabilities.blockchain.solana.v1alpha.DataSlice data_slice = 3;
278
- */
279
- dataSlice?: DataSlice;
280
- /**
281
- * lower bound slot
282
- *
283
- * @generated from field: uint64 min_context_slot = 4 [jstype = JS_NORMAL];
284
- */
285
- minContextSlot: bigint;
286
- };
287
- /**
288
- * Options for GetAccountInfo.
289
- *
290
- * @generated from message capabilities.blockchain.solana.v1alpha.GetAccountInfoOpts
291
- */
292
- export type GetAccountInfoOptsJson = {
293
- /**
294
- * data encoding
295
- *
296
- * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1;
297
- */
298
- encoding?: EncodingTypeJson;
299
- /**
300
- * read consistency
301
- *
302
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2;
303
- */
304
- commitment?: CommitmentTypeJson;
305
- /**
306
- * optional slice window
307
- *
308
- * @generated from field: capabilities.blockchain.solana.v1alpha.DataSlice data_slice = 3;
309
- */
310
- dataSlice?: DataSliceJson;
311
- /**
312
- * lower bound slot
313
- *
314
- * @generated from field: uint64 min_context_slot = 4 [jstype = JS_NORMAL];
315
- */
316
- minContextSlot?: string;
317
- };
318
- /**
319
- * Describes the message capabilities.blockchain.solana.v1alpha.GetAccountInfoOpts.
320
- * Use `create(GetAccountInfoOptsSchema)` to create a new message.
321
- */
322
- export declare const GetAccountInfoOptsSchema: GenMessage<GetAccountInfoOpts, {
323
- jsonType: GetAccountInfoOptsJson;
324
- }>;
325
- /**
326
- * Reply for GetAccountInfoWithOpts.
327
- *
328
- * @generated from message capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsReply
329
- */
330
- export type GetAccountInfoWithOptsReply = Message<'capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsReply'> & {
331
- /**
332
- * read slot
333
- *
334
- * @generated from field: capabilities.blockchain.solana.v1alpha.RPCContext rpc_context = 1;
335
- */
336
- rpcContext?: RPCContext;
337
- /**
338
- * account (may be empty)
339
- *
340
- * @generated from field: optional capabilities.blockchain.solana.v1alpha.Account value = 2;
341
- */
342
- value?: Account;
343
- };
344
- /**
345
- * Reply for GetAccountInfoWithOpts.
346
- *
347
- * @generated from message capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsReply
348
- */
349
- export type GetAccountInfoWithOptsReplyJson = {
350
- /**
351
- * read slot
352
- *
353
- * @generated from field: capabilities.blockchain.solana.v1alpha.RPCContext rpc_context = 1;
354
- */
355
- rpcContext?: RPCContextJson;
356
- /**
357
- * account (may be empty)
358
- *
359
- * @generated from field: optional capabilities.blockchain.solana.v1alpha.Account value = 2;
360
- */
361
- value?: AccountJson;
362
- };
363
- /**
364
- * Describes the message capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsReply.
365
- * Use `create(GetAccountInfoWithOptsReplySchema)` to create a new message.
366
- */
367
- export declare const GetAccountInfoWithOptsReplySchema: GenMessage<GetAccountInfoWithOptsReply, {
368
- jsonType: GetAccountInfoWithOptsReplyJson;
369
- }>;
370
- /**
371
- * Request for GetAccountInfoWithOpts.
372
- *
373
- * @generated from message capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsRequest
374
- */
375
- export type GetAccountInfoWithOptsRequest = Message<'capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsRequest'> & {
376
- /**
377
- * 32-byte Pubkey
378
- *
379
- * @generated from field: bytes account = 1;
380
- */
381
- account: Uint8Array;
382
- /**
383
- * @generated from field: capabilities.blockchain.solana.v1alpha.GetAccountInfoOpts opts = 2;
384
- */
385
- opts?: GetAccountInfoOpts;
386
- };
387
- /**
388
- * Request for GetAccountInfoWithOpts.
389
- *
390
- * @generated from message capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsRequest
391
- */
392
- export type GetAccountInfoWithOptsRequestJson = {
393
- /**
394
- * 32-byte Pubkey
395
- *
396
- * @generated from field: bytes account = 1;
397
- */
398
- account?: string;
399
- /**
400
- * @generated from field: capabilities.blockchain.solana.v1alpha.GetAccountInfoOpts opts = 2;
401
- */
402
- opts?: GetAccountInfoOptsJson;
403
- };
404
- /**
405
- * Describes the message capabilities.blockchain.solana.v1alpha.GetAccountInfoWithOptsRequest.
406
- * Use `create(GetAccountInfoWithOptsRequestSchema)` to create a new message.
407
- */
408
- export declare const GetAccountInfoWithOptsRequestSchema: GenMessage<GetAccountInfoWithOptsRequest, {
409
- jsonType: GetAccountInfoWithOptsRequestJson;
410
- }>;
411
- /**
412
- * Reply for GetBalance.
413
- *
414
- * @generated from message capabilities.blockchain.solana.v1alpha.GetBalanceReply
415
- */
416
- export type GetBalanceReply = Message<'capabilities.blockchain.solana.v1alpha.GetBalanceReply'> & {
417
- /**
418
- * lamports
419
- *
420
- * @generated from field: uint64 value = 1 [jstype = JS_NORMAL];
421
- */
422
- value: bigint;
423
- };
424
- /**
425
- * Reply for GetBalance.
426
- *
427
- * @generated from message capabilities.blockchain.solana.v1alpha.GetBalanceReply
428
- */
429
- export type GetBalanceReplyJson = {
430
- /**
431
- * lamports
432
- *
433
- * @generated from field: uint64 value = 1 [jstype = JS_NORMAL];
434
- */
435
- value?: string;
436
- };
437
- /**
438
- * Describes the message capabilities.blockchain.solana.v1alpha.GetBalanceReply.
439
- * Use `create(GetBalanceReplySchema)` to create a new message.
440
- */
441
- export declare const GetBalanceReplySchema: GenMessage<GetBalanceReply, {
442
- jsonType: GetBalanceReplyJson;
443
- }>;
444
- /**
445
- * Request for GetBalance.
446
- *
447
- * @generated from message capabilities.blockchain.solana.v1alpha.GetBalanceRequest
448
- */
449
- export type GetBalanceRequest = Message<'capabilities.blockchain.solana.v1alpha.GetBalanceRequest'> & {
450
- /**
451
- * 32-byte Pubkey
452
- *
453
- * @generated from field: bytes addr = 1;
454
- */
455
- addr: Uint8Array;
456
- /**
457
- * read consistency
458
- *
459
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2;
460
- */
461
- commitment: CommitmentType;
462
- };
463
- /**
464
- * Request for GetBalance.
465
- *
466
- * @generated from message capabilities.blockchain.solana.v1alpha.GetBalanceRequest
467
- */
468
- export type GetBalanceRequestJson = {
469
- /**
470
- * 32-byte Pubkey
471
- *
472
- * @generated from field: bytes addr = 1;
473
- */
474
- addr?: string;
475
- /**
476
- * read consistency
477
- *
478
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2;
479
- */
480
- commitment?: CommitmentTypeJson;
481
- };
482
- /**
483
- * Describes the message capabilities.blockchain.solana.v1alpha.GetBalanceRequest.
484
- * Use `create(GetBalanceRequestSchema)` to create a new message.
485
- */
486
- export declare const GetBalanceRequestSchema: GenMessage<GetBalanceRequest, {
487
- jsonType: GetBalanceRequestJson;
488
- }>;
489
- /**
490
- * Options for GetBlock.
491
- *
492
- * @generated from message capabilities.blockchain.solana.v1alpha.GetBlockOpts
493
- */
494
- export type GetBlockOpts = Message<'capabilities.blockchain.solana.v1alpha.GetBlockOpts'> & {
495
- /**
496
- * read consistency
497
- *
498
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 4;
499
- */
500
- commitment: CommitmentType;
501
- };
502
- /**
503
- * Options for GetBlock.
504
- *
505
- * @generated from message capabilities.blockchain.solana.v1alpha.GetBlockOpts
506
- */
507
- export type GetBlockOptsJson = {
508
- /**
509
- * read consistency
510
- *
511
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 4;
512
- */
513
- commitment?: CommitmentTypeJson;
514
- };
515
- /**
516
- * Describes the message capabilities.blockchain.solana.v1alpha.GetBlockOpts.
517
- * Use `create(GetBlockOptsSchema)` to create a new message.
518
- */
519
- export declare const GetBlockOptsSchema: GenMessage<GetBlockOpts, {
520
- jsonType: GetBlockOptsJson;
521
- }>;
522
- /**
523
- * Block response.
524
- *
525
- * @generated from message capabilities.blockchain.solana.v1alpha.GetBlockReply
526
- */
527
- export type GetBlockReply = Message<'capabilities.blockchain.solana.v1alpha.GetBlockReply'> & {
528
- /**
529
- * 32-byte block hash
530
- *
531
- * @generated from field: bytes blockhash = 1;
532
- */
533
- blockhash: Uint8Array;
534
- /**
535
- * 32-byte parent hash
536
- *
537
- * @generated from field: bytes previous_blockhash = 2;
538
- */
539
- previousBlockhash: Uint8Array;
540
- /**
541
- * @generated from field: uint64 parent_slot = 3 [jstype = JS_NORMAL];
542
- */
543
- parentSlot: bigint;
544
- /**
545
- * unix seconds, node may not report it
546
- *
547
- * @generated from field: optional int64 block_time = 4 [jstype = JS_NORMAL];
548
- */
549
- blockTime?: bigint;
550
- /**
551
- * chain height
552
- *
553
- * @generated from field: uint64 block_height = 5 [jstype = JS_NORMAL];
554
- */
555
- blockHeight: bigint;
556
- };
557
- /**
558
- * Block response.
559
- *
560
- * @generated from message capabilities.blockchain.solana.v1alpha.GetBlockReply
561
- */
562
- export type GetBlockReplyJson = {
563
- /**
564
- * 32-byte block hash
565
- *
566
- * @generated from field: bytes blockhash = 1;
567
- */
568
- blockhash?: string;
569
- /**
570
- * 32-byte parent hash
571
- *
572
- * @generated from field: bytes previous_blockhash = 2;
573
- */
574
- previousBlockhash?: string;
575
- /**
576
- * @generated from field: uint64 parent_slot = 3 [jstype = JS_NORMAL];
577
- */
578
- parentSlot?: string;
579
- /**
580
- * unix seconds, node may not report it
581
- *
582
- * @generated from field: optional int64 block_time = 4 [jstype = JS_NORMAL];
583
- */
584
- blockTime?: string;
585
- /**
586
- * chain height
587
- *
588
- * @generated from field: uint64 block_height = 5 [jstype = JS_NORMAL];
589
- */
590
- blockHeight?: string;
591
- };
592
- /**
593
- * Describes the message capabilities.blockchain.solana.v1alpha.GetBlockReply.
594
- * Use `create(GetBlockReplySchema)` to create a new message.
595
- */
596
- export declare const GetBlockReplySchema: GenMessage<GetBlockReply, {
597
- jsonType: GetBlockReplyJson;
598
- }>;
599
- /**
600
- * Request for GetBlock.
601
- *
602
- * @generated from message capabilities.blockchain.solana.v1alpha.GetBlockRequest
603
- */
604
- export type GetBlockRequest = Message<'capabilities.blockchain.solana.v1alpha.GetBlockRequest'> & {
605
- /**
606
- * target slot
607
- *
608
- * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL];
609
- */
610
- slot: bigint;
611
- /**
612
- * @generated from field: capabilities.blockchain.solana.v1alpha.GetBlockOpts opts = 2;
613
- */
614
- opts?: GetBlockOpts;
615
- };
616
- /**
617
- * Request for GetBlock.
618
- *
619
- * @generated from message capabilities.blockchain.solana.v1alpha.GetBlockRequest
620
- */
621
- export type GetBlockRequestJson = {
622
- /**
623
- * target slot
624
- *
625
- * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL];
626
- */
627
- slot?: string;
628
- /**
629
- * @generated from field: capabilities.blockchain.solana.v1alpha.GetBlockOpts opts = 2;
630
- */
631
- opts?: GetBlockOptsJson;
632
- };
633
- /**
634
- * Describes the message capabilities.blockchain.solana.v1alpha.GetBlockRequest.
635
- * Use `create(GetBlockRequestSchema)` to create a new message.
636
- */
637
- export declare const GetBlockRequestSchema: GenMessage<GetBlockRequest, {
638
- jsonType: GetBlockRequestJson;
639
- }>;
640
- /**
641
- * Fee quote for a base58-encoded Message.
642
- *
643
- * @generated from message capabilities.blockchain.solana.v1alpha.GetFeeForMessageReply
644
- */
645
- export type GetFeeForMessageReply = Message<'capabilities.blockchain.solana.v1alpha.GetFeeForMessageReply'> & {
646
- /**
647
- * lamports
648
- *
649
- * @generated from field: uint64 fee = 1 [jstype = JS_NORMAL];
650
- */
651
- fee: bigint;
652
- };
653
- /**
654
- * Fee quote for a base58-encoded Message.
655
- *
656
- * @generated from message capabilities.blockchain.solana.v1alpha.GetFeeForMessageReply
657
- */
658
- export type GetFeeForMessageReplyJson = {
659
- /**
660
- * lamports
661
- *
662
- * @generated from field: uint64 fee = 1 [jstype = JS_NORMAL];
663
- */
664
- fee?: string;
665
- };
666
- /**
667
- * Describes the message capabilities.blockchain.solana.v1alpha.GetFeeForMessageReply.
668
- * Use `create(GetFeeForMessageReplySchema)` to create a new message.
669
- */
670
- export declare const GetFeeForMessageReplySchema: GenMessage<GetFeeForMessageReply, {
671
- jsonType: GetFeeForMessageReplyJson;
672
- }>;
673
- /**
674
- * @generated from message capabilities.blockchain.solana.v1alpha.GetFeeForMessageRequest
675
- */
676
- export type GetFeeForMessageRequest = Message<'capabilities.blockchain.solana.v1alpha.GetFeeForMessageRequest'> & {
677
- /**
678
- * must be base58-encoded Message
679
- *
680
- * @generated from field: string message = 1;
681
- */
682
- message: string;
683
- /**
684
- * read consistency
685
- *
686
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2;
687
- */
688
- commitment: CommitmentType;
689
- };
690
- /**
691
- * @generated from message capabilities.blockchain.solana.v1alpha.GetFeeForMessageRequest
692
- */
693
- export type GetFeeForMessageRequestJson = {
694
- /**
695
- * must be base58-encoded Message
696
- *
697
- * @generated from field: string message = 1;
698
- */
699
- message?: string;
700
- /**
701
- * read consistency
702
- *
703
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2;
704
- */
705
- commitment?: CommitmentTypeJson;
706
- };
707
- /**
708
- * Describes the message capabilities.blockchain.solana.v1alpha.GetFeeForMessageRequest.
709
- * Use `create(GetFeeForMessageRequestSchema)` to create a new message.
710
- */
711
- export declare const GetFeeForMessageRequestSchema: GenMessage<GetFeeForMessageRequest, {
712
- jsonType: GetFeeForMessageRequestJson;
713
- }>;
714
- /**
715
- * Options for GetMultipleAccounts.
716
- *
717
- * @generated from message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsOpts
718
- */
719
- export type GetMultipleAccountsOpts = Message<'capabilities.blockchain.solana.v1alpha.GetMultipleAccountsOpts'> & {
720
- /**
721
- * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1;
722
- */
723
- encoding: EncodingType;
724
- /**
725
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2;
726
- */
727
- commitment: CommitmentType;
728
- /**
729
- * @generated from field: capabilities.blockchain.solana.v1alpha.DataSlice data_slice = 3;
730
- */
731
- dataSlice?: DataSlice;
732
- /**
733
- * @generated from field: uint64 min_context_slot = 4 [jstype = JS_NORMAL];
734
- */
735
- minContextSlot: bigint;
736
- };
737
- /**
738
- * Options for GetMultipleAccounts.
739
- *
740
- * @generated from message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsOpts
741
- */
742
- export type GetMultipleAccountsOptsJson = {
743
- /**
744
- * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1;
745
- */
746
- encoding?: EncodingTypeJson;
747
- /**
748
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2;
749
- */
750
- commitment?: CommitmentTypeJson;
751
- /**
752
- * @generated from field: capabilities.blockchain.solana.v1alpha.DataSlice data_slice = 3;
753
- */
754
- dataSlice?: DataSliceJson;
755
- /**
756
- * @generated from field: uint64 min_context_slot = 4 [jstype = JS_NORMAL];
757
- */
758
- minContextSlot?: string;
759
- };
760
- /**
761
- * Describes the message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsOpts.
762
- * Use `create(GetMultipleAccountsOptsSchema)` to create a new message.
763
- */
764
- export declare const GetMultipleAccountsOptsSchema: GenMessage<GetMultipleAccountsOpts, {
765
- jsonType: GetMultipleAccountsOptsJson;
766
- }>;
767
- /**
768
- * @generated from message capabilities.blockchain.solana.v1alpha.OptionalAccountWrapper
769
- */
770
- export type OptionalAccountWrapper = Message<'capabilities.blockchain.solana.v1alpha.OptionalAccountWrapper'> & {
771
- /**
772
- * @generated from field: optional capabilities.blockchain.solana.v1alpha.Account account = 1;
773
- */
774
- account?: Account;
775
- };
776
- /**
777
- * @generated from message capabilities.blockchain.solana.v1alpha.OptionalAccountWrapper
778
- */
779
- export type OptionalAccountWrapperJson = {
780
- /**
781
- * @generated from field: optional capabilities.blockchain.solana.v1alpha.Account account = 1;
782
- */
783
- account?: AccountJson;
784
- };
785
- /**
786
- * Describes the message capabilities.blockchain.solana.v1alpha.OptionalAccountWrapper.
787
- * Use `create(OptionalAccountWrapperSchema)` to create a new message.
788
- */
789
- export declare const OptionalAccountWrapperSchema: GenMessage<OptionalAccountWrapper, {
790
- jsonType: OptionalAccountWrapperJson;
791
- }>;
792
- /**
793
- * Reply for GetMultipleAccountsWithOpts.
794
- *
795
- * @generated from message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsReply
796
- */
797
- export type GetMultipleAccountsWithOptsReply = Message<'capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsReply'> & {
798
- /**
799
- * read slot
800
- *
801
- * @generated from field: capabilities.blockchain.solana.v1alpha.RPCContext rpc_context = 1;
802
- */
803
- rpcContext?: RPCContext;
804
- /**
805
- * accounts (nil entries allowed)
806
- *
807
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.OptionalAccountWrapper value = 2;
808
- */
809
- value: OptionalAccountWrapper[];
810
- };
811
- /**
812
- * Reply for GetMultipleAccountsWithOpts.
813
- *
814
- * @generated from message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsReply
815
- */
816
- export type GetMultipleAccountsWithOptsReplyJson = {
817
- /**
818
- * read slot
819
- *
820
- * @generated from field: capabilities.blockchain.solana.v1alpha.RPCContext rpc_context = 1;
821
- */
822
- rpcContext?: RPCContextJson;
823
- /**
824
- * accounts (nil entries allowed)
825
- *
826
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.OptionalAccountWrapper value = 2;
827
- */
828
- value?: OptionalAccountWrapperJson[];
829
- };
830
- /**
831
- * Describes the message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsReply.
832
- * Use `create(GetMultipleAccountsWithOptsReplySchema)` to create a new message.
833
- */
834
- export declare const GetMultipleAccountsWithOptsReplySchema: GenMessage<GetMultipleAccountsWithOptsReply, {
835
- jsonType: GetMultipleAccountsWithOptsReplyJson;
836
- }>;
837
- /**
838
- * Request for GetMultipleAccountsWithOpts.
839
- *
840
- * @generated from message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsRequest
841
- */
842
- export type GetMultipleAccountsWithOptsRequest = Message<'capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsRequest'> & {
843
- /**
844
- * list of 32-byte Pubkeys
845
- *
846
- * @generated from field: repeated bytes accounts = 1;
847
- */
848
- accounts: Uint8Array[];
849
- /**
850
- * @generated from field: capabilities.blockchain.solana.v1alpha.GetMultipleAccountsOpts opts = 2;
851
- */
852
- opts?: GetMultipleAccountsOpts;
853
- };
854
- /**
855
- * Request for GetMultipleAccountsWithOpts.
856
- *
857
- * @generated from message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsRequest
858
- */
859
- export type GetMultipleAccountsWithOptsRequestJson = {
860
- /**
861
- * list of 32-byte Pubkeys
862
- *
863
- * @generated from field: repeated bytes accounts = 1;
864
- */
865
- accounts?: string[];
866
- /**
867
- * @generated from field: capabilities.blockchain.solana.v1alpha.GetMultipleAccountsOpts opts = 2;
868
- */
869
- opts?: GetMultipleAccountsOptsJson;
870
- };
871
- /**
872
- * Describes the message capabilities.blockchain.solana.v1alpha.GetMultipleAccountsWithOptsRequest.
873
- * Use `create(GetMultipleAccountsWithOptsRequestSchema)` to create a new message.
874
- */
875
- export declare const GetMultipleAccountsWithOptsRequestSchema: GenMessage<GetMultipleAccountsWithOptsRequest, {
876
- jsonType: GetMultipleAccountsWithOptsRequestJson;
877
- }>;
878
- /**
879
- * Reply for GetSignatureStatuses.
880
- *
881
- * @generated from message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesReply
882
- */
883
- export type GetSignatureStatusesReply = Message<'capabilities.blockchain.solana.v1alpha.GetSignatureStatusesReply'> & {
884
- /**
885
- * 1:1 with input
886
- *
887
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.GetSignatureStatusesResult results = 1;
888
- */
889
- results: GetSignatureStatusesResult[];
890
- };
891
- /**
892
- * Reply for GetSignatureStatuses.
893
- *
894
- * @generated from message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesReply
895
- */
896
- export type GetSignatureStatusesReplyJson = {
897
- /**
898
- * 1:1 with input
899
- *
900
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.GetSignatureStatusesResult results = 1;
901
- */
902
- results?: GetSignatureStatusesResultJson[];
903
- };
904
- /**
905
- * Describes the message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesReply.
906
- * Use `create(GetSignatureStatusesReplySchema)` to create a new message.
907
- */
908
- export declare const GetSignatureStatusesReplySchema: GenMessage<GetSignatureStatusesReply, {
909
- jsonType: GetSignatureStatusesReplyJson;
910
- }>;
911
- /**
912
- * Request for GetSignatureStatuses.
913
- *
914
- * @generated from message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesRequest
915
- */
916
- export type GetSignatureStatusesRequest = Message<'capabilities.blockchain.solana.v1alpha.GetSignatureStatusesRequest'> & {
917
- /**
918
- * 64-byte signatures
919
- *
920
- * @generated from field: repeated bytes sigs = 1;
921
- */
922
- sigs: Uint8Array[];
923
- };
924
- /**
925
- * Request for GetSignatureStatuses.
926
- *
927
- * @generated from message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesRequest
928
- */
929
- export type GetSignatureStatusesRequestJson = {
930
- /**
931
- * 64-byte signatures
932
- *
933
- * @generated from field: repeated bytes sigs = 1;
934
- */
935
- sigs?: string[];
936
- };
937
- /**
938
- * Describes the message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesRequest.
939
- * Use `create(GetSignatureStatusesRequestSchema)` to create a new message.
940
- */
941
- export declare const GetSignatureStatusesRequestSchema: GenMessage<GetSignatureStatusesRequest, {
942
- jsonType: GetSignatureStatusesRequestJson;
943
- }>;
944
- /**
945
- * Per-signature status.
946
- *
947
- * @generated from message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesResult
948
- */
949
- export type GetSignatureStatusesResult = Message<'capabilities.blockchain.solana.v1alpha.GetSignatureStatusesResult'> & {
950
- /**
951
- * processed slot
952
- *
953
- * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL];
954
- */
955
- slot: bigint;
956
- /**
957
- * null->0 here
958
- *
959
- * @generated from field: optional uint64 confirmations = 2 [jstype = JS_NORMAL];
960
- */
961
- confirmations?: bigint;
962
- /**
963
- * error JSON string (empty on success)
964
- *
965
- * @generated from field: string err = 3;
966
- */
967
- err: string;
968
- /**
969
- * @generated from field: capabilities.blockchain.solana.v1alpha.ConfirmationStatusType confirmation_status = 4;
970
- */
971
- confirmationStatus: ConfirmationStatusType;
972
- };
973
- /**
974
- * Per-signature status.
975
- *
976
- * @generated from message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesResult
977
- */
978
- export type GetSignatureStatusesResultJson = {
979
- /**
980
- * processed slot
981
- *
982
- * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL];
983
- */
984
- slot?: string;
985
- /**
986
- * null->0 here
987
- *
988
- * @generated from field: optional uint64 confirmations = 2 [jstype = JS_NORMAL];
989
- */
990
- confirmations?: string;
991
- /**
992
- * error JSON string (empty on success)
993
- *
994
- * @generated from field: string err = 3;
995
- */
996
- err?: string;
997
- /**
998
- * @generated from field: capabilities.blockchain.solana.v1alpha.ConfirmationStatusType confirmation_status = 4;
999
- */
1000
- confirmationStatus?: ConfirmationStatusTypeJson;
1001
- };
1002
- /**
1003
- * Describes the message capabilities.blockchain.solana.v1alpha.GetSignatureStatusesResult.
1004
- * Use `create(GetSignatureStatusesResultSchema)` to create a new message.
1005
- */
1006
- export declare const GetSignatureStatusesResultSchema: GenMessage<GetSignatureStatusesResult, {
1007
- jsonType: GetSignatureStatusesResultJson;
1008
- }>;
1009
- /**
1010
- * Current “height” (blocks below latest).
1011
- *
1012
- * @generated from message capabilities.blockchain.solana.v1alpha.GetSlotHeightReply
1013
- */
1014
- export type GetSlotHeightReply = Message<'capabilities.blockchain.solana.v1alpha.GetSlotHeightReply'> & {
1015
- /**
1016
- * @generated from field: uint64 height = 1 [jstype = JS_NORMAL];
1017
- */
1018
- height: bigint;
1019
- };
1020
- /**
1021
- * Current “height” (blocks below latest).
1022
- *
1023
- * @generated from message capabilities.blockchain.solana.v1alpha.GetSlotHeightReply
1024
- */
1025
- export type GetSlotHeightReplyJson = {
1026
- /**
1027
- * @generated from field: uint64 height = 1 [jstype = JS_NORMAL];
1028
- */
1029
- height?: string;
1030
- };
1031
- /**
1032
- * Describes the message capabilities.blockchain.solana.v1alpha.GetSlotHeightReply.
1033
- * Use `create(GetSlotHeightReplySchema)` to create a new message.
1034
- */
1035
- export declare const GetSlotHeightReplySchema: GenMessage<GetSlotHeightReply, {
1036
- jsonType: GetSlotHeightReplyJson;
1037
- }>;
1038
- /**
1039
- * @generated from message capabilities.blockchain.solana.v1alpha.GetSlotHeightRequest
1040
- */
1041
- export type GetSlotHeightRequest = Message<'capabilities.blockchain.solana.v1alpha.GetSlotHeightRequest'> & {
1042
- /**
1043
- * read consistency
1044
- *
1045
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 1;
1046
- */
1047
- commitment: CommitmentType;
1048
- };
1049
- /**
1050
- * @generated from message capabilities.blockchain.solana.v1alpha.GetSlotHeightRequest
1051
- */
1052
- export type GetSlotHeightRequestJson = {
1053
- /**
1054
- * read consistency
1055
- *
1056
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 1;
1057
- */
1058
- commitment?: CommitmentTypeJson;
1059
- };
1060
- /**
1061
- * Describes the message capabilities.blockchain.solana.v1alpha.GetSlotHeightRequest.
1062
- * Use `create(GetSlotHeightRequestSchema)` to create a new message.
1063
- */
1064
- export declare const GetSlotHeightRequestSchema: GenMessage<GetSlotHeightRequest, {
1065
- jsonType: GetSlotHeightRequestJson;
1066
- }>;
1067
- /**
1068
- * Message header counts.
1069
- *
1070
- * @generated from message capabilities.blockchain.solana.v1alpha.MessageHeader
1071
- */
1072
- export type MessageHeader = Message<'capabilities.blockchain.solana.v1alpha.MessageHeader'> & {
1073
- /**
1074
- * signer count
1075
- *
1076
- * @generated from field: uint32 num_required_signatures = 1;
1077
- */
1078
- numRequiredSignatures: number;
1079
- /**
1080
- * trailing signed RO
1081
- *
1082
- * @generated from field: uint32 num_readonly_signed_accounts = 2;
1083
- */
1084
- numReadonlySignedAccounts: number;
1085
- /**
1086
- * trailing unsigned RO
1087
- *
1088
- * @generated from field: uint32 num_readonly_unsigned_accounts = 3;
1089
- */
1090
- numReadonlyUnsignedAccounts: number;
1091
- };
1092
- /**
1093
- * Message header counts.
1094
- *
1095
- * @generated from message capabilities.blockchain.solana.v1alpha.MessageHeader
1096
- */
1097
- export type MessageHeaderJson = {
1098
- /**
1099
- * signer count
1100
- *
1101
- * @generated from field: uint32 num_required_signatures = 1;
1102
- */
1103
- numRequiredSignatures?: number;
1104
- /**
1105
- * trailing signed RO
1106
- *
1107
- * @generated from field: uint32 num_readonly_signed_accounts = 2;
1108
- */
1109
- numReadonlySignedAccounts?: number;
1110
- /**
1111
- * trailing unsigned RO
1112
- *
1113
- * @generated from field: uint32 num_readonly_unsigned_accounts = 3;
1114
- */
1115
- numReadonlyUnsignedAccounts?: number;
1116
- };
1117
- /**
1118
- * Describes the message capabilities.blockchain.solana.v1alpha.MessageHeader.
1119
- * Use `create(MessageHeaderSchema)` to create a new message.
1120
- */
1121
- export declare const MessageHeaderSchema: GenMessage<MessageHeader, {
1122
- jsonType: MessageHeaderJson;
1123
- }>;
1124
- /**
1125
- * Parsed message (no address tables).
1126
- *
1127
- * @generated from message capabilities.blockchain.solana.v1alpha.ParsedMessage
1128
- */
1129
- export type ParsedMessage = Message<'capabilities.blockchain.solana.v1alpha.ParsedMessage'> & {
1130
- /**
1131
- * 32-byte Hash
1132
- *
1133
- * @generated from field: bytes recent_blockhash = 1;
1134
- */
1135
- recentBlockhash: Uint8Array;
1136
- /**
1137
- * list of 32-byte Pubkeys
1138
- *
1139
- * @generated from field: repeated bytes account_keys = 2;
1140
- */
1141
- accountKeys: Uint8Array[];
1142
- /**
1143
- * @generated from field: capabilities.blockchain.solana.v1alpha.MessageHeader header = 3;
1144
- */
1145
- header?: MessageHeader;
1146
- /**
1147
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.CompiledInstruction instructions = 4;
1148
- */
1149
- instructions: CompiledInstruction[];
1150
- };
1151
- /**
1152
- * Parsed message (no address tables).
1153
- *
1154
- * @generated from message capabilities.blockchain.solana.v1alpha.ParsedMessage
1155
- */
1156
- export type ParsedMessageJson = {
1157
- /**
1158
- * 32-byte Hash
1159
- *
1160
- * @generated from field: bytes recent_blockhash = 1;
1161
- */
1162
- recentBlockhash?: string;
1163
- /**
1164
- * list of 32-byte Pubkeys
1165
- *
1166
- * @generated from field: repeated bytes account_keys = 2;
1167
- */
1168
- accountKeys?: string[];
1169
- /**
1170
- * @generated from field: capabilities.blockchain.solana.v1alpha.MessageHeader header = 3;
1171
- */
1172
- header?: MessageHeaderJson;
1173
- /**
1174
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.CompiledInstruction instructions = 4;
1175
- */
1176
- instructions?: CompiledInstructionJson[];
1177
- };
1178
- /**
1179
- * Describes the message capabilities.blockchain.solana.v1alpha.ParsedMessage.
1180
- * Use `create(ParsedMessageSchema)` to create a new message.
1181
- */
1182
- export declare const ParsedMessageSchema: GenMessage<ParsedMessage, {
1183
- jsonType: ParsedMessageJson;
1184
- }>;
1185
- /**
1186
- * Parsed transaction (signatures + message).
1187
- *
1188
- * @generated from message capabilities.blockchain.solana.v1alpha.ParsedTransaction
1189
- */
1190
- export type ParsedTransaction = Message<'capabilities.blockchain.solana.v1alpha.ParsedTransaction'> & {
1191
- /**
1192
- * 64-byte signatures
1193
- *
1194
- * @generated from field: repeated bytes signatures = 1;
1195
- */
1196
- signatures: Uint8Array[];
1197
- /**
1198
- * @generated from field: capabilities.blockchain.solana.v1alpha.ParsedMessage message = 2;
1199
- */
1200
- message?: ParsedMessage;
1201
- };
1202
- /**
1203
- * Parsed transaction (signatures + message).
1204
- *
1205
- * @generated from message capabilities.blockchain.solana.v1alpha.ParsedTransaction
1206
- */
1207
- export type ParsedTransactionJson = {
1208
- /**
1209
- * 64-byte signatures
1210
- *
1211
- * @generated from field: repeated bytes signatures = 1;
1212
- */
1213
- signatures?: string[];
1214
- /**
1215
- * @generated from field: capabilities.blockchain.solana.v1alpha.ParsedMessage message = 2;
1216
- */
1217
- message?: ParsedMessageJson;
1218
- };
1219
- /**
1220
- * Describes the message capabilities.blockchain.solana.v1alpha.ParsedTransaction.
1221
- * Use `create(ParsedTransactionSchema)` to create a new message.
1222
- */
1223
- export declare const ParsedTransactionSchema: GenMessage<ParsedTransaction, {
1224
- jsonType: ParsedTransactionJson;
1225
- }>;
1226
- /**
1227
- * Token amount (UI-friendly).
1228
- *
1229
- * @generated from message capabilities.blockchain.solana.v1alpha.UiTokenAmount
1230
- */
1231
- export type UiTokenAmount = Message<'capabilities.blockchain.solana.v1alpha.UiTokenAmount'> & {
1232
- /**
1233
- * raw integer string
1234
- *
1235
- * @generated from field: string amount = 1;
1236
- */
1237
- amount: string;
1238
- /**
1239
- * mint decimals
1240
- *
1241
- * @generated from field: uint32 decimals = 2;
1242
- */
1243
- decimals: number;
1244
- /**
1245
- * amount / 10^decimals
1246
- *
1247
- * @generated from field: string ui_amount_string = 4;
1248
- */
1249
- uiAmountString: string;
1250
- };
1251
- /**
1252
- * Token amount (UI-friendly).
1253
- *
1254
- * @generated from message capabilities.blockchain.solana.v1alpha.UiTokenAmount
1255
- */
1256
- export type UiTokenAmountJson = {
1257
- /**
1258
- * raw integer string
1259
- *
1260
- * @generated from field: string amount = 1;
1261
- */
1262
- amount?: string;
1263
- /**
1264
- * mint decimals
1265
- *
1266
- * @generated from field: uint32 decimals = 2;
1267
- */
1268
- decimals?: number;
1269
- /**
1270
- * amount / 10^decimals
1271
- *
1272
- * @generated from field: string ui_amount_string = 4;
1273
- */
1274
- uiAmountString?: string;
1275
- };
1276
- /**
1277
- * Describes the message capabilities.blockchain.solana.v1alpha.UiTokenAmount.
1278
- * Use `create(UiTokenAmountSchema)` to create a new message.
1279
- */
1280
- export declare const UiTokenAmountSchema: GenMessage<UiTokenAmount, {
1281
- jsonType: UiTokenAmountJson;
1282
- }>;
1283
- /**
1284
- * SPL token balance entry.
1285
- *
1286
- * @generated from message capabilities.blockchain.solana.v1alpha.TokenBalance
1287
- */
1288
- export type TokenBalance = Message<'capabilities.blockchain.solana.v1alpha.TokenBalance'> & {
1289
- /**
1290
- * index in account_keys
1291
- *
1292
- * @generated from field: uint32 account_index = 1;
1293
- */
1294
- accountIndex: number;
1295
- /**
1296
- * 32-byte owner (optional)
1297
- *
1298
- * @generated from field: optional bytes owner = 2;
1299
- */
1300
- owner?: Uint8Array;
1301
- /**
1302
- * 32-byte token program (optional)
1303
- *
1304
- * @generated from field: optional bytes program_id = 3;
1305
- */
1306
- programId?: Uint8Array;
1307
- /**
1308
- * 32-byte mint
1309
- *
1310
- * @generated from field: bytes mint = 4;
1311
- */
1312
- mint: Uint8Array;
1313
- /**
1314
- * formatted amounts
1315
- *
1316
- * @generated from field: capabilities.blockchain.solana.v1alpha.UiTokenAmount ui = 5;
1317
- */
1318
- ui?: UiTokenAmount;
1319
- };
1320
- /**
1321
- * SPL token balance entry.
1322
- *
1323
- * @generated from message capabilities.blockchain.solana.v1alpha.TokenBalance
1324
- */
1325
- export type TokenBalanceJson = {
1326
- /**
1327
- * index in account_keys
1328
- *
1329
- * @generated from field: uint32 account_index = 1;
1330
- */
1331
- accountIndex?: number;
1332
- /**
1333
- * 32-byte owner (optional)
1334
- *
1335
- * @generated from field: optional bytes owner = 2;
1336
- */
1337
- owner?: string;
1338
- /**
1339
- * 32-byte token program (optional)
1340
- *
1341
- * @generated from field: optional bytes program_id = 3;
1342
- */
1343
- programId?: string;
1344
- /**
1345
- * 32-byte mint
1346
- *
1347
- * @generated from field: bytes mint = 4;
1348
- */
1349
- mint?: string;
1350
- /**
1351
- * formatted amounts
1352
- *
1353
- * @generated from field: capabilities.blockchain.solana.v1alpha.UiTokenAmount ui = 5;
1354
- */
1355
- ui?: UiTokenAmountJson;
1356
- };
1357
- /**
1358
- * Describes the message capabilities.blockchain.solana.v1alpha.TokenBalance.
1359
- * Use `create(TokenBalanceSchema)` to create a new message.
1360
- */
1361
- export declare const TokenBalanceSchema: GenMessage<TokenBalance, {
1362
- jsonType: TokenBalanceJson;
1363
- }>;
1364
- /**
1365
- * Inner instruction list at a given outer instruction index.
1366
- *
1367
- * @generated from message capabilities.blockchain.solana.v1alpha.InnerInstruction
1368
- */
1369
- export type InnerInstruction = Message<'capabilities.blockchain.solana.v1alpha.InnerInstruction'> & {
1370
- /**
1371
- * outer ix index
1372
- *
1373
- * @generated from field: uint32 index = 1;
1374
- */
1375
- index: number;
1376
- /**
1377
- * invoked ixs
1378
- *
1379
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.CompiledInstruction instructions = 2;
1380
- */
1381
- instructions: CompiledInstruction[];
1382
- };
1383
- /**
1384
- * Inner instruction list at a given outer instruction index.
1385
- *
1386
- * @generated from message capabilities.blockchain.solana.v1alpha.InnerInstruction
1387
- */
1388
- export type InnerInstructionJson = {
1389
- /**
1390
- * outer ix index
1391
- *
1392
- * @generated from field: uint32 index = 1;
1393
- */
1394
- index?: number;
1395
- /**
1396
- * invoked ixs
1397
- *
1398
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.CompiledInstruction instructions = 2;
1399
- */
1400
- instructions?: CompiledInstructionJson[];
1401
- };
1402
- /**
1403
- * Describes the message capabilities.blockchain.solana.v1alpha.InnerInstruction.
1404
- * Use `create(InnerInstructionSchema)` to create a new message.
1405
- */
1406
- export declare const InnerInstructionSchema: GenMessage<InnerInstruction, {
1407
- jsonType: InnerInstructionJson;
1408
- }>;
1409
- /**
1410
- * Address table lookups expanded by loader.
1411
- *
1412
- * @generated from message capabilities.blockchain.solana.v1alpha.LoadedAddresses
1413
- */
1414
- export type LoadedAddresses = Message<'capabilities.blockchain.solana.v1alpha.LoadedAddresses'> & {
1415
- /**
1416
- * 32-byte Pubkeys
1417
- *
1418
- * @generated from field: repeated bytes readonly = 1;
1419
- */
1420
- readonly: Uint8Array[];
1421
- /**
1422
- * 32-byte Pubkeys
1423
- *
1424
- * @generated from field: repeated bytes writable = 2;
1425
- */
1426
- writable: Uint8Array[];
1427
- };
1428
- /**
1429
- * Address table lookups expanded by loader.
1430
- *
1431
- * @generated from message capabilities.blockchain.solana.v1alpha.LoadedAddresses
1432
- */
1433
- export type LoadedAddressesJson = {
1434
- /**
1435
- * 32-byte Pubkeys
1436
- *
1437
- * @generated from field: repeated bytes readonly = 1;
1438
- */
1439
- readonly?: string[];
1440
- /**
1441
- * 32-byte Pubkeys
1442
- *
1443
- * @generated from field: repeated bytes writable = 2;
1444
- */
1445
- writable?: string[];
1446
- };
1447
- /**
1448
- * Describes the message capabilities.blockchain.solana.v1alpha.LoadedAddresses.
1449
- * Use `create(LoadedAddressesSchema)` to create a new message.
1450
- */
1451
- export declare const LoadedAddressesSchema: GenMessage<LoadedAddresses, {
1452
- jsonType: LoadedAddressesJson;
1453
- }>;
1454
- /**
1455
- * Compiled (program) instruction.
1456
- *
1457
- * @generated from message capabilities.blockchain.solana.v1alpha.CompiledInstruction
1458
- */
1459
- export type CompiledInstruction = Message<'capabilities.blockchain.solana.v1alpha.CompiledInstruction'> & {
1460
- /**
1461
- * index into account_keys
1462
- *
1463
- * @generated from field: uint32 program_id_index = 1;
1464
- */
1465
- programIdIndex: number;
1466
- /**
1467
- * indices into account_keys
1468
- *
1469
- * @generated from field: repeated uint32 accounts = 2;
1470
- */
1471
- accounts: number[];
1472
- /**
1473
- * program input bytes
1474
- *
1475
- * @generated from field: bytes data = 3;
1476
- */
1477
- data: Uint8Array;
1478
- /**
1479
- * if recorded by node
1480
- *
1481
- * @generated from field: uint32 stack_height = 4;
1482
- */
1483
- stackHeight: number;
1484
- };
1485
- /**
1486
- * Compiled (program) instruction.
1487
- *
1488
- * @generated from message capabilities.blockchain.solana.v1alpha.CompiledInstruction
1489
- */
1490
- export type CompiledInstructionJson = {
1491
- /**
1492
- * index into account_keys
1493
- *
1494
- * @generated from field: uint32 program_id_index = 1;
1495
- */
1496
- programIdIndex?: number;
1497
- /**
1498
- * indices into account_keys
1499
- *
1500
- * @generated from field: repeated uint32 accounts = 2;
1501
- */
1502
- accounts?: number[];
1503
- /**
1504
- * program input bytes
1505
- *
1506
- * @generated from field: bytes data = 3;
1507
- */
1508
- data?: string;
1509
- /**
1510
- * if recorded by node
1511
- *
1512
- * @generated from field: uint32 stack_height = 4;
1513
- */
1514
- stackHeight?: number;
1515
- };
1516
- /**
1517
- * Describes the message capabilities.blockchain.solana.v1alpha.CompiledInstruction.
1518
- * Use `create(CompiledInstructionSchema)` to create a new message.
1519
- */
1520
- export declare const CompiledInstructionSchema: GenMessage<CompiledInstruction, {
1521
- jsonType: CompiledInstructionJson;
1522
- }>;
1523
- /**
1524
- * Raw bytes with encoding tag.
1525
- *
1526
- * @generated from message capabilities.blockchain.solana.v1alpha.Data
1527
- */
1528
- export type Data = Message<'capabilities.blockchain.solana.v1alpha.Data'> & {
1529
- /**
1530
- * raw bytes
1531
- *
1532
- * @generated from field: bytes content = 1;
1533
- */
1534
- content: Uint8Array;
1535
- /**
1536
- * how it was encoded originally
1537
- *
1538
- * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 2;
1539
- */
1540
- encoding: EncodingType;
1541
- };
1542
- /**
1543
- * Raw bytes with encoding tag.
1544
- *
1545
- * @generated from message capabilities.blockchain.solana.v1alpha.Data
1546
- */
1547
- export type DataJson = {
1548
- /**
1549
- * raw bytes
1550
- *
1551
- * @generated from field: bytes content = 1;
1552
- */
1553
- content?: string;
1554
- /**
1555
- * how it was encoded originally
1556
- *
1557
- * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 2;
1558
- */
1559
- encoding?: EncodingTypeJson;
1560
- };
1561
- /**
1562
- * Describes the message capabilities.blockchain.solana.v1alpha.Data.
1563
- * Use `create(DataSchema)` to create a new message.
1564
- */
1565
- export declare const DataSchema: GenMessage<Data, {
1566
- jsonType: DataJson;
1567
- }>;
1568
- /**
1569
- * Program return data.
1570
- *
1571
- * @generated from message capabilities.blockchain.solana.v1alpha.ReturnData
1572
- */
1573
- export type ReturnData = Message<'capabilities.blockchain.solana.v1alpha.ReturnData'> & {
1574
- /**
1575
- * 32-byte Pubkey
1576
- *
1577
- * @generated from field: bytes program_id = 1;
1578
- */
1579
- programId: Uint8Array;
1580
- /**
1581
- * raw return bytes
1582
- *
1583
- * @generated from field: capabilities.blockchain.solana.v1alpha.Data data = 2;
1584
- */
1585
- data?: Data;
1586
- };
1587
- /**
1588
- * Program return data.
1589
- *
1590
- * @generated from message capabilities.blockchain.solana.v1alpha.ReturnData
1591
- */
1592
- export type ReturnDataJson = {
1593
- /**
1594
- * 32-byte Pubkey
1595
- *
1596
- * @generated from field: bytes program_id = 1;
1597
- */
1598
- programId?: string;
1599
- /**
1600
- * raw return bytes
1601
- *
1602
- * @generated from field: capabilities.blockchain.solana.v1alpha.Data data = 2;
1603
- */
1604
- data?: DataJson;
1605
- };
1606
- /**
1607
- * Describes the message capabilities.blockchain.solana.v1alpha.ReturnData.
1608
- * Use `create(ReturnDataSchema)` to create a new message.
1609
- */
1610
- export declare const ReturnDataSchema: GenMessage<ReturnData, {
1611
- jsonType: ReturnDataJson;
1612
- }>;
1613
- /**
1614
- * Transaction execution metadata.
1615
- *
1616
- * @generated from message capabilities.blockchain.solana.v1alpha.TransactionMeta
1617
- */
1618
- export type TransactionMeta = Message<'capabilities.blockchain.solana.v1alpha.TransactionMeta'> & {
1619
- /**
1620
- * error JSON (empty on success)
1621
- *
1622
- * @generated from field: string err_json = 1;
1623
- */
1624
- errJson: string;
1625
- /**
1626
- * lamports
1627
- *
1628
- * @generated from field: uint64 fee = 2 [jstype = JS_NORMAL];
1629
- */
1630
- fee: bigint;
1631
- /**
1632
- * lamports per account
1633
- *
1634
- * @generated from field: repeated uint64 pre_balances = 3 [jstype = JS_NORMAL];
1635
- */
1636
- preBalances: bigint[];
1637
- /**
1638
- * lamports per account
1639
- *
1640
- * @generated from field: repeated uint64 post_balances = 4 [jstype = JS_NORMAL];
1641
- */
1642
- postBalances: bigint[];
1643
- /**
1644
- * runtime logs
1645
- *
1646
- * @generated from field: repeated string log_messages = 5;
1647
- */
1648
- logMessages: string[];
1649
- /**
1650
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.TokenBalance pre_token_balances = 6;
1651
- */
1652
- preTokenBalances: TokenBalance[];
1653
- /**
1654
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.TokenBalance post_token_balances = 7;
1655
- */
1656
- postTokenBalances: TokenBalance[];
1657
- /**
1658
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.InnerInstruction inner_instructions = 8;
1659
- */
1660
- innerInstructions: InnerInstruction[];
1661
- /**
1662
- * @generated from field: capabilities.blockchain.solana.v1alpha.LoadedAddresses loaded_addresses = 9;
1663
- */
1664
- loadedAddresses?: LoadedAddresses;
1665
- /**
1666
- * @generated from field: capabilities.blockchain.solana.v1alpha.ReturnData return_data = 10;
1667
- */
1668
- returnData?: ReturnData;
1669
- /**
1670
- * CUs
1671
- *
1672
- * @generated from field: optional uint64 compute_units_consumed = 11 [jstype = JS_NORMAL];
1673
- */
1674
- computeUnitsConsumed?: bigint;
1675
- };
1676
- /**
1677
- * Transaction execution metadata.
1678
- *
1679
- * @generated from message capabilities.blockchain.solana.v1alpha.TransactionMeta
1680
- */
1681
- export type TransactionMetaJson = {
1682
- /**
1683
- * error JSON (empty on success)
1684
- *
1685
- * @generated from field: string err_json = 1;
1686
- */
1687
- errJson?: string;
1688
- /**
1689
- * lamports
1690
- *
1691
- * @generated from field: uint64 fee = 2 [jstype = JS_NORMAL];
1692
- */
1693
- fee?: string;
1694
- /**
1695
- * lamports per account
1696
- *
1697
- * @generated from field: repeated uint64 pre_balances = 3 [jstype = JS_NORMAL];
1698
- */
1699
- preBalances?: string[];
1700
- /**
1701
- * lamports per account
1702
- *
1703
- * @generated from field: repeated uint64 post_balances = 4 [jstype = JS_NORMAL];
1704
- */
1705
- postBalances?: string[];
1706
- /**
1707
- * runtime logs
1708
- *
1709
- * @generated from field: repeated string log_messages = 5;
1710
- */
1711
- logMessages?: string[];
1712
- /**
1713
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.TokenBalance pre_token_balances = 6;
1714
- */
1715
- preTokenBalances?: TokenBalanceJson[];
1716
- /**
1717
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.TokenBalance post_token_balances = 7;
1718
- */
1719
- postTokenBalances?: TokenBalanceJson[];
1720
- /**
1721
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.InnerInstruction inner_instructions = 8;
1722
- */
1723
- innerInstructions?: InnerInstructionJson[];
1724
- /**
1725
- * @generated from field: capabilities.blockchain.solana.v1alpha.LoadedAddresses loaded_addresses = 9;
1726
- */
1727
- loadedAddresses?: LoadedAddressesJson;
1728
- /**
1729
- * @generated from field: capabilities.blockchain.solana.v1alpha.ReturnData return_data = 10;
1730
- */
1731
- returnData?: ReturnDataJson;
1732
- /**
1733
- * CUs
1734
- *
1735
- * @generated from field: optional uint64 compute_units_consumed = 11 [jstype = JS_NORMAL];
1736
- */
1737
- computeUnitsConsumed?: string;
1738
- };
1739
- /**
1740
- * Describes the message capabilities.blockchain.solana.v1alpha.TransactionMeta.
1741
- * Use `create(TransactionMetaSchema)` to create a new message.
1742
- */
1743
- export declare const TransactionMetaSchema: GenMessage<TransactionMeta, {
1744
- jsonType: TransactionMetaJson;
1745
- }>;
1746
- /**
1747
- * Transaction envelope: raw bytes or parsed struct.
1748
- *
1749
- * @generated from message capabilities.blockchain.solana.v1alpha.TransactionEnvelope
1750
- */
1751
- export type TransactionEnvelope = Message<'capabilities.blockchain.solana.v1alpha.TransactionEnvelope'> & {
1752
- /**
1753
- * @generated from oneof capabilities.blockchain.solana.v1alpha.TransactionEnvelope.transaction
1754
- */
1755
- transaction: {
1756
- /**
1757
- * raw tx bytes (for RAW/base64)
1758
- *
1759
- * @generated from field: bytes raw = 1;
1760
- */
1761
- value: Uint8Array;
1762
- case: 'raw';
1763
- } | {
1764
- /**
1765
- * parsed tx (for JSON_PARSED)
1766
- *
1767
- * @generated from field: capabilities.blockchain.solana.v1alpha.ParsedTransaction parsed = 2;
1768
- */
1769
- value: ParsedTransaction;
1770
- case: 'parsed';
1771
- } | {
1772
- case: undefined;
1773
- value?: undefined;
1774
- };
1775
- };
1776
- /**
1777
- * Transaction envelope: raw bytes or parsed struct.
1778
- *
1779
- * @generated from message capabilities.blockchain.solana.v1alpha.TransactionEnvelope
1780
- */
1781
- export type TransactionEnvelopeJson = {
1782
- /**
1783
- * raw tx bytes (for RAW/base64)
1784
- *
1785
- * @generated from field: bytes raw = 1;
1786
- */
1787
- raw?: string;
1788
- /**
1789
- * parsed tx (for JSON_PARSED)
1790
- *
1791
- * @generated from field: capabilities.blockchain.solana.v1alpha.ParsedTransaction parsed = 2;
1792
- */
1793
- parsed?: ParsedTransactionJson;
1794
- };
1795
- /**
1796
- * Describes the message capabilities.blockchain.solana.v1alpha.TransactionEnvelope.
1797
- * Use `create(TransactionEnvelopeSchema)` to create a new message.
1798
- */
1799
- export declare const TransactionEnvelopeSchema: GenMessage<TransactionEnvelope, {
1800
- jsonType: TransactionEnvelopeJson;
1801
- }>;
1802
- /**
1803
- * GetTransaction reply.
1804
- *
1805
- * @generated from message capabilities.blockchain.solana.v1alpha.GetTransactionReply
1806
- */
1807
- export type GetTransactionReply = Message<'capabilities.blockchain.solana.v1alpha.GetTransactionReply'> & {
1808
- /**
1809
- * processed slot
1810
- *
1811
- * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL];
1812
- */
1813
- slot: bigint;
1814
- /**
1815
- * unix seconds
1816
- *
1817
- * @generated from field: optional int64 block_time = 2 [jstype = JS_NORMAL];
1818
- */
1819
- blockTime?: bigint;
1820
- /**
1821
- * tx bytes or parsed
1822
- *
1823
- * @generated from field: optional capabilities.blockchain.solana.v1alpha.TransactionEnvelope transaction = 3;
1824
- */
1825
- transaction?: TransactionEnvelope;
1826
- /**
1827
- * may be omitted by node
1828
- *
1829
- * @generated from field: optional capabilities.blockchain.solana.v1alpha.TransactionMeta meta = 4;
1830
- */
1831
- meta?: TransactionMeta;
1832
- };
1833
- /**
1834
- * GetTransaction reply.
1835
- *
1836
- * @generated from message capabilities.blockchain.solana.v1alpha.GetTransactionReply
1837
- */
1838
- export type GetTransactionReplyJson = {
1839
- /**
1840
- * processed slot
1841
- *
1842
- * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL];
1843
- */
1844
- slot?: string;
1845
- /**
1846
- * unix seconds
1847
- *
1848
- * @generated from field: optional int64 block_time = 2 [jstype = JS_NORMAL];
1849
- */
1850
- blockTime?: string;
1851
- /**
1852
- * tx bytes or parsed
1853
- *
1854
- * @generated from field: optional capabilities.blockchain.solana.v1alpha.TransactionEnvelope transaction = 3;
1855
- */
1856
- transaction?: TransactionEnvelopeJson;
1857
- /**
1858
- * may be omitted by node
1859
- *
1860
- * @generated from field: optional capabilities.blockchain.solana.v1alpha.TransactionMeta meta = 4;
1861
- */
1862
- meta?: TransactionMetaJson;
1863
- };
1864
- /**
1865
- * Describes the message capabilities.blockchain.solana.v1alpha.GetTransactionReply.
1866
- * Use `create(GetTransactionReplySchema)` to create a new message.
1867
- */
1868
- export declare const GetTransactionReplySchema: GenMessage<GetTransactionReply, {
1869
- jsonType: GetTransactionReplyJson;
1870
- }>;
1871
- /**
1872
- * GetTransaction request.
1873
- *
1874
- * @generated from message capabilities.blockchain.solana.v1alpha.GetTransactionRequest
1875
- */
1876
- export type GetTransactionRequest = Message<'capabilities.blockchain.solana.v1alpha.GetTransactionRequest'> & {
1877
- /**
1878
- * 64-byte signature
1879
- *
1880
- * @generated from field: bytes signature = 1;
1881
- */
1882
- signature: Uint8Array;
1883
- };
1884
- /**
1885
- * GetTransaction request.
1886
- *
1887
- * @generated from message capabilities.blockchain.solana.v1alpha.GetTransactionRequest
1888
- */
1889
- export type GetTransactionRequestJson = {
1890
- /**
1891
- * 64-byte signature
1892
- *
1893
- * @generated from field: bytes signature = 1;
1894
- */
1895
- signature?: string;
1896
- };
1897
- /**
1898
- * Describes the message capabilities.blockchain.solana.v1alpha.GetTransactionRequest.
1899
- * Use `create(GetTransactionRequestSchema)` to create a new message.
1900
- */
1901
- export declare const GetTransactionRequestSchema: GenMessage<GetTransactionRequest, {
1902
- jsonType: GetTransactionRequestJson;
1903
- }>;
1904
- /**
1905
- * RPC read context.
1906
- *
1907
- * @generated from message capabilities.blockchain.solana.v1alpha.RPCContext
1908
- */
1909
- export type RPCContext = Message<'capabilities.blockchain.solana.v1alpha.RPCContext'> & {
1910
- /**
1911
- * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL];
1912
- */
1913
- slot: bigint;
1914
- };
1915
- /**
1916
- * RPC read context.
1917
- *
1918
- * @generated from message capabilities.blockchain.solana.v1alpha.RPCContext
1919
- */
1920
- export type RPCContextJson = {
1921
- /**
1922
- * @generated from field: uint64 slot = 1 [jstype = JS_NORMAL];
1923
- */
1924
- slot?: string;
1925
- };
1926
- /**
1927
- * Describes the message capabilities.blockchain.solana.v1alpha.RPCContext.
1928
- * Use `create(RPCContextSchema)` to create a new message.
1929
- */
1930
- export declare const RPCContextSchema: GenMessage<RPCContext, {
1931
- jsonType: RPCContextJson;
1932
- }>;
1933
- /**
1934
- * Simulation options.
1935
- *
1936
- * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTXOpts
1937
- */
1938
- export type SimulateTXOpts = Message<'capabilities.blockchain.solana.v1alpha.SimulateTXOpts'> & {
1939
- /**
1940
- * verify sigs
1941
- *
1942
- * @generated from field: bool sig_verify = 1;
1943
- */
1944
- sigVerify: boolean;
1945
- /**
1946
- * read consistency
1947
- *
1948
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2;
1949
- */
1950
- commitment: CommitmentType;
1951
- /**
1952
- * refresh blockhash
1953
- *
1954
- * @generated from field: bool replace_recent_blockhash = 3;
1955
- */
1956
- replaceRecentBlockhash: boolean;
1957
- /**
1958
- * return accounts
1959
- *
1960
- * @generated from field: capabilities.blockchain.solana.v1alpha.SimulateTransactionAccountsOpts accounts = 4;
1961
- */
1962
- accounts?: SimulateTransactionAccountsOpts;
1963
- };
1964
- /**
1965
- * Simulation options.
1966
- *
1967
- * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTXOpts
1968
- */
1969
- export type SimulateTXOptsJson = {
1970
- /**
1971
- * verify sigs
1972
- *
1973
- * @generated from field: bool sig_verify = 1;
1974
- */
1975
- sigVerify?: boolean;
1976
- /**
1977
- * read consistency
1978
- *
1979
- * @generated from field: capabilities.blockchain.solana.v1alpha.CommitmentType commitment = 2;
1980
- */
1981
- commitment?: CommitmentTypeJson;
1982
- /**
1983
- * refresh blockhash
1984
- *
1985
- * @generated from field: bool replace_recent_blockhash = 3;
1986
- */
1987
- replaceRecentBlockhash?: boolean;
1988
- /**
1989
- * return accounts
1990
- *
1991
- * @generated from field: capabilities.blockchain.solana.v1alpha.SimulateTransactionAccountsOpts accounts = 4;
1992
- */
1993
- accounts?: SimulateTransactionAccountsOptsJson;
1994
- };
1995
- /**
1996
- * Describes the message capabilities.blockchain.solana.v1alpha.SimulateTXOpts.
1997
- * Use `create(SimulateTXOptsSchema)` to create a new message.
1998
- */
1999
- export declare const SimulateTXOptsSchema: GenMessage<SimulateTXOpts, {
2000
- jsonType: SimulateTXOptsJson;
2001
- }>;
2002
- /**
2003
- * Simulation result.
2004
- *
2005
- * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTXReply
2006
- */
2007
- export type SimulateTXReply = Message<'capabilities.blockchain.solana.v1alpha.SimulateTXReply'> & {
2008
- /**
2009
- * empty on success
2010
- *
2011
- * @generated from field: string err = 1;
2012
- */
2013
- err: string;
2014
- /**
2015
- * runtime logs
2016
- *
2017
- * @generated from field: repeated string logs = 2;
2018
- */
2019
- logs: string[];
2020
- /**
2021
- * returned accounts
2022
- *
2023
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.Account accounts = 3;
2024
- */
2025
- accounts: Account[];
2026
- /**
2027
- * CUs
2028
- *
2029
- * @generated from field: uint64 units_consumed = 4 [jstype = JS_NORMAL];
2030
- */
2031
- unitsConsumed: bigint;
2032
- };
2033
- /**
2034
- * Simulation result.
2035
- *
2036
- * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTXReply
2037
- */
2038
- export type SimulateTXReplyJson = {
2039
- /**
2040
- * empty on success
2041
- *
2042
- * @generated from field: string err = 1;
2043
- */
2044
- err?: string;
2045
- /**
2046
- * runtime logs
2047
- *
2048
- * @generated from field: repeated string logs = 2;
2049
- */
2050
- logs?: string[];
2051
- /**
2052
- * returned accounts
2053
- *
2054
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.Account accounts = 3;
2055
- */
2056
- accounts?: AccountJson[];
2057
- /**
2058
- * CUs
2059
- *
2060
- * @generated from field: uint64 units_consumed = 4 [jstype = JS_NORMAL];
2061
- */
2062
- unitsConsumed?: string;
2063
- };
2064
- /**
2065
- * Describes the message capabilities.blockchain.solana.v1alpha.SimulateTXReply.
2066
- * Use `create(SimulateTXReplySchema)` to create a new message.
2067
- */
2068
- export declare const SimulateTXReplySchema: GenMessage<SimulateTXReply, {
2069
- jsonType: SimulateTXReplyJson;
2070
- }>;
2071
- /**
2072
- * Simulation request.
2073
- *
2074
- * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTXRequest
2075
- */
2076
- export type SimulateTXRequest = Message<'capabilities.blockchain.solana.v1alpha.SimulateTXRequest'> & {
2077
- /**
2078
- * 32-byte program id (target)
2079
- *
2080
- * @generated from field: bytes receiver = 1;
2081
- */
2082
- receiver: Uint8Array;
2083
- /**
2084
- * base64/base58 tx
2085
- *
2086
- * @generated from field: string encoded_transaction = 2;
2087
- */
2088
- encodedTransaction: string;
2089
- /**
2090
- * @generated from field: capabilities.blockchain.solana.v1alpha.SimulateTXOpts opts = 3;
2091
- */
2092
- opts?: SimulateTXOpts;
2093
- };
2094
- /**
2095
- * Simulation request.
2096
- *
2097
- * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTXRequest
2098
- */
2099
- export type SimulateTXRequestJson = {
2100
- /**
2101
- * 32-byte program id (target)
2102
- *
2103
- * @generated from field: bytes receiver = 1;
2104
- */
2105
- receiver?: string;
2106
- /**
2107
- * base64/base58 tx
2108
- *
2109
- * @generated from field: string encoded_transaction = 2;
2110
- */
2111
- encodedTransaction?: string;
2112
- /**
2113
- * @generated from field: capabilities.blockchain.solana.v1alpha.SimulateTXOpts opts = 3;
2114
- */
2115
- opts?: SimulateTXOptsJson;
2116
- };
2117
- /**
2118
- * Describes the message capabilities.blockchain.solana.v1alpha.SimulateTXRequest.
2119
- * Use `create(SimulateTXRequestSchema)` to create a new message.
2120
- */
2121
- export declare const SimulateTXRequestSchema: GenMessage<SimulateTXRequest, {
2122
- jsonType: SimulateTXRequestJson;
2123
- }>;
2124
- /**
2125
- * Accounts to return during simulation.
2126
- *
2127
- * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTransactionAccountsOpts
2128
- */
2129
- export type SimulateTransactionAccountsOpts = Message<'capabilities.blockchain.solana.v1alpha.SimulateTransactionAccountsOpts'> & {
2130
- /**
2131
- * account data encoding
2132
- *
2133
- * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1;
2134
- */
2135
- encoding: EncodingType;
2136
- /**
2137
- * 32-byte Pubkeys
2138
- *
2139
- * @generated from field: repeated bytes addresses = 2;
2140
- */
2141
- addresses: Uint8Array[];
2142
- };
2143
- /**
2144
- * Accounts to return during simulation.
2145
- *
2146
- * @generated from message capabilities.blockchain.solana.v1alpha.SimulateTransactionAccountsOpts
2147
- */
2148
- export type SimulateTransactionAccountsOptsJson = {
2149
- /**
2150
- * account data encoding
2151
- *
2152
- * @generated from field: capabilities.blockchain.solana.v1alpha.EncodingType encoding = 1;
2153
- */
2154
- encoding?: EncodingTypeJson;
2155
- /**
2156
- * 32-byte Pubkeys
2157
- *
2158
- * @generated from field: repeated bytes addresses = 2;
2159
- */
2160
- addresses?: string[];
2161
- };
2162
- /**
2163
- * Describes the message capabilities.blockchain.solana.v1alpha.SimulateTransactionAccountsOpts.
2164
- * Use `create(SimulateTransactionAccountsOptsSchema)` to create a new message.
2165
- */
2166
- export declare const SimulateTransactionAccountsOptsSchema: GenMessage<SimulateTransactionAccountsOpts, {
2167
- jsonType: SimulateTransactionAccountsOptsJson;
2168
- }>;
2169
- /**
2170
- * @generated from message capabilities.blockchain.solana.v1alpha.ValueComparator
2171
- */
2172
- export type ValueComparator = Message<'capabilities.blockchain.solana.v1alpha.ValueComparator'> & {
2173
- /**
2174
- * @generated from field: bytes value = 1;
2175
- */
2176
- value: Uint8Array;
2177
- /**
2178
- * @generated from field: capabilities.blockchain.solana.v1alpha.ComparisonOperator operator = 2;
2179
- */
2180
- operator: ComparisonOperator;
2181
- };
2182
- /**
2183
- * @generated from message capabilities.blockchain.solana.v1alpha.ValueComparator
2184
- */
2185
- export type ValueComparatorJson = {
2186
- /**
2187
- * @generated from field: bytes value = 1;
2188
- */
2189
- value?: string;
2190
- /**
2191
- * @generated from field: capabilities.blockchain.solana.v1alpha.ComparisonOperator operator = 2;
2192
- */
2193
- operator?: ComparisonOperatorJson;
2194
- };
2195
- /**
2196
- * Describes the message capabilities.blockchain.solana.v1alpha.ValueComparator.
2197
- * Use `create(ValueComparatorSchema)` to create a new message.
2198
- */
2199
- export declare const ValueComparatorSchema: GenMessage<ValueComparator, {
2200
- jsonType: ValueComparatorJson;
2201
- }>;
2202
- /**
2203
- * @generated from message capabilities.blockchain.solana.v1alpha.SubkeyConfig
2204
- */
2205
- export type SubkeyConfig = Message<'capabilities.blockchain.solana.v1alpha.SubkeyConfig'> & {
2206
- /**
2207
- * @generated from field: repeated string path = 1;
2208
- */
2209
- path: string[];
2210
- /**
2211
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.ValueComparator comparers = 2;
2212
- */
2213
- comparers: ValueComparator[];
2214
- };
2215
- /**
2216
- * @generated from message capabilities.blockchain.solana.v1alpha.SubkeyConfig
2217
- */
2218
- export type SubkeyConfigJson = {
2219
- /**
2220
- * @generated from field: repeated string path = 1;
2221
- */
2222
- path?: string[];
2223
- /**
2224
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.ValueComparator comparers = 2;
2225
- */
2226
- comparers?: ValueComparatorJson[];
2227
- };
2228
- /**
2229
- * Describes the message capabilities.blockchain.solana.v1alpha.SubkeyConfig.
2230
- * Use `create(SubkeyConfigSchema)` to create a new message.
2231
- */
2232
- export declare const SubkeyConfigSchema: GenMessage<SubkeyConfig, {
2233
- jsonType: SubkeyConfigJson;
2234
- }>;
2235
- /**
2236
- * @generated from message capabilities.blockchain.solana.v1alpha.FilterLogTriggerRequest
2237
- */
2238
- export type FilterLogTriggerRequest = Message<'capabilities.blockchain.solana.v1alpha.FilterLogTriggerRequest'> & {
2239
- /**
2240
- * @generated from field: string name = 1;
2241
- */
2242
- name: string;
2243
- /**
2244
- * Solana PublicKey (32 bytes)
2245
- *
2246
- * @generated from field: bytes address = 2;
2247
- */
2248
- address: Uint8Array;
2249
- /**
2250
- * @generated from field: string event_name = 3;
2251
- */
2252
- eventName: string;
2253
- /**
2254
- * @generated from field: bytes event_idl_json = 4;
2255
- */
2256
- eventIdlJson: Uint8Array;
2257
- /**
2258
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.SubkeyConfig subkeys = 5;
2259
- */
2260
- subkeys: SubkeyConfig[];
2261
- };
2262
- /**
2263
- * @generated from message capabilities.blockchain.solana.v1alpha.FilterLogTriggerRequest
2264
- */
2265
- export type FilterLogTriggerRequestJson = {
2266
- /**
2267
- * @generated from field: string name = 1;
2268
- */
2269
- name?: string;
2270
- /**
2271
- * Solana PublicKey (32 bytes)
2272
- *
2273
- * @generated from field: bytes address = 2;
2274
- */
2275
- address?: string;
2276
- /**
2277
- * @generated from field: string event_name = 3;
2278
- */
2279
- eventName?: string;
2280
- /**
2281
- * @generated from field: bytes event_idl_json = 4;
2282
- */
2283
- eventIdlJson?: string;
2284
- /**
2285
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.SubkeyConfig subkeys = 5;
2286
- */
2287
- subkeys?: SubkeyConfigJson[];
2288
- };
2289
- /**
2290
- * Describes the message capabilities.blockchain.solana.v1alpha.FilterLogTriggerRequest.
2291
- * Use `create(FilterLogTriggerRequestSchema)` to create a new message.
2292
- */
2293
- export declare const FilterLogTriggerRequestSchema: GenMessage<FilterLogTriggerRequest, {
2294
- jsonType: FilterLogTriggerRequestJson;
2295
- }>;
2296
- /**
2297
- * @generated from message capabilities.blockchain.solana.v1alpha.Log
2298
- */
2299
- export type Log = Message<'capabilities.blockchain.solana.v1alpha.Log'> & {
2300
- /**
2301
- * Chain identifier
2302
- *
2303
- * @generated from field: string chain_id = 1;
2304
- */
2305
- chainId: string;
2306
- /**
2307
- * Index of the log within the block
2308
- *
2309
- * @generated from field: int64 log_index = 2 [jstype = JS_NORMAL];
2310
- */
2311
- logIndex: bigint;
2312
- /**
2313
- * 32-byte block hash
2314
- *
2315
- * @generated from field: bytes block_hash = 3;
2316
- */
2317
- blockHash: Uint8Array;
2318
- /**
2319
- * Block/slot number
2320
- *
2321
- * @generated from field: int64 block_number = 4 [jstype = JS_NORMAL];
2322
- */
2323
- blockNumber: bigint;
2324
- /**
2325
- * Unix timestamp of the block
2326
- *
2327
- * @generated from field: uint64 block_timestamp = 5 [jstype = JS_NORMAL];
2328
- */
2329
- blockTimestamp: bigint;
2330
- /**
2331
- * 32-byte program PublicKey
2332
- *
2333
- * @generated from field: bytes address = 6;
2334
- */
2335
- address: Uint8Array;
2336
- /**
2337
- * 8-byte event signature
2338
- *
2339
- * @generated from field: bytes event_sig = 7;
2340
- */
2341
- eventSig: Uint8Array;
2342
- /**
2343
- * 64-byte transaction signature
2344
- *
2345
- * @generated from field: bytes tx_hash = 8;
2346
- */
2347
- txHash: Uint8Array;
2348
- /**
2349
- * Decoded event data
2350
- *
2351
- * @generated from field: bytes data = 9;
2352
- */
2353
- data: Uint8Array;
2354
- /**
2355
- * Sequence number for ordering
2356
- *
2357
- * @generated from field: int64 sequence_num = 10 [jstype = JS_NORMAL];
2358
- */
2359
- sequenceNum: bigint;
2360
- /**
2361
- * Error message if log processing failed
2362
- *
2363
- * @generated from field: optional string error = 11;
2364
- */
2365
- error?: string;
2366
- };
2367
- /**
2368
- * @generated from message capabilities.blockchain.solana.v1alpha.Log
2369
- */
2370
- export type LogJson = {
2371
- /**
2372
- * Chain identifier
2373
- *
2374
- * @generated from field: string chain_id = 1;
2375
- */
2376
- chainId?: string;
2377
- /**
2378
- * Index of the log within the block
2379
- *
2380
- * @generated from field: int64 log_index = 2 [jstype = JS_NORMAL];
2381
- */
2382
- logIndex?: string;
2383
- /**
2384
- * 32-byte block hash
2385
- *
2386
- * @generated from field: bytes block_hash = 3;
2387
- */
2388
- blockHash?: string;
2389
- /**
2390
- * Block/slot number
2391
- *
2392
- * @generated from field: int64 block_number = 4 [jstype = JS_NORMAL];
2393
- */
2394
- blockNumber?: string;
2395
- /**
2396
- * Unix timestamp of the block
2397
- *
2398
- * @generated from field: uint64 block_timestamp = 5 [jstype = JS_NORMAL];
2399
- */
2400
- blockTimestamp?: string;
2401
- /**
2402
- * 32-byte program PublicKey
2403
- *
2404
- * @generated from field: bytes address = 6;
2405
- */
2406
- address?: string;
2407
- /**
2408
- * 8-byte event signature
2409
- *
2410
- * @generated from field: bytes event_sig = 7;
2411
- */
2412
- eventSig?: string;
2413
- /**
2414
- * 64-byte transaction signature
2415
- *
2416
- * @generated from field: bytes tx_hash = 8;
2417
- */
2418
- txHash?: string;
2419
- /**
2420
- * Decoded event data
2421
- *
2422
- * @generated from field: bytes data = 9;
2423
- */
2424
- data?: string;
2425
- /**
2426
- * Sequence number for ordering
2427
- *
2428
- * @generated from field: int64 sequence_num = 10 [jstype = JS_NORMAL];
2429
- */
2430
- sequenceNum?: string;
2431
- /**
2432
- * Error message if log processing failed
2433
- *
2434
- * @generated from field: optional string error = 11;
2435
- */
2436
- error?: string;
2437
- };
2438
- /**
2439
- * Describes the message capabilities.blockchain.solana.v1alpha.Log.
2440
- * Use `create(LogSchema)` to create a new message.
2441
- */
2442
- export declare const LogSchema: GenMessage<Log, {
2443
- jsonType: LogJson;
2444
- }>;
2445
- /**
2446
- * All metas are non-signers.
2447
- *
2448
- * @generated from message capabilities.blockchain.solana.v1alpha.AccountMeta
2449
- */
2450
- export type AccountMeta = Message<'capabilities.blockchain.solana.v1alpha.AccountMeta'> & {
2451
- /**
2452
- * 32 bytes account public key
2453
- *
2454
- * @generated from field: bytes public_key = 1;
2455
- */
2456
- publicKey: Uint8Array;
2457
- /**
2458
- * write flag
2459
- *
2460
- * @generated from field: bool is_writable = 2;
2461
- */
2462
- isWritable: boolean;
2463
- };
2464
- /**
2465
- * All metas are non-signers.
2466
- *
2467
- * @generated from message capabilities.blockchain.solana.v1alpha.AccountMeta
2468
- */
2469
- export type AccountMetaJson = {
2470
- /**
2471
- * 32 bytes account public key
2472
- *
2473
- * @generated from field: bytes public_key = 1;
2474
- */
2475
- publicKey?: string;
2476
- /**
2477
- * write flag
2478
- *
2479
- * @generated from field: bool is_writable = 2;
2480
- */
2481
- isWritable?: boolean;
2482
- };
2483
- /**
2484
- * Describes the message capabilities.blockchain.solana.v1alpha.AccountMeta.
2485
- * Use `create(AccountMetaSchema)` to create a new message.
2486
- */
2487
- export declare const AccountMetaSchema: GenMessage<AccountMeta, {
2488
- jsonType: AccountMetaJson;
2489
- }>;
2490
- /**
2491
- * @generated from message capabilities.blockchain.solana.v1alpha.WriteReportRequest
2492
- */
2493
- export type WriteReportRequest = Message<'capabilities.blockchain.solana.v1alpha.WriteReportRequest'> & {
2494
- /**
2495
- * accounts that are required by the receiver to accept the report
2496
- *
2497
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.AccountMeta remaining_accounts = 1;
2498
- */
2499
- remainingAccounts: AccountMeta[];
2500
- /**
2501
- * 32 bytes receiver
2502
- *
2503
- * @generated from field: bytes receiver = 2;
2504
- */
2505
- receiver: Uint8Array;
2506
- /**
2507
- * @generated from field: optional capabilities.blockchain.solana.v1alpha.ComputeConfig compute_config = 3;
2508
- */
2509
- computeConfig?: ComputeConfig;
2510
- /**
2511
- * @generated from field: sdk.v1alpha.ReportResponse report = 4;
2512
- */
2513
- report?: ReportResponse;
2514
- };
2515
- /**
2516
- * @generated from message capabilities.blockchain.solana.v1alpha.WriteReportRequest
2517
- */
2518
- export type WriteReportRequestJson = {
2519
- /**
2520
- * accounts that are required by the receiver to accept the report
2521
- *
2522
- * @generated from field: repeated capabilities.blockchain.solana.v1alpha.AccountMeta remaining_accounts = 1;
2523
- */
2524
- remainingAccounts?: AccountMetaJson[];
2525
- /**
2526
- * 32 bytes receiver
2527
- *
2528
- * @generated from field: bytes receiver = 2;
2529
- */
2530
- receiver?: string;
2531
- /**
2532
- * @generated from field: optional capabilities.blockchain.solana.v1alpha.ComputeConfig compute_config = 3;
2533
- */
2534
- computeConfig?: ComputeConfigJson;
2535
- /**
2536
- * @generated from field: sdk.v1alpha.ReportResponse report = 4;
2537
- */
2538
- report?: ReportResponseJson;
2539
- };
2540
- /**
2541
- * Describes the message capabilities.blockchain.solana.v1alpha.WriteReportRequest.
2542
- * Use `create(WriteReportRequestSchema)` to create a new message.
2543
- */
2544
- export declare const WriteReportRequestSchema: GenMessage<WriteReportRequest, {
2545
- jsonType: WriteReportRequestJson;
2546
- }>;
2547
- /**
2548
- * @generated from message capabilities.blockchain.solana.v1alpha.WriteReportReply
2549
- */
2550
- export type WriteReportReply = Message<'capabilities.blockchain.solana.v1alpha.WriteReportReply'> & {
2551
- /**
2552
- * @generated from field: capabilities.blockchain.solana.v1alpha.TxStatus tx_status = 1;
2553
- */
2554
- txStatus: TxStatus;
2555
- /**
2556
- * @generated from field: optional capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus receiver_contract_execution_status = 2;
2557
- */
2558
- receiverContractExecutionStatus?: ReceiverContractExecutionStatus;
2559
- /**
2560
- * @generated from field: optional bytes tx_signature = 3;
2561
- */
2562
- txSignature?: Uint8Array;
2563
- /**
2564
- * @generated from field: optional uint64 transaction_fee = 4 [jstype = JS_NORMAL];
2565
- */
2566
- transactionFee?: bigint;
2567
- /**
2568
- * @generated from field: optional string error_message = 5;
2569
- */
2570
- errorMessage?: string;
2571
- };
2572
- /**
2573
- * @generated from message capabilities.blockchain.solana.v1alpha.WriteReportReply
2574
- */
2575
- export type WriteReportReplyJson = {
2576
- /**
2577
- * @generated from field: capabilities.blockchain.solana.v1alpha.TxStatus tx_status = 1;
2578
- */
2579
- txStatus?: TxStatusJson;
2580
- /**
2581
- * @generated from field: optional capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus receiver_contract_execution_status = 2;
2582
- */
2583
- receiverContractExecutionStatus?: ReceiverContractExecutionStatusJson;
2584
- /**
2585
- * @generated from field: optional bytes tx_signature = 3;
2586
- */
2587
- txSignature?: string;
2588
- /**
2589
- * @generated from field: optional uint64 transaction_fee = 4 [jstype = JS_NORMAL];
2590
- */
2591
- transactionFee?: string;
2592
- /**
2593
- * @generated from field: optional string error_message = 5;
2594
- */
2595
- errorMessage?: string;
2596
- };
2597
- /**
2598
- * Describes the message capabilities.blockchain.solana.v1alpha.WriteReportReply.
2599
- * Use `create(WriteReportReplySchema)` to create a new message.
2600
- */
2601
- export declare const WriteReportReplySchema: GenMessage<WriteReportReply, {
2602
- jsonType: WriteReportReplyJson;
2603
- }>;
2604
- /**
2605
- * Account/tx data encodings.
2606
- *
2607
- * @generated from enum capabilities.blockchain.solana.v1alpha.EncodingType
2608
- */
2609
- export declare enum EncodingType {
2610
- /**
2611
- * @generated from enum value: ENCODING_TYPE_NONE = 0;
2612
- */
2613
- NONE = 0,
2614
- /**
2615
- * for data <129 bytes
2616
- *
2617
- * @generated from enum value: ENCODING_TYPE_BASE58 = 1;
2618
- */
2619
- BASE58 = 1,
2620
- /**
2621
- * any size
2622
- *
2623
- * @generated from enum value: ENCODING_TYPE_BASE64 = 2;
2624
- */
2625
- BASE64 = 2,
2626
- /**
2627
- * zstd-compressed, base64-wrapped
2628
- *
2629
- * @generated from enum value: ENCODING_TYPE_BASE64_ZSTD = 3;
2630
- */
2631
- BASE64_ZSTD = 3,
2632
- /**
2633
- * program parsers; fallback to base64 if unknown
2634
- *
2635
- * @generated from enum value: ENCODING_TYPE_JSON_PARSED = 4;
2636
- */
2637
- JSON_PARSED = 4,
2638
- /**
2639
- * raw JSON (rare; prefer JSON_PARSED)
2640
- *
2641
- * @generated from enum value: ENCODING_TYPE_JSON = 5;
2642
- */
2643
- JSON = 5
2644
- }
2645
- /**
2646
- * Account/tx data encodings.
2647
- *
2648
- * @generated from enum capabilities.blockchain.solana.v1alpha.EncodingType
2649
- */
2650
- export type EncodingTypeJson = 'ENCODING_TYPE_NONE' | 'ENCODING_TYPE_BASE58' | 'ENCODING_TYPE_BASE64' | 'ENCODING_TYPE_BASE64_ZSTD' | 'ENCODING_TYPE_JSON_PARSED' | 'ENCODING_TYPE_JSON';
2651
- /**
2652
- * Describes the enum capabilities.blockchain.solana.v1alpha.EncodingType.
2653
- */
2654
- export declare const EncodingTypeSchema: GenEnum<EncodingType, EncodingTypeJson>;
2655
- /**
2656
- * Read consistency of queried state.
2657
- *
2658
- * @generated from enum capabilities.blockchain.solana.v1alpha.CommitmentType
2659
- */
2660
- export declare enum CommitmentType {
2661
- /**
2662
- * @generated from enum value: COMMITMENT_TYPE_NONE = 0;
2663
- */
2664
- NONE = 0,
2665
- /**
2666
- * cluster-finalized
2667
- *
2668
- * @generated from enum value: COMMITMENT_TYPE_FINALIZED = 1;
2669
- */
2670
- FINALIZED = 1,
2671
- /**
2672
- * voted by supermajority
2673
- *
2674
- * @generated from enum value: COMMITMENT_TYPE_CONFIRMED = 2;
2675
- */
2676
- CONFIRMED = 2,
2677
- /**
2678
- * node’s latest
2679
- *
2680
- * @generated from enum value: COMMITMENT_TYPE_PROCESSED = 3;
2681
- */
2682
- PROCESSED = 3
2683
- }
2684
- /**
2685
- * Read consistency of queried state.
2686
- *
2687
- * @generated from enum capabilities.blockchain.solana.v1alpha.CommitmentType
2688
- */
2689
- export type CommitmentTypeJson = 'COMMITMENT_TYPE_NONE' | 'COMMITMENT_TYPE_FINALIZED' | 'COMMITMENT_TYPE_CONFIRMED' | 'COMMITMENT_TYPE_PROCESSED';
2690
- /**
2691
- * Describes the enum capabilities.blockchain.solana.v1alpha.CommitmentType.
2692
- */
2693
- export declare const CommitmentTypeSchema: GenEnum<CommitmentType, CommitmentTypeJson>;
2694
- /**
2695
- * Cluster confirmation status of a tx/signature.
2696
- *
2697
- * @generated from enum capabilities.blockchain.solana.v1alpha.ConfirmationStatusType
2698
- */
2699
- export declare enum ConfirmationStatusType {
2700
- /**
2701
- * @generated from enum value: CONFIRMATION_STATUS_TYPE_NONE = 0;
2702
- */
2703
- NONE = 0,
2704
- /**
2705
- * @generated from enum value: CONFIRMATION_STATUS_TYPE_PROCESSED = 1;
2706
- */
2707
- PROCESSED = 1,
2708
- /**
2709
- * @generated from enum value: CONFIRMATION_STATUS_TYPE_CONFIRMED = 2;
2710
- */
2711
- CONFIRMED = 2,
2712
- /**
2713
- * @generated from enum value: CONFIRMATION_STATUS_TYPE_FINALIZED = 3;
2714
- */
2715
- FINALIZED = 3
2716
- }
2717
- /**
2718
- * Cluster confirmation status of a tx/signature.
2719
- *
2720
- * @generated from enum capabilities.blockchain.solana.v1alpha.ConfirmationStatusType
2721
- */
2722
- export type ConfirmationStatusTypeJson = 'CONFIRMATION_STATUS_TYPE_NONE' | 'CONFIRMATION_STATUS_TYPE_PROCESSED' | 'CONFIRMATION_STATUS_TYPE_CONFIRMED' | 'CONFIRMATION_STATUS_TYPE_FINALIZED';
2723
- /**
2724
- * Describes the enum capabilities.blockchain.solana.v1alpha.ConfirmationStatusType.
2725
- */
2726
- export declare const ConfirmationStatusTypeSchema: GenEnum<ConfirmationStatusType, ConfirmationStatusTypeJson>;
2727
- /**
2728
- * Transaction execution status returned by submitters/simulations.
2729
- *
2730
- * @generated from enum capabilities.blockchain.solana.v1alpha.TxStatus
2731
- */
2732
- export declare enum TxStatus {
2733
- /**
2734
- * unrecoverable failure
2735
- *
2736
- * @generated from enum value: TX_STATUS_FATAL = 0;
2737
- */
2738
- FATAL = 0,
2739
- /**
2740
- * not executed / dropped
2741
- *
2742
- * @generated from enum value: TX_STATUS_ABORTED = 1;
2743
- */
2744
- ABORTED = 1,
2745
- /**
2746
- * executed successfully
2747
- *
2748
- * @generated from enum value: TX_STATUS_SUCCESS = 2;
2749
- */
2750
- SUCCESS = 2
2751
- }
2752
- /**
2753
- * Transaction execution status returned by submitters/simulations.
2754
- *
2755
- * @generated from enum capabilities.blockchain.solana.v1alpha.TxStatus
2756
- */
2757
- export type TxStatusJson = 'TX_STATUS_FATAL' | 'TX_STATUS_ABORTED' | 'TX_STATUS_SUCCESS';
2758
- /**
2759
- * Describes the enum capabilities.blockchain.solana.v1alpha.TxStatus.
2760
- */
2761
- export declare const TxStatusSchema: GenEnum<TxStatus, TxStatusJson>;
2762
- /**
2763
- * @generated from enum capabilities.blockchain.solana.v1alpha.ComparisonOperator
2764
- */
2765
- export declare enum ComparisonOperator {
2766
- /**
2767
- * @generated from enum value: COMPARISON_OPERATOR_EQ = 0;
2768
- */
2769
- EQ = 0,
2770
- /**
2771
- * @generated from enum value: COMPARISON_OPERATOR_NEQ = 1;
2772
- */
2773
- NEQ = 1,
2774
- /**
2775
- * @generated from enum value: COMPARISON_OPERATOR_GT = 2;
2776
- */
2777
- GT = 2,
2778
- /**
2779
- * @generated from enum value: COMPARISON_OPERATOR_LT = 3;
2780
- */
2781
- LT = 3,
2782
- /**
2783
- * @generated from enum value: COMPARISON_OPERATOR_GTE = 4;
2784
- */
2785
- GTE = 4,
2786
- /**
2787
- * @generated from enum value: COMPARISON_OPERATOR_LTE = 5;
2788
- */
2789
- LTE = 5
2790
- }
2791
- /**
2792
- * @generated from enum capabilities.blockchain.solana.v1alpha.ComparisonOperator
2793
- */
2794
- export type ComparisonOperatorJson = 'COMPARISON_OPERATOR_EQ' | 'COMPARISON_OPERATOR_NEQ' | 'COMPARISON_OPERATOR_GT' | 'COMPARISON_OPERATOR_LT' | 'COMPARISON_OPERATOR_GTE' | 'COMPARISON_OPERATOR_LTE';
2795
- /**
2796
- * Describes the enum capabilities.blockchain.solana.v1alpha.ComparisonOperator.
2797
- */
2798
- export declare const ComparisonOperatorSchema: GenEnum<ComparisonOperator, ComparisonOperatorJson>;
2799
- /**
2800
- * @generated from enum capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus
2801
- */
2802
- export declare enum ReceiverContractExecutionStatus {
2803
- /**
2804
- * @generated from enum value: RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS = 0;
2805
- */
2806
- SUCCESS = 0,
2807
- /**
2808
- * @generated from enum value: RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED = 1;
2809
- */
2810
- REVERTED = 1
2811
- }
2812
- /**
2813
- * @generated from enum capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus
2814
- */
2815
- export type ReceiverContractExecutionStatusJson = 'RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS' | 'RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED';
2816
- /**
2817
- * Describes the enum capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus.
2818
- */
2819
- export declare const ReceiverContractExecutionStatusSchema: GenEnum<ReceiverContractExecutionStatus, ReceiverContractExecutionStatusJson>;
2820
- /**
2821
- * @generated from service capabilities.blockchain.solana.v1alpha.Client
2822
- */
2823
- export declare const Client: GenService<{
2824
- /**
2825
- * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetAccountInfoWithOpts
2826
- */
2827
- getAccountInfoWithOpts: {
2828
- methodKind: 'unary';
2829
- input: typeof GetAccountInfoWithOptsRequestSchema;
2830
- output: typeof GetAccountInfoWithOptsReplySchema;
2831
- };
2832
- /**
2833
- * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetBalance
2834
- */
2835
- getBalance: {
2836
- methodKind: 'unary';
2837
- input: typeof GetBalanceRequestSchema;
2838
- output: typeof GetBalanceReplySchema;
2839
- };
2840
- /**
2841
- * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetBlock
2842
- */
2843
- getBlock: {
2844
- methodKind: 'unary';
2845
- input: typeof GetBlockRequestSchema;
2846
- output: typeof GetBlockReplySchema;
2847
- };
2848
- /**
2849
- * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetFeeForMessage
2850
- */
2851
- getFeeForMessage: {
2852
- methodKind: 'unary';
2853
- input: typeof GetFeeForMessageRequestSchema;
2854
- output: typeof GetFeeForMessageReplySchema;
2855
- };
2856
- /**
2857
- * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetMultipleAccountsWithOpts
2858
- */
2859
- getMultipleAccountsWithOpts: {
2860
- methodKind: 'unary';
2861
- input: typeof GetMultipleAccountsWithOptsRequestSchema;
2862
- output: typeof GetMultipleAccountsWithOptsReplySchema;
2863
- };
2864
- /**
2865
- * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetSignatureStatuses
2866
- */
2867
- getSignatureStatuses: {
2868
- methodKind: 'unary';
2869
- input: typeof GetSignatureStatusesRequestSchema;
2870
- output: typeof GetSignatureStatusesReplySchema;
2871
- };
2872
- /**
2873
- * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetSlotHeight
2874
- */
2875
- getSlotHeight: {
2876
- methodKind: 'unary';
2877
- input: typeof GetSlotHeightRequestSchema;
2878
- output: typeof GetSlotHeightReplySchema;
2879
- };
2880
- /**
2881
- * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.GetTransaction
2882
- */
2883
- getTransaction: {
2884
- methodKind: 'unary';
2885
- input: typeof GetTransactionRequestSchema;
2886
- output: typeof GetTransactionReplySchema;
2887
- };
2888
- /**
2889
- * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.LogTrigger
2890
- */
2891
- logTrigger: {
2892
- methodKind: 'server_streaming';
2893
- input: typeof FilterLogTriggerRequestSchema;
2894
- output: typeof LogSchema;
2895
- };
2896
- /**
2897
- * @generated from rpc capabilities.blockchain.solana.v1alpha.Client.WriteReport
2898
- */
2899
- writeReport: {
2900
- methodKind: 'unary';
2901
- input: typeof WriteReportRequestSchema;
2902
- output: typeof WriteReportReplySchema;
2903
- };
2904
- }>;