@lightprotocol/stateless.js 0.22.0 → 0.22.1-alpha.1

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 (71) hide show
  1. package/README.md +10 -10
  2. package/dist/cjs/browser/constants.d.ts +24 -7
  3. package/dist/cjs/browser/index.cjs +1 -1
  4. package/dist/cjs/browser/index.cjs.map +1 -1
  5. package/dist/cjs/browser/rpc-interface.d.ts +275 -275
  6. package/dist/cjs/browser/rpc.d.ts +5 -1
  7. package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +4 -0
  8. package/dist/cjs/browser/utils/address.d.ts +7 -6
  9. package/dist/cjs/browser/utils/conversion.d.ts +1 -0
  10. package/dist/cjs/browser/utils/index.d.ts +1 -0
  11. package/dist/cjs/browser/utils/instruction.d.ts +35 -0
  12. package/dist/cjs/node/constants.d.ts +24 -7
  13. package/dist/cjs/node/index.cjs +1 -1
  14. package/dist/cjs/node/index.cjs.map +1 -1
  15. package/dist/cjs/node/rpc-interface.d.ts +275 -275
  16. package/dist/cjs/node/rpc.d.ts +5 -1
  17. package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +4 -0
  18. package/dist/cjs/node/utils/address.d.ts +7 -6
  19. package/dist/cjs/node/utils/conversion.d.ts +1 -0
  20. package/dist/cjs/node/utils/index.d.ts +1 -0
  21. package/dist/cjs/node/utils/instruction.d.ts +35 -0
  22. package/dist/es/browser/actions/compress.d.ts +18 -0
  23. package/dist/es/browser/actions/create-account.d.ts +38 -0
  24. package/dist/es/browser/actions/decompress.d.ts +15 -0
  25. package/dist/es/browser/actions/index.d.ts +5 -0
  26. package/dist/es/browser/actions/transfer.d.ts +16 -0
  27. package/dist/es/browser/constants.d.ts +157 -0
  28. package/dist/es/browser/errors.d.ts +74 -0
  29. package/dist/es/browser/index.d.ts +9 -0
  30. package/dist/es/browser/index.js +2 -0
  31. package/dist/es/browser/index.js.map +1 -0
  32. package/dist/es/browser/programs/index.d.ts +1 -0
  33. package/dist/es/browser/programs/system/idl.d.ts +997 -0
  34. package/dist/es/browser/programs/system/index.d.ts +5 -0
  35. package/dist/es/browser/programs/system/layout.d.ts +77 -0
  36. package/dist/es/browser/programs/system/pack.d.ts +74 -0
  37. package/dist/es/browser/programs/system/program.d.ts +175 -0
  38. package/dist/es/browser/programs/system/select-compressed-accounts.d.ts +10 -0
  39. package/dist/es/browser/rpc-interface.d.ts +2779 -0
  40. package/dist/es/browser/rpc.d.ts +284 -0
  41. package/dist/es/browser/state/BN254.d.ts +13 -0
  42. package/dist/es/browser/state/bn.d.ts +3 -0
  43. package/dist/es/browser/state/compressed-account.d.ts +205 -0
  44. package/dist/es/browser/state/index.d.ts +4 -0
  45. package/dist/es/browser/state/types.d.ts +449 -0
  46. package/dist/es/browser/test-helpers/index.d.ts +3 -0
  47. package/dist/es/browser/test-helpers/merkle-tree/index.d.ts +2 -0
  48. package/dist/es/browser/test-helpers/merkle-tree/indexed-array.d.ts +85 -0
  49. package/dist/es/browser/test-helpers/merkle-tree/merkle-tree.d.ts +92 -0
  50. package/dist/es/browser/test-helpers/test-rpc/get-compressed-accounts.d.ts +7 -0
  51. package/dist/es/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +40 -0
  52. package/dist/es/browser/test-helpers/test-rpc/get-parsed-events.d.ts +15 -0
  53. package/dist/es/browser/test-helpers/test-rpc/index.d.ts +3 -0
  54. package/dist/es/browser/test-helpers/test-rpc/test-rpc.d.ts +239 -0
  55. package/dist/es/browser/test-helpers/test-utils.d.ts +31 -0
  56. package/dist/es/browser/utils/address.d.ts +64 -0
  57. package/dist/es/browser/utils/airdrop.d.ts +7 -0
  58. package/dist/es/browser/utils/calculate-compute-unit-price.d.ts +7 -0
  59. package/dist/es/browser/utils/conversion.d.ts +36 -0
  60. package/dist/es/browser/utils/dedupe-signer.d.ts +3 -0
  61. package/dist/es/browser/utils/get-state-tree-infos.d.ts +48 -0
  62. package/dist/es/browser/utils/index.d.ts +13 -0
  63. package/dist/es/browser/utils/instruction.d.ts +35 -0
  64. package/dist/es/browser/utils/parse-validity-proof.d.ts +20 -0
  65. package/dist/es/browser/utils/pipe.d.ts +2 -0
  66. package/dist/es/browser/utils/send-and-confirm.d.ts +52 -0
  67. package/dist/es/browser/utils/sleep.d.ts +1 -0
  68. package/dist/es/browser/utils/state-tree-lookup-table.d.ts +68 -0
  69. package/dist/es/browser/utils/validation.d.ts +8 -0
  70. package/dist/types/index.d.ts +78 -16
  71. package/package.json +16 -8
@@ -0,0 +1,2779 @@
1
+ import { PublicKey, MemcmpFilter, DataSlice } from '@solana/web3.js';
2
+ import { Struct } from 'superstruct';
3
+ import { BN254, ValidityProof, CompressedAccountWithMerkleContext, MerkleContextWithMerkleProof, TokenData, TreeInfo, AddressTreeInfo, CompressedProof } from './state';
4
+ import BN from 'bn.js';
5
+ export interface LatestNonVotingSignatures {
6
+ context: {
7
+ slot: number;
8
+ };
9
+ value: {
10
+ items: {
11
+ signature: string;
12
+ slot: number;
13
+ blockTime: number;
14
+ error: string | null;
15
+ }[];
16
+ };
17
+ }
18
+ export interface GetCompressedAccountsByOwnerConfig {
19
+ filters?: GetCompressedAccountsFilter[];
20
+ dataSlice?: DataSlice;
21
+ cursor?: string;
22
+ limit?: BN;
23
+ }
24
+ export interface CompressedMintTokenHolders {
25
+ balance: BN;
26
+ owner: PublicKey;
27
+ }
28
+ export interface LatestNonVotingSignaturesPaginated {
29
+ context: {
30
+ slot: number;
31
+ };
32
+ value: {
33
+ items: {
34
+ signature: string;
35
+ slot: number;
36
+ blockTime: number;
37
+ }[];
38
+ cursor: string | null;
39
+ };
40
+ }
41
+ export interface SignatureWithMetadata {
42
+ blockTime: number;
43
+ signature: string;
44
+ slot: number;
45
+ }
46
+ /**
47
+ * Account hash and associated state tree info.
48
+ */
49
+ export interface HashWithTreeInfo {
50
+ /**
51
+ * Account hash.
52
+ */
53
+ hash: BN254;
54
+ /**
55
+ * State tree info.
56
+ */
57
+ stateTreeInfo: TreeInfo;
58
+ }
59
+ /**
60
+ * Address and associated address tree info.
61
+ */
62
+ export interface AddressWithTreeInfo {
63
+ /**
64
+ * Address.
65
+ */
66
+ address: BN254;
67
+ /**
68
+ * Address tree info.
69
+ */
70
+ addressTreeInfo: AddressTreeInfo;
71
+ }
72
+ export interface HashWithTree {
73
+ hash: BN254;
74
+ tree: PublicKey;
75
+ queue: PublicKey;
76
+ }
77
+ export interface AddressWithTree {
78
+ address: BN254;
79
+ tree: PublicKey;
80
+ queue: PublicKey;
81
+ }
82
+ export interface AddressWithTreeInfo {
83
+ address: BN254;
84
+ treeInfo: AddressTreeInfo;
85
+ }
86
+ export interface CompressedTransaction {
87
+ compressionInfo: {
88
+ closedAccounts: {
89
+ account: CompressedAccountWithMerkleContext;
90
+ maybeTokenData: TokenData | null;
91
+ }[];
92
+ openedAccounts: {
93
+ account: CompressedAccountWithMerkleContext;
94
+ maybeTokenData: TokenData | null;
95
+ }[];
96
+ preTokenBalances?: {
97
+ owner: PublicKey;
98
+ mint: PublicKey;
99
+ amount: BN;
100
+ }[];
101
+ postTokenBalances?: {
102
+ owner: PublicKey;
103
+ mint: PublicKey;
104
+ amount: BN;
105
+ }[];
106
+ };
107
+ transaction: any;
108
+ }
109
+ export interface HexBatchInputsForProver {
110
+ 'input-compressed-accounts': HexInputsForProver[];
111
+ }
112
+ export interface HexInputsForProver {
113
+ root: string;
114
+ pathIndex: number;
115
+ pathElements: string[];
116
+ leaf: string;
117
+ }
118
+ /**
119
+ * Validity proof with context.
120
+ *
121
+ * You can request proofs via `rpc.getValidityProof` or
122
+ * `rpc.getValidityProofV0`.
123
+ */
124
+ export type ValidityProofWithContext = {
125
+ /**
126
+ * Validity proof.
127
+ */
128
+ compressedProof: ValidityProof | null;
129
+ /**
130
+ * Roots.
131
+ */
132
+ roots: BN[];
133
+ /**
134
+ * Root indices.
135
+ */
136
+ rootIndices: number[];
137
+ /**
138
+ * Leaf indices.
139
+ */
140
+ leafIndices: number[];
141
+ /**
142
+ * Leaves.
143
+ */
144
+ leaves: BN[];
145
+ /**
146
+ * Tree infos.
147
+ */
148
+ treeInfos: TreeInfo[];
149
+ /**
150
+ * Whether to prove by indices.
151
+ */
152
+ proveByIndices: boolean[];
153
+ };
154
+ /**
155
+ * @deprecated use {@link ValidityProofWithContext} instead
156
+ */
157
+ export type CompressedProofWithContext = {
158
+ compressedProof: CompressedProof;
159
+ roots: BN[];
160
+ rootIndices: number[];
161
+ leafIndices: number[];
162
+ leaves: BN[];
163
+ merkleTrees: PublicKey[];
164
+ nullifierQueues: PublicKey[];
165
+ };
166
+ export interface GetCompressedTokenAccountsByOwnerOrDelegateOptions {
167
+ mint?: PublicKey;
168
+ cursor?: string;
169
+ limit?: BN;
170
+ }
171
+ export type TokenBalance = {
172
+ balance: BN;
173
+ mint: PublicKey;
174
+ };
175
+ /**
176
+ * **Cursor** is a unique identifier for a page of results by which the next page can be fetched.
177
+ *
178
+ * **Limit** is the maximum number of results to return per page.
179
+ */
180
+ export interface PaginatedOptions {
181
+ cursor?: string;
182
+ limit?: BN;
183
+ }
184
+ /**
185
+ * Note, DataSizeFilter is currently not available.
186
+ */
187
+ export type GetCompressedAccountsFilter = MemcmpFilter;
188
+ export type GetCompressedAccountConfig = {
189
+ encoding?: string;
190
+ };
191
+ export type GetCompressedAccountsConfig = {
192
+ dataSlice: DataSlice;
193
+ filters?: GetCompressedAccountsFilter[];
194
+ };
195
+ export interface ParsedTokenAccount {
196
+ compressedAccount: CompressedAccountWithMerkleContext;
197
+ parsed: TokenData;
198
+ }
199
+ export type WithContext<T> = {
200
+ /** context */
201
+ context: {
202
+ slot: number;
203
+ };
204
+ /** response value */
205
+ value: T;
206
+ };
207
+ export type WithCursor<T> = {
208
+ /** context */
209
+ cursor: string | null;
210
+ /** response value */
211
+ items: T;
212
+ };
213
+ /**
214
+ * @internal
215
+ */
216
+ export declare function createRpcResult<T, U>(result: Struct<T, U>): Struct<RpcResult<T>, null>;
217
+ /**
218
+ * @internal
219
+ */
220
+ export declare function jsonRpcResult<T, U>(schema: Struct<T, U>): Struct<RpcResult<T>, null>;
221
+ export type WithRpcContext<T> = {
222
+ context: {
223
+ slot: number;
224
+ };
225
+ value: T;
226
+ };
227
+ /**
228
+ * @internal
229
+ */
230
+ export declare function jsonRpcResultAndContext<T, U>(value: Struct<T, U>): Struct<RpcResult<WithRpcContext<T>>, null>;
231
+ /**
232
+ * @internal
233
+ */
234
+ export declare const CompressedAccountResult: Struct<{
235
+ data: {
236
+ data: string;
237
+ discriminator: BN;
238
+ dataHash: BN;
239
+ } | null;
240
+ lamports: BN;
241
+ owner: PublicKey;
242
+ address: number[] | null;
243
+ leafIndex: number;
244
+ seq: BN | null;
245
+ tree: PublicKey;
246
+ hash: BN;
247
+ slotCreated: BN;
248
+ }, {
249
+ address: Struct<number[] | null, null>;
250
+ hash: Struct<BN, null>;
251
+ data: Struct<{
252
+ data: string;
253
+ discriminator: BN;
254
+ dataHash: BN;
255
+ } | null, {
256
+ data: Struct<string, null>;
257
+ dataHash: Struct<BN, null>;
258
+ discriminator: Struct<BN, null>;
259
+ }>;
260
+ lamports: Struct<BN, null>;
261
+ owner: Struct<PublicKey, null>;
262
+ leafIndex: Struct<number, null>;
263
+ tree: Struct<PublicKey, null>;
264
+ seq: Struct<BN | null, null>;
265
+ slotCreated: Struct<BN, null>;
266
+ }>;
267
+ export declare const CompressedAccountResultV2: Struct<{
268
+ data: {
269
+ data: string;
270
+ discriminator: BN;
271
+ dataHash: BN;
272
+ } | null;
273
+ lamports: BN;
274
+ owner: PublicKey;
275
+ address: number[] | null;
276
+ merkleContext: {
277
+ cpiContext: PublicKey | null;
278
+ tree: PublicKey;
279
+ queue: PublicKey;
280
+ treeType: number;
281
+ nextTreeContext?: {
282
+ cpiContext: PublicKey | null;
283
+ tree: PublicKey;
284
+ queue: PublicKey;
285
+ treeType: number;
286
+ } | null | undefined;
287
+ };
288
+ leafIndex: number;
289
+ proveByIndex: boolean;
290
+ seq: BN | null;
291
+ hash: BN;
292
+ slotCreated: BN;
293
+ }, {
294
+ address: Struct<number[] | null, null>;
295
+ hash: Struct<BN, null>;
296
+ data: Struct<{
297
+ data: string;
298
+ discriminator: BN;
299
+ dataHash: BN;
300
+ } | null, {
301
+ data: Struct<string, null>;
302
+ dataHash: Struct<BN, null>;
303
+ discriminator: Struct<BN, null>;
304
+ }>;
305
+ lamports: Struct<BN, null>;
306
+ owner: Struct<PublicKey, null>;
307
+ leafIndex: Struct<number, null>;
308
+ seq: Struct<BN | null, null>;
309
+ slotCreated: Struct<BN, null>;
310
+ merkleContext: Struct<{
311
+ cpiContext: PublicKey | null;
312
+ tree: PublicKey;
313
+ queue: PublicKey;
314
+ treeType: number;
315
+ nextTreeContext?: {
316
+ cpiContext: PublicKey | null;
317
+ tree: PublicKey;
318
+ queue: PublicKey;
319
+ treeType: number;
320
+ } | null | undefined;
321
+ }, {
322
+ treeType: Struct<number, null>;
323
+ tree: Struct<PublicKey, null>;
324
+ queue: Struct<PublicKey, null>;
325
+ cpiContext: Struct<PublicKey | null, null>;
326
+ nextTreeContext: Struct<{
327
+ cpiContext: PublicKey | null;
328
+ tree: PublicKey;
329
+ queue: PublicKey;
330
+ treeType: number;
331
+ } | null | undefined, {
332
+ treeType: Struct<number, null>;
333
+ tree: Struct<PublicKey, null>;
334
+ queue: Struct<PublicKey, null>;
335
+ cpiContext: Struct<PublicKey | null, null>;
336
+ }>;
337
+ }>;
338
+ proveByIndex: Struct<boolean, null>;
339
+ }>;
340
+ export declare const TokenDataResult: Struct<{
341
+ owner: PublicKey;
342
+ mint: PublicKey;
343
+ amount: BN;
344
+ delegate: PublicKey | null;
345
+ state: string;
346
+ }, {
347
+ mint: Struct<PublicKey, null>;
348
+ owner: Struct<PublicKey, null>;
349
+ amount: Struct<BN, null>;
350
+ delegate: Struct<PublicKey | null, null>;
351
+ state: Struct<string, null>;
352
+ }>;
353
+ /**
354
+ * @internal
355
+ */
356
+ export declare const CompressedTokenAccountResult: Struct<{
357
+ tokenData: {
358
+ owner: PublicKey;
359
+ mint: PublicKey;
360
+ amount: BN;
361
+ delegate: PublicKey | null;
362
+ state: string;
363
+ };
364
+ account: {
365
+ data: {
366
+ data: string;
367
+ discriminator: BN;
368
+ dataHash: BN;
369
+ } | null;
370
+ lamports: BN;
371
+ owner: PublicKey;
372
+ address: number[] | null;
373
+ leafIndex: number;
374
+ seq: BN | null;
375
+ tree: PublicKey;
376
+ hash: BN;
377
+ slotCreated: BN;
378
+ };
379
+ }, {
380
+ tokenData: Struct<{
381
+ owner: PublicKey;
382
+ mint: PublicKey;
383
+ amount: BN;
384
+ delegate: PublicKey | null;
385
+ state: string;
386
+ }, {
387
+ mint: Struct<PublicKey, null>;
388
+ owner: Struct<PublicKey, null>;
389
+ amount: Struct<BN, null>;
390
+ delegate: Struct<PublicKey | null, null>;
391
+ state: Struct<string, null>;
392
+ }>;
393
+ account: Struct<{
394
+ data: {
395
+ data: string;
396
+ discriminator: BN;
397
+ dataHash: BN;
398
+ } | null;
399
+ lamports: BN;
400
+ owner: PublicKey;
401
+ address: number[] | null;
402
+ leafIndex: number;
403
+ seq: BN | null;
404
+ tree: PublicKey;
405
+ hash: BN;
406
+ slotCreated: BN;
407
+ }, {
408
+ address: Struct<number[] | null, null>;
409
+ hash: Struct<BN, null>;
410
+ data: Struct<{
411
+ data: string;
412
+ discriminator: BN;
413
+ dataHash: BN;
414
+ } | null, {
415
+ data: Struct<string, null>;
416
+ dataHash: Struct<BN, null>;
417
+ discriminator: Struct<BN, null>;
418
+ }>;
419
+ lamports: Struct<BN, null>;
420
+ owner: Struct<PublicKey, null>;
421
+ leafIndex: Struct<number, null>;
422
+ tree: Struct<PublicKey, null>;
423
+ seq: Struct<BN | null, null>;
424
+ slotCreated: Struct<BN, null>;
425
+ }>;
426
+ }>;
427
+ /**
428
+ * @internal
429
+ */
430
+ export declare const CompressedTokenAccountResultV2: Struct<{
431
+ tokenData: {
432
+ owner: PublicKey;
433
+ mint: PublicKey;
434
+ amount: BN;
435
+ delegate: PublicKey | null;
436
+ state: string;
437
+ };
438
+ account: {
439
+ data: {
440
+ data: string;
441
+ discriminator: BN;
442
+ dataHash: BN;
443
+ } | null;
444
+ lamports: BN;
445
+ owner: PublicKey;
446
+ address: number[] | null;
447
+ merkleContext: {
448
+ cpiContext: PublicKey | null;
449
+ tree: PublicKey;
450
+ queue: PublicKey;
451
+ treeType: number;
452
+ nextTreeContext?: {
453
+ cpiContext: PublicKey | null;
454
+ tree: PublicKey;
455
+ queue: PublicKey;
456
+ treeType: number;
457
+ } | null | undefined;
458
+ };
459
+ leafIndex: number;
460
+ proveByIndex: boolean;
461
+ seq: BN | null;
462
+ hash: BN;
463
+ slotCreated: BN;
464
+ };
465
+ }, {
466
+ tokenData: Struct<{
467
+ owner: PublicKey;
468
+ mint: PublicKey;
469
+ amount: BN;
470
+ delegate: PublicKey | null;
471
+ state: string;
472
+ }, {
473
+ mint: Struct<PublicKey, null>;
474
+ owner: Struct<PublicKey, null>;
475
+ amount: Struct<BN, null>;
476
+ delegate: Struct<PublicKey | null, null>;
477
+ state: Struct<string, null>;
478
+ }>;
479
+ account: Struct<{
480
+ data: {
481
+ data: string;
482
+ discriminator: BN;
483
+ dataHash: BN;
484
+ } | null;
485
+ lamports: BN;
486
+ owner: PublicKey;
487
+ address: number[] | null;
488
+ merkleContext: {
489
+ cpiContext: PublicKey | null;
490
+ tree: PublicKey;
491
+ queue: PublicKey;
492
+ treeType: number;
493
+ nextTreeContext?: {
494
+ cpiContext: PublicKey | null;
495
+ tree: PublicKey;
496
+ queue: PublicKey;
497
+ treeType: number;
498
+ } | null | undefined;
499
+ };
500
+ leafIndex: number;
501
+ proveByIndex: boolean;
502
+ seq: BN | null;
503
+ hash: BN;
504
+ slotCreated: BN;
505
+ }, {
506
+ address: Struct<number[] | null, null>;
507
+ hash: Struct<BN, null>;
508
+ data: Struct<{
509
+ data: string;
510
+ discriminator: BN;
511
+ dataHash: BN;
512
+ } | null, {
513
+ data: Struct<string, null>;
514
+ dataHash: Struct<BN, null>;
515
+ discriminator: Struct<BN, null>;
516
+ }>;
517
+ lamports: Struct<BN, null>;
518
+ owner: Struct<PublicKey, null>;
519
+ leafIndex: Struct<number, null>;
520
+ seq: Struct<BN | null, null>;
521
+ slotCreated: Struct<BN, null>;
522
+ merkleContext: Struct<{
523
+ cpiContext: PublicKey | null;
524
+ tree: PublicKey;
525
+ queue: PublicKey;
526
+ treeType: number;
527
+ nextTreeContext?: {
528
+ cpiContext: PublicKey | null;
529
+ tree: PublicKey;
530
+ queue: PublicKey;
531
+ treeType: number;
532
+ } | null | undefined;
533
+ }, {
534
+ treeType: Struct<number, null>;
535
+ tree: Struct<PublicKey, null>;
536
+ queue: Struct<PublicKey, null>;
537
+ cpiContext: Struct<PublicKey | null, null>;
538
+ nextTreeContext: Struct<{
539
+ cpiContext: PublicKey | null;
540
+ tree: PublicKey;
541
+ queue: PublicKey;
542
+ treeType: number;
543
+ } | null | undefined, {
544
+ treeType: Struct<number, null>;
545
+ tree: Struct<PublicKey, null>;
546
+ queue: Struct<PublicKey, null>;
547
+ cpiContext: Struct<PublicKey | null, null>;
548
+ }>;
549
+ }>;
550
+ proveByIndex: Struct<boolean, null>;
551
+ }>;
552
+ }>;
553
+ /**
554
+ * @internal
555
+ */
556
+ export declare const MultipleCompressedAccountsResult: Struct<{
557
+ items: {
558
+ data: {
559
+ data: string;
560
+ discriminator: BN;
561
+ dataHash: BN;
562
+ } | null;
563
+ lamports: BN;
564
+ owner: PublicKey;
565
+ address: number[] | null;
566
+ leafIndex: number;
567
+ seq: BN | null;
568
+ tree: PublicKey;
569
+ hash: BN;
570
+ slotCreated: BN;
571
+ }[];
572
+ }, {
573
+ items: Struct<{
574
+ data: {
575
+ data: string;
576
+ discriminator: BN;
577
+ dataHash: BN;
578
+ } | null;
579
+ lamports: BN;
580
+ owner: PublicKey;
581
+ address: number[] | null;
582
+ leafIndex: number;
583
+ seq: BN | null;
584
+ tree: PublicKey;
585
+ hash: BN;
586
+ slotCreated: BN;
587
+ }[], Struct<{
588
+ data: {
589
+ data: string;
590
+ discriminator: BN;
591
+ dataHash: BN;
592
+ } | null;
593
+ lamports: BN;
594
+ owner: PublicKey;
595
+ address: number[] | null;
596
+ leafIndex: number;
597
+ seq: BN | null;
598
+ tree: PublicKey;
599
+ hash: BN;
600
+ slotCreated: BN;
601
+ }, {
602
+ address: Struct<number[] | null, null>;
603
+ hash: Struct<BN, null>;
604
+ data: Struct<{
605
+ data: string;
606
+ discriminator: BN;
607
+ dataHash: BN;
608
+ } | null, {
609
+ data: Struct<string, null>;
610
+ dataHash: Struct<BN, null>;
611
+ discriminator: Struct<BN, null>;
612
+ }>;
613
+ lamports: Struct<BN, null>;
614
+ owner: Struct<PublicKey, null>;
615
+ leafIndex: Struct<number, null>;
616
+ tree: Struct<PublicKey, null>;
617
+ seq: Struct<BN | null, null>;
618
+ slotCreated: Struct<BN, null>;
619
+ }>>;
620
+ }>;
621
+ /**
622
+ * @internal
623
+ */
624
+ export declare const MultipleCompressedAccountsResultV2: Struct<{
625
+ items: {
626
+ data: {
627
+ data: string;
628
+ discriminator: BN;
629
+ dataHash: BN;
630
+ } | null;
631
+ lamports: BN;
632
+ owner: PublicKey;
633
+ address: number[] | null;
634
+ merkleContext: {
635
+ cpiContext: PublicKey | null;
636
+ tree: PublicKey;
637
+ queue: PublicKey;
638
+ treeType: number;
639
+ nextTreeContext?: {
640
+ cpiContext: PublicKey | null;
641
+ tree: PublicKey;
642
+ queue: PublicKey;
643
+ treeType: number;
644
+ } | null | undefined;
645
+ };
646
+ leafIndex: number;
647
+ proveByIndex: boolean;
648
+ seq: BN | null;
649
+ hash: BN;
650
+ slotCreated: BN;
651
+ }[];
652
+ }, {
653
+ items: Struct<{
654
+ data: {
655
+ data: string;
656
+ discriminator: BN;
657
+ dataHash: BN;
658
+ } | null;
659
+ lamports: BN;
660
+ owner: PublicKey;
661
+ address: number[] | null;
662
+ merkleContext: {
663
+ cpiContext: PublicKey | null;
664
+ tree: PublicKey;
665
+ queue: PublicKey;
666
+ treeType: number;
667
+ nextTreeContext?: {
668
+ cpiContext: PublicKey | null;
669
+ tree: PublicKey;
670
+ queue: PublicKey;
671
+ treeType: number;
672
+ } | null | undefined;
673
+ };
674
+ leafIndex: number;
675
+ proveByIndex: boolean;
676
+ seq: BN | null;
677
+ hash: BN;
678
+ slotCreated: BN;
679
+ }[], Struct<{
680
+ data: {
681
+ data: string;
682
+ discriminator: BN;
683
+ dataHash: BN;
684
+ } | null;
685
+ lamports: BN;
686
+ owner: PublicKey;
687
+ address: number[] | null;
688
+ merkleContext: {
689
+ cpiContext: PublicKey | null;
690
+ tree: PublicKey;
691
+ queue: PublicKey;
692
+ treeType: number;
693
+ nextTreeContext?: {
694
+ cpiContext: PublicKey | null;
695
+ tree: PublicKey;
696
+ queue: PublicKey;
697
+ treeType: number;
698
+ } | null | undefined;
699
+ };
700
+ leafIndex: number;
701
+ proveByIndex: boolean;
702
+ seq: BN | null;
703
+ hash: BN;
704
+ slotCreated: BN;
705
+ }, {
706
+ address: Struct<number[] | null, null>;
707
+ hash: Struct<BN, null>;
708
+ data: Struct<{
709
+ data: string;
710
+ discriminator: BN;
711
+ dataHash: BN;
712
+ } | null, {
713
+ data: Struct<string, null>;
714
+ dataHash: Struct<BN, null>;
715
+ discriminator: Struct<BN, null>;
716
+ }>;
717
+ lamports: Struct<BN, null>;
718
+ owner: Struct<PublicKey, null>;
719
+ leafIndex: Struct<number, null>;
720
+ seq: Struct<BN | null, null>;
721
+ slotCreated: Struct<BN, null>;
722
+ merkleContext: Struct<{
723
+ cpiContext: PublicKey | null;
724
+ tree: PublicKey;
725
+ queue: PublicKey;
726
+ treeType: number;
727
+ nextTreeContext?: {
728
+ cpiContext: PublicKey | null;
729
+ tree: PublicKey;
730
+ queue: PublicKey;
731
+ treeType: number;
732
+ } | null | undefined;
733
+ }, {
734
+ treeType: Struct<number, null>;
735
+ tree: Struct<PublicKey, null>;
736
+ queue: Struct<PublicKey, null>;
737
+ cpiContext: Struct<PublicKey | null, null>;
738
+ nextTreeContext: Struct<{
739
+ cpiContext: PublicKey | null;
740
+ tree: PublicKey;
741
+ queue: PublicKey;
742
+ treeType: number;
743
+ } | null | undefined, {
744
+ treeType: Struct<number, null>;
745
+ tree: Struct<PublicKey, null>;
746
+ queue: Struct<PublicKey, null>;
747
+ cpiContext: Struct<PublicKey | null, null>;
748
+ }>;
749
+ }>;
750
+ proveByIndex: Struct<boolean, null>;
751
+ }>>;
752
+ }>;
753
+ /**
754
+ * @internal
755
+ */
756
+ export declare const CompressedAccountsByOwnerResult: Struct<{
757
+ items: {
758
+ data: {
759
+ data: string;
760
+ discriminator: BN;
761
+ dataHash: BN;
762
+ } | null;
763
+ lamports: BN;
764
+ owner: PublicKey;
765
+ address: number[] | null;
766
+ leafIndex: number;
767
+ seq: BN | null;
768
+ tree: PublicKey;
769
+ hash: BN;
770
+ slotCreated: BN;
771
+ }[];
772
+ cursor: string | null;
773
+ }, {
774
+ items: Struct<{
775
+ data: {
776
+ data: string;
777
+ discriminator: BN;
778
+ dataHash: BN;
779
+ } | null;
780
+ lamports: BN;
781
+ owner: PublicKey;
782
+ address: number[] | null;
783
+ leafIndex: number;
784
+ seq: BN | null;
785
+ tree: PublicKey;
786
+ hash: BN;
787
+ slotCreated: BN;
788
+ }[], Struct<{
789
+ data: {
790
+ data: string;
791
+ discriminator: BN;
792
+ dataHash: BN;
793
+ } | null;
794
+ lamports: BN;
795
+ owner: PublicKey;
796
+ address: number[] | null;
797
+ leafIndex: number;
798
+ seq: BN | null;
799
+ tree: PublicKey;
800
+ hash: BN;
801
+ slotCreated: BN;
802
+ }, {
803
+ address: Struct<number[] | null, null>;
804
+ hash: Struct<BN, null>;
805
+ data: Struct<{
806
+ data: string;
807
+ discriminator: BN;
808
+ dataHash: BN;
809
+ } | null, {
810
+ data: Struct<string, null>;
811
+ dataHash: Struct<BN, null>;
812
+ discriminator: Struct<BN, null>;
813
+ }>;
814
+ lamports: Struct<BN, null>;
815
+ owner: Struct<PublicKey, null>;
816
+ leafIndex: Struct<number, null>;
817
+ tree: Struct<PublicKey, null>;
818
+ seq: Struct<BN | null, null>;
819
+ slotCreated: Struct<BN, null>;
820
+ }>>;
821
+ cursor: Struct<string | null, null>;
822
+ }>;
823
+ /**
824
+ * @internal
825
+ */
826
+ export declare const CompressedAccountsByOwnerResultV2: Struct<{
827
+ items: {
828
+ data: {
829
+ data: string;
830
+ discriminator: BN;
831
+ dataHash: BN;
832
+ } | null;
833
+ lamports: BN;
834
+ owner: PublicKey;
835
+ address: number[] | null;
836
+ merkleContext: {
837
+ cpiContext: PublicKey | null;
838
+ tree: PublicKey;
839
+ queue: PublicKey;
840
+ treeType: number;
841
+ nextTreeContext?: {
842
+ cpiContext: PublicKey | null;
843
+ tree: PublicKey;
844
+ queue: PublicKey;
845
+ treeType: number;
846
+ } | null | undefined;
847
+ };
848
+ leafIndex: number;
849
+ proveByIndex: boolean;
850
+ seq: BN | null;
851
+ hash: BN;
852
+ slotCreated: BN;
853
+ }[];
854
+ cursor: string | null;
855
+ }, {
856
+ items: Struct<{
857
+ data: {
858
+ data: string;
859
+ discriminator: BN;
860
+ dataHash: BN;
861
+ } | null;
862
+ lamports: BN;
863
+ owner: PublicKey;
864
+ address: number[] | null;
865
+ merkleContext: {
866
+ cpiContext: PublicKey | null;
867
+ tree: PublicKey;
868
+ queue: PublicKey;
869
+ treeType: number;
870
+ nextTreeContext?: {
871
+ cpiContext: PublicKey | null;
872
+ tree: PublicKey;
873
+ queue: PublicKey;
874
+ treeType: number;
875
+ } | null | undefined;
876
+ };
877
+ leafIndex: number;
878
+ proveByIndex: boolean;
879
+ seq: BN | null;
880
+ hash: BN;
881
+ slotCreated: BN;
882
+ }[], Struct<{
883
+ data: {
884
+ data: string;
885
+ discriminator: BN;
886
+ dataHash: BN;
887
+ } | null;
888
+ lamports: BN;
889
+ owner: PublicKey;
890
+ address: number[] | null;
891
+ merkleContext: {
892
+ cpiContext: PublicKey | null;
893
+ tree: PublicKey;
894
+ queue: PublicKey;
895
+ treeType: number;
896
+ nextTreeContext?: {
897
+ cpiContext: PublicKey | null;
898
+ tree: PublicKey;
899
+ queue: PublicKey;
900
+ treeType: number;
901
+ } | null | undefined;
902
+ };
903
+ leafIndex: number;
904
+ proveByIndex: boolean;
905
+ seq: BN | null;
906
+ hash: BN;
907
+ slotCreated: BN;
908
+ }, {
909
+ address: Struct<number[] | null, null>;
910
+ hash: Struct<BN, null>;
911
+ data: Struct<{
912
+ data: string;
913
+ discriminator: BN;
914
+ dataHash: BN;
915
+ } | null, {
916
+ data: Struct<string, null>;
917
+ dataHash: Struct<BN, null>;
918
+ discriminator: Struct<BN, null>;
919
+ }>;
920
+ lamports: Struct<BN, null>;
921
+ owner: Struct<PublicKey, null>;
922
+ leafIndex: Struct<number, null>;
923
+ seq: Struct<BN | null, null>;
924
+ slotCreated: Struct<BN, null>;
925
+ merkleContext: Struct<{
926
+ cpiContext: PublicKey | null;
927
+ tree: PublicKey;
928
+ queue: PublicKey;
929
+ treeType: number;
930
+ nextTreeContext?: {
931
+ cpiContext: PublicKey | null;
932
+ tree: PublicKey;
933
+ queue: PublicKey;
934
+ treeType: number;
935
+ } | null | undefined;
936
+ }, {
937
+ treeType: Struct<number, null>;
938
+ tree: Struct<PublicKey, null>;
939
+ queue: Struct<PublicKey, null>;
940
+ cpiContext: Struct<PublicKey | null, null>;
941
+ nextTreeContext: Struct<{
942
+ cpiContext: PublicKey | null;
943
+ tree: PublicKey;
944
+ queue: PublicKey;
945
+ treeType: number;
946
+ } | null | undefined, {
947
+ treeType: Struct<number, null>;
948
+ tree: Struct<PublicKey, null>;
949
+ queue: Struct<PublicKey, null>;
950
+ cpiContext: Struct<PublicKey | null, null>;
951
+ }>;
952
+ }>;
953
+ proveByIndex: Struct<boolean, null>;
954
+ }>>;
955
+ cursor: Struct<string | null, null>;
956
+ }>;
957
+ /**
958
+ * @internal
959
+ */
960
+ export declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
961
+ items: {
962
+ tokenData: {
963
+ owner: PublicKey;
964
+ mint: PublicKey;
965
+ amount: BN;
966
+ delegate: PublicKey | null;
967
+ state: string;
968
+ };
969
+ account: {
970
+ data: {
971
+ data: string;
972
+ discriminator: BN;
973
+ dataHash: BN;
974
+ } | null;
975
+ lamports: BN;
976
+ owner: PublicKey;
977
+ address: number[] | null;
978
+ leafIndex: number;
979
+ seq: BN | null;
980
+ tree: PublicKey;
981
+ hash: BN;
982
+ slotCreated: BN;
983
+ };
984
+ }[];
985
+ cursor: string | null;
986
+ }, {
987
+ items: Struct<{
988
+ tokenData: {
989
+ owner: PublicKey;
990
+ mint: PublicKey;
991
+ amount: BN;
992
+ delegate: PublicKey | null;
993
+ state: string;
994
+ };
995
+ account: {
996
+ data: {
997
+ data: string;
998
+ discriminator: BN;
999
+ dataHash: BN;
1000
+ } | null;
1001
+ lamports: BN;
1002
+ owner: PublicKey;
1003
+ address: number[] | null;
1004
+ leafIndex: number;
1005
+ seq: BN | null;
1006
+ tree: PublicKey;
1007
+ hash: BN;
1008
+ slotCreated: BN;
1009
+ };
1010
+ }[], Struct<{
1011
+ tokenData: {
1012
+ owner: PublicKey;
1013
+ mint: PublicKey;
1014
+ amount: BN;
1015
+ delegate: PublicKey | null;
1016
+ state: string;
1017
+ };
1018
+ account: {
1019
+ data: {
1020
+ data: string;
1021
+ discriminator: BN;
1022
+ dataHash: BN;
1023
+ } | null;
1024
+ lamports: BN;
1025
+ owner: PublicKey;
1026
+ address: number[] | null;
1027
+ leafIndex: number;
1028
+ seq: BN | null;
1029
+ tree: PublicKey;
1030
+ hash: BN;
1031
+ slotCreated: BN;
1032
+ };
1033
+ }, {
1034
+ tokenData: Struct<{
1035
+ owner: PublicKey;
1036
+ mint: PublicKey;
1037
+ amount: BN;
1038
+ delegate: PublicKey | null;
1039
+ state: string;
1040
+ }, {
1041
+ mint: Struct<PublicKey, null>;
1042
+ owner: Struct<PublicKey, null>;
1043
+ amount: Struct<BN, null>;
1044
+ delegate: Struct<PublicKey | null, null>;
1045
+ state: Struct<string, null>;
1046
+ }>;
1047
+ account: Struct<{
1048
+ data: {
1049
+ data: string;
1050
+ discriminator: BN;
1051
+ dataHash: BN;
1052
+ } | null;
1053
+ lamports: BN;
1054
+ owner: PublicKey;
1055
+ address: number[] | null;
1056
+ leafIndex: number;
1057
+ seq: BN | null;
1058
+ tree: PublicKey;
1059
+ hash: BN;
1060
+ slotCreated: BN;
1061
+ }, {
1062
+ address: Struct<number[] | null, null>;
1063
+ hash: Struct<BN, null>;
1064
+ data: Struct<{
1065
+ data: string;
1066
+ discriminator: BN;
1067
+ dataHash: BN;
1068
+ } | null, {
1069
+ data: Struct<string, null>;
1070
+ dataHash: Struct<BN, null>;
1071
+ discriminator: Struct<BN, null>;
1072
+ }>;
1073
+ lamports: Struct<BN, null>;
1074
+ owner: Struct<PublicKey, null>;
1075
+ leafIndex: Struct<number, null>;
1076
+ tree: Struct<PublicKey, null>;
1077
+ seq: Struct<BN | null, null>;
1078
+ slotCreated: Struct<BN, null>;
1079
+ }>;
1080
+ }>>;
1081
+ cursor: Struct<string | null, null>;
1082
+ }>;
1083
+ /**
1084
+ * @internal
1085
+ */
1086
+ export declare const CompressedTokenAccountsByOwnerOrDelegateResultV2: Struct<{
1087
+ items: {
1088
+ tokenData: {
1089
+ owner: PublicKey;
1090
+ mint: PublicKey;
1091
+ amount: BN;
1092
+ delegate: PublicKey | null;
1093
+ state: string;
1094
+ };
1095
+ account: {
1096
+ data: {
1097
+ data: string;
1098
+ discriminator: BN;
1099
+ dataHash: BN;
1100
+ } | null;
1101
+ lamports: BN;
1102
+ owner: PublicKey;
1103
+ address: number[] | null;
1104
+ merkleContext: {
1105
+ cpiContext: PublicKey | null;
1106
+ tree: PublicKey;
1107
+ queue: PublicKey;
1108
+ treeType: number;
1109
+ nextTreeContext?: {
1110
+ cpiContext: PublicKey | null;
1111
+ tree: PublicKey;
1112
+ queue: PublicKey;
1113
+ treeType: number;
1114
+ } | null | undefined;
1115
+ };
1116
+ leafIndex: number;
1117
+ proveByIndex: boolean;
1118
+ seq: BN | null;
1119
+ hash: BN;
1120
+ slotCreated: BN;
1121
+ };
1122
+ }[];
1123
+ cursor: string | null;
1124
+ }, {
1125
+ items: Struct<{
1126
+ tokenData: {
1127
+ owner: PublicKey;
1128
+ mint: PublicKey;
1129
+ amount: BN;
1130
+ delegate: PublicKey | null;
1131
+ state: string;
1132
+ };
1133
+ account: {
1134
+ data: {
1135
+ data: string;
1136
+ discriminator: BN;
1137
+ dataHash: BN;
1138
+ } | null;
1139
+ lamports: BN;
1140
+ owner: PublicKey;
1141
+ address: number[] | null;
1142
+ merkleContext: {
1143
+ cpiContext: PublicKey | null;
1144
+ tree: PublicKey;
1145
+ queue: PublicKey;
1146
+ treeType: number;
1147
+ nextTreeContext?: {
1148
+ cpiContext: PublicKey | null;
1149
+ tree: PublicKey;
1150
+ queue: PublicKey;
1151
+ treeType: number;
1152
+ } | null | undefined;
1153
+ };
1154
+ leafIndex: number;
1155
+ proveByIndex: boolean;
1156
+ seq: BN | null;
1157
+ hash: BN;
1158
+ slotCreated: BN;
1159
+ };
1160
+ }[], Struct<{
1161
+ tokenData: {
1162
+ owner: PublicKey;
1163
+ mint: PublicKey;
1164
+ amount: BN;
1165
+ delegate: PublicKey | null;
1166
+ state: string;
1167
+ };
1168
+ account: {
1169
+ data: {
1170
+ data: string;
1171
+ discriminator: BN;
1172
+ dataHash: BN;
1173
+ } | null;
1174
+ lamports: BN;
1175
+ owner: PublicKey;
1176
+ address: number[] | null;
1177
+ merkleContext: {
1178
+ cpiContext: PublicKey | null;
1179
+ tree: PublicKey;
1180
+ queue: PublicKey;
1181
+ treeType: number;
1182
+ nextTreeContext?: {
1183
+ cpiContext: PublicKey | null;
1184
+ tree: PublicKey;
1185
+ queue: PublicKey;
1186
+ treeType: number;
1187
+ } | null | undefined;
1188
+ };
1189
+ leafIndex: number;
1190
+ proveByIndex: boolean;
1191
+ seq: BN | null;
1192
+ hash: BN;
1193
+ slotCreated: BN;
1194
+ };
1195
+ }, {
1196
+ tokenData: Struct<{
1197
+ owner: PublicKey;
1198
+ mint: PublicKey;
1199
+ amount: BN;
1200
+ delegate: PublicKey | null;
1201
+ state: string;
1202
+ }, {
1203
+ mint: Struct<PublicKey, null>;
1204
+ owner: Struct<PublicKey, null>;
1205
+ amount: Struct<BN, null>;
1206
+ delegate: Struct<PublicKey | null, null>;
1207
+ state: Struct<string, null>;
1208
+ }>;
1209
+ account: Struct<{
1210
+ data: {
1211
+ data: string;
1212
+ discriminator: BN;
1213
+ dataHash: BN;
1214
+ } | null;
1215
+ lamports: BN;
1216
+ owner: PublicKey;
1217
+ address: number[] | null;
1218
+ merkleContext: {
1219
+ cpiContext: PublicKey | null;
1220
+ tree: PublicKey;
1221
+ queue: PublicKey;
1222
+ treeType: number;
1223
+ nextTreeContext?: {
1224
+ cpiContext: PublicKey | null;
1225
+ tree: PublicKey;
1226
+ queue: PublicKey;
1227
+ treeType: number;
1228
+ } | null | undefined;
1229
+ };
1230
+ leafIndex: number;
1231
+ proveByIndex: boolean;
1232
+ seq: BN | null;
1233
+ hash: BN;
1234
+ slotCreated: BN;
1235
+ }, {
1236
+ address: Struct<number[] | null, null>;
1237
+ hash: Struct<BN, null>;
1238
+ data: Struct<{
1239
+ data: string;
1240
+ discriminator: BN;
1241
+ dataHash: BN;
1242
+ } | null, {
1243
+ data: Struct<string, null>;
1244
+ dataHash: Struct<BN, null>;
1245
+ discriminator: Struct<BN, null>;
1246
+ }>;
1247
+ lamports: Struct<BN, null>;
1248
+ owner: Struct<PublicKey, null>;
1249
+ leafIndex: Struct<number, null>;
1250
+ seq: Struct<BN | null, null>;
1251
+ slotCreated: Struct<BN, null>;
1252
+ merkleContext: Struct<{
1253
+ cpiContext: PublicKey | null;
1254
+ tree: PublicKey;
1255
+ queue: PublicKey;
1256
+ treeType: number;
1257
+ nextTreeContext?: {
1258
+ cpiContext: PublicKey | null;
1259
+ tree: PublicKey;
1260
+ queue: PublicKey;
1261
+ treeType: number;
1262
+ } | null | undefined;
1263
+ }, {
1264
+ treeType: Struct<number, null>;
1265
+ tree: Struct<PublicKey, null>;
1266
+ queue: Struct<PublicKey, null>;
1267
+ cpiContext: Struct<PublicKey | null, null>;
1268
+ nextTreeContext: Struct<{
1269
+ cpiContext: PublicKey | null;
1270
+ tree: PublicKey;
1271
+ queue: PublicKey;
1272
+ treeType: number;
1273
+ } | null | undefined, {
1274
+ treeType: Struct<number, null>;
1275
+ tree: Struct<PublicKey, null>;
1276
+ queue: Struct<PublicKey, null>;
1277
+ cpiContext: Struct<PublicKey | null, null>;
1278
+ }>;
1279
+ }>;
1280
+ proveByIndex: Struct<boolean, null>;
1281
+ }>;
1282
+ }>>;
1283
+ cursor: Struct<string | null, null>;
1284
+ }>;
1285
+ /**
1286
+ * @internal
1287
+ */
1288
+ export declare const SlotResult: Struct<number, null>;
1289
+ /**
1290
+ * @internal
1291
+ */
1292
+ export declare const HealthResult: Struct<string, null>;
1293
+ /**
1294
+ * @internal
1295
+ */
1296
+ export declare const LatestNonVotingSignaturesResult: Struct<{
1297
+ items: {
1298
+ error: string | null;
1299
+ blockTime: number;
1300
+ signature: string;
1301
+ slot: number;
1302
+ }[];
1303
+ }, {
1304
+ items: Struct<{
1305
+ error: string | null;
1306
+ blockTime: number;
1307
+ signature: string;
1308
+ slot: number;
1309
+ }[], Struct<{
1310
+ error: string | null;
1311
+ blockTime: number;
1312
+ signature: string;
1313
+ slot: number;
1314
+ }, {
1315
+ signature: Struct<string, null>;
1316
+ slot: Struct<number, null>;
1317
+ blockTime: Struct<number, null>;
1318
+ error: Struct<string | null, null>;
1319
+ }>>;
1320
+ }>;
1321
+ /**
1322
+ * @internal
1323
+ */
1324
+ export declare const LatestNonVotingSignaturesResultPaginated: Struct<{
1325
+ items: {
1326
+ blockTime: number;
1327
+ signature: string;
1328
+ slot: number;
1329
+ }[];
1330
+ cursor: string | null;
1331
+ }, {
1332
+ items: Struct<{
1333
+ blockTime: number;
1334
+ signature: string;
1335
+ slot: number;
1336
+ }[], Struct<{
1337
+ blockTime: number;
1338
+ signature: string;
1339
+ slot: number;
1340
+ }, {
1341
+ signature: Struct<string, null>;
1342
+ slot: Struct<number, null>;
1343
+ blockTime: Struct<number, null>;
1344
+ }>>;
1345
+ cursor: Struct<string | null, null>;
1346
+ }>;
1347
+ /**
1348
+ * @internal
1349
+ */
1350
+ export declare const MerkleProofResult: Struct<{
1351
+ root: BN;
1352
+ proof: BN[];
1353
+ leafIndex: number;
1354
+ hash: BN;
1355
+ merkleTree: PublicKey;
1356
+ rootSeq: number;
1357
+ }, {
1358
+ hash: Struct<BN, null>;
1359
+ leafIndex: Struct<number, null>;
1360
+ merkleTree: Struct<PublicKey, null>;
1361
+ proof: Struct<BN[], Struct<BN, null>>;
1362
+ rootSeq: Struct<number, null>;
1363
+ root: Struct<BN, null>;
1364
+ }>;
1365
+ /**
1366
+ * @internal
1367
+ */
1368
+ export declare const MerkleProofResultV2: Struct<{
1369
+ root: BN;
1370
+ proof: BN[];
1371
+ leafIndex: number;
1372
+ proveByIndex: boolean;
1373
+ hash: BN;
1374
+ rootSeq: number;
1375
+ treeContext: {
1376
+ cpiContext: PublicKey | null;
1377
+ tree: PublicKey;
1378
+ queue: PublicKey;
1379
+ treeType: number;
1380
+ nextTreeContext?: {
1381
+ cpiContext: PublicKey | null;
1382
+ tree: PublicKey;
1383
+ queue: PublicKey;
1384
+ treeType: number;
1385
+ } | null | undefined;
1386
+ };
1387
+ }, {
1388
+ hash: Struct<BN, null>;
1389
+ leafIndex: Struct<number, null>;
1390
+ proof: Struct<BN[], Struct<BN, null>>;
1391
+ root: Struct<BN, null>;
1392
+ rootSeq: Struct<number, null>;
1393
+ proveByIndex: Struct<boolean, null>;
1394
+ treeContext: Struct<{
1395
+ cpiContext: PublicKey | null;
1396
+ tree: PublicKey;
1397
+ queue: PublicKey;
1398
+ treeType: number;
1399
+ nextTreeContext?: {
1400
+ cpiContext: PublicKey | null;
1401
+ tree: PublicKey;
1402
+ queue: PublicKey;
1403
+ treeType: number;
1404
+ } | null | undefined;
1405
+ }, {
1406
+ treeType: Struct<number, null>;
1407
+ tree: Struct<PublicKey, null>;
1408
+ queue: Struct<PublicKey, null>;
1409
+ cpiContext: Struct<PublicKey | null, null>;
1410
+ nextTreeContext: Struct<{
1411
+ cpiContext: PublicKey | null;
1412
+ tree: PublicKey;
1413
+ queue: PublicKey;
1414
+ treeType: number;
1415
+ } | null | undefined, {
1416
+ treeType: Struct<number, null>;
1417
+ tree: Struct<PublicKey, null>;
1418
+ queue: Struct<PublicKey, null>;
1419
+ cpiContext: Struct<PublicKey | null, null>;
1420
+ }>;
1421
+ }>;
1422
+ }>;
1423
+ /**
1424
+ * @internal
1425
+ */
1426
+ export declare const NewAddressProofResult: Struct<{
1427
+ root: BN;
1428
+ proof: BN[];
1429
+ address: BN;
1430
+ merkleTree: PublicKey;
1431
+ rootSeq: number;
1432
+ nextIndex: number;
1433
+ lowerRangeAddress: BN;
1434
+ higherRangeAddress: BN;
1435
+ lowElementLeafIndex: number;
1436
+ }, {
1437
+ address: Struct<BN, null>;
1438
+ nextIndex: Struct<number, null>;
1439
+ merkleTree: Struct<PublicKey, null>;
1440
+ proof: Struct<BN[], Struct<BN, null>>;
1441
+ rootSeq: Struct<number, null>;
1442
+ root: Struct<BN, null>;
1443
+ lowerRangeAddress: Struct<BN, null>;
1444
+ higherRangeAddress: Struct<BN, null>;
1445
+ lowElementLeafIndex: Struct<number, null>;
1446
+ }>;
1447
+ /**
1448
+ * @internal
1449
+ */
1450
+ export declare const RootIndexResultV2: Struct<{
1451
+ rootIndex: number;
1452
+ proveByIndex: boolean;
1453
+ }, {
1454
+ rootIndex: Struct<number, null>;
1455
+ proveByIndex: Struct<boolean, null>;
1456
+ }>;
1457
+ /**
1458
+ * @internal
1459
+ */
1460
+ export declare const ValidityProofResult: Struct<{
1461
+ compressedProof: {
1462
+ a: number[];
1463
+ c: number[];
1464
+ b: number[];
1465
+ };
1466
+ leafIndices: number[];
1467
+ leaves: BN[];
1468
+ rootIndices: number[];
1469
+ roots: BN[];
1470
+ merkleTrees: PublicKey[];
1471
+ }, {
1472
+ compressedProof: Struct<{
1473
+ a: number[];
1474
+ c: number[];
1475
+ b: number[];
1476
+ }, {
1477
+ a: Struct<number[], Struct<number, null>>;
1478
+ b: Struct<number[], Struct<number, null>>;
1479
+ c: Struct<number[], Struct<number, null>>;
1480
+ }>;
1481
+ leafIndices: Struct<number[], Struct<number, null>>;
1482
+ leaves: Struct<BN[], Struct<BN, null>>;
1483
+ rootIndices: Struct<number[], Struct<number, null>>;
1484
+ roots: Struct<BN[], Struct<BN, null>>;
1485
+ merkleTrees: Struct<PublicKey[], Struct<PublicKey, null>>;
1486
+ }>;
1487
+ export declare const ValidityProofResultV2: Struct<{
1488
+ accounts: {
1489
+ root: BN;
1490
+ merkleContext: {
1491
+ cpiContext: PublicKey | null;
1492
+ tree: PublicKey;
1493
+ queue: PublicKey;
1494
+ treeType: number;
1495
+ nextTreeContext?: {
1496
+ cpiContext: PublicKey | null;
1497
+ tree: PublicKey;
1498
+ queue: PublicKey;
1499
+ treeType: number;
1500
+ } | null | undefined;
1501
+ };
1502
+ rootIndex: {
1503
+ rootIndex: number;
1504
+ proveByIndex: boolean;
1505
+ };
1506
+ leafIndex: number;
1507
+ hash: BN;
1508
+ }[];
1509
+ compressedProof: {
1510
+ a: number[];
1511
+ c: number[];
1512
+ b: number[];
1513
+ } | null;
1514
+ addresses: {
1515
+ root: BN;
1516
+ address: BN;
1517
+ merkleContext: {
1518
+ cpiContext: PublicKey | null;
1519
+ tree: PublicKey;
1520
+ queue: PublicKey;
1521
+ treeType: number;
1522
+ nextTreeContext?: {
1523
+ cpiContext: PublicKey | null;
1524
+ tree: PublicKey;
1525
+ queue: PublicKey;
1526
+ treeType: number;
1527
+ } | null | undefined;
1528
+ };
1529
+ rootIndex: number;
1530
+ }[];
1531
+ }, {
1532
+ compressedProof: Struct<{
1533
+ a: number[];
1534
+ c: number[];
1535
+ b: number[];
1536
+ } | null, {
1537
+ a: Struct<number[], Struct<number, null>>;
1538
+ b: Struct<number[], Struct<number, null>>;
1539
+ c: Struct<number[], Struct<number, null>>;
1540
+ }>;
1541
+ accounts: Struct<{
1542
+ root: BN;
1543
+ merkleContext: {
1544
+ cpiContext: PublicKey | null;
1545
+ tree: PublicKey;
1546
+ queue: PublicKey;
1547
+ treeType: number;
1548
+ nextTreeContext?: {
1549
+ cpiContext: PublicKey | null;
1550
+ tree: PublicKey;
1551
+ queue: PublicKey;
1552
+ treeType: number;
1553
+ } | null | undefined;
1554
+ };
1555
+ rootIndex: {
1556
+ rootIndex: number;
1557
+ proveByIndex: boolean;
1558
+ };
1559
+ leafIndex: number;
1560
+ hash: BN;
1561
+ }[], Struct<{
1562
+ root: BN;
1563
+ merkleContext: {
1564
+ cpiContext: PublicKey | null;
1565
+ tree: PublicKey;
1566
+ queue: PublicKey;
1567
+ treeType: number;
1568
+ nextTreeContext?: {
1569
+ cpiContext: PublicKey | null;
1570
+ tree: PublicKey;
1571
+ queue: PublicKey;
1572
+ treeType: number;
1573
+ } | null | undefined;
1574
+ };
1575
+ rootIndex: {
1576
+ rootIndex: number;
1577
+ proveByIndex: boolean;
1578
+ };
1579
+ leafIndex: number;
1580
+ hash: BN;
1581
+ }, {
1582
+ hash: Struct<BN, null>;
1583
+ root: Struct<BN, null>;
1584
+ rootIndex: Struct<{
1585
+ rootIndex: number;
1586
+ proveByIndex: boolean;
1587
+ }, {
1588
+ rootIndex: Struct<number, null>;
1589
+ proveByIndex: Struct<boolean, null>;
1590
+ }>;
1591
+ merkleContext: Struct<{
1592
+ cpiContext: PublicKey | null;
1593
+ tree: PublicKey;
1594
+ queue: PublicKey;
1595
+ treeType: number;
1596
+ nextTreeContext?: {
1597
+ cpiContext: PublicKey | null;
1598
+ tree: PublicKey;
1599
+ queue: PublicKey;
1600
+ treeType: number;
1601
+ } | null | undefined;
1602
+ }, {
1603
+ treeType: Struct<number, null>;
1604
+ tree: Struct<PublicKey, null>;
1605
+ queue: Struct<PublicKey, null>;
1606
+ cpiContext: Struct<PublicKey | null, null>;
1607
+ nextTreeContext: Struct<{
1608
+ cpiContext: PublicKey | null;
1609
+ tree: PublicKey;
1610
+ queue: PublicKey;
1611
+ treeType: number;
1612
+ } | null | undefined, {
1613
+ treeType: Struct<number, null>;
1614
+ tree: Struct<PublicKey, null>;
1615
+ queue: Struct<PublicKey, null>;
1616
+ cpiContext: Struct<PublicKey | null, null>;
1617
+ }>;
1618
+ }>;
1619
+ leafIndex: Struct<number, null>;
1620
+ }>>;
1621
+ addresses: Struct<{
1622
+ root: BN;
1623
+ address: BN;
1624
+ merkleContext: {
1625
+ cpiContext: PublicKey | null;
1626
+ tree: PublicKey;
1627
+ queue: PublicKey;
1628
+ treeType: number;
1629
+ nextTreeContext?: {
1630
+ cpiContext: PublicKey | null;
1631
+ tree: PublicKey;
1632
+ queue: PublicKey;
1633
+ treeType: number;
1634
+ } | null | undefined;
1635
+ };
1636
+ rootIndex: number;
1637
+ }[], Struct<{
1638
+ root: BN;
1639
+ address: BN;
1640
+ merkleContext: {
1641
+ cpiContext: PublicKey | null;
1642
+ tree: PublicKey;
1643
+ queue: PublicKey;
1644
+ treeType: number;
1645
+ nextTreeContext?: {
1646
+ cpiContext: PublicKey | null;
1647
+ tree: PublicKey;
1648
+ queue: PublicKey;
1649
+ treeType: number;
1650
+ } | null | undefined;
1651
+ };
1652
+ rootIndex: number;
1653
+ }, {
1654
+ address: Struct<BN, null>;
1655
+ root: Struct<BN, null>;
1656
+ rootIndex: Struct<number, null>;
1657
+ merkleContext: Struct<{
1658
+ cpiContext: PublicKey | null;
1659
+ tree: PublicKey;
1660
+ queue: PublicKey;
1661
+ treeType: number;
1662
+ nextTreeContext?: {
1663
+ cpiContext: PublicKey | null;
1664
+ tree: PublicKey;
1665
+ queue: PublicKey;
1666
+ treeType: number;
1667
+ } | null | undefined;
1668
+ }, {
1669
+ treeType: Struct<number, null>;
1670
+ tree: Struct<PublicKey, null>;
1671
+ queue: Struct<PublicKey, null>;
1672
+ cpiContext: Struct<PublicKey | null, null>;
1673
+ nextTreeContext: Struct<{
1674
+ cpiContext: PublicKey | null;
1675
+ tree: PublicKey;
1676
+ queue: PublicKey;
1677
+ treeType: number;
1678
+ } | null | undefined, {
1679
+ treeType: Struct<number, null>;
1680
+ tree: Struct<PublicKey, null>;
1681
+ queue: Struct<PublicKey, null>;
1682
+ cpiContext: Struct<PublicKey | null, null>;
1683
+ }>;
1684
+ }>;
1685
+ }>>;
1686
+ }>;
1687
+ /**
1688
+ * @internal
1689
+ */
1690
+ export declare const MultipleMerkleProofsResult: Struct<{
1691
+ root: BN;
1692
+ proof: BN[];
1693
+ leafIndex: number;
1694
+ hash: BN;
1695
+ merkleTree: PublicKey;
1696
+ rootSeq: number;
1697
+ }[], Struct<{
1698
+ root: BN;
1699
+ proof: BN[];
1700
+ leafIndex: number;
1701
+ hash: BN;
1702
+ merkleTree: PublicKey;
1703
+ rootSeq: number;
1704
+ }, {
1705
+ hash: Struct<BN, null>;
1706
+ leafIndex: Struct<number, null>;
1707
+ merkleTree: Struct<PublicKey, null>;
1708
+ proof: Struct<BN[], Struct<BN, null>>;
1709
+ rootSeq: Struct<number, null>;
1710
+ root: Struct<BN, null>;
1711
+ }>>;
1712
+ /**
1713
+ * @internal
1714
+ */
1715
+ export declare const MultipleMerkleProofsResultV2: Struct<{
1716
+ root: BN;
1717
+ proof: BN[];
1718
+ leafIndex: number;
1719
+ proveByIndex: boolean;
1720
+ hash: BN;
1721
+ rootSeq: number;
1722
+ treeContext: {
1723
+ cpiContext: PublicKey | null;
1724
+ tree: PublicKey;
1725
+ queue: PublicKey;
1726
+ treeType: number;
1727
+ nextTreeContext?: {
1728
+ cpiContext: PublicKey | null;
1729
+ tree: PublicKey;
1730
+ queue: PublicKey;
1731
+ treeType: number;
1732
+ } | null | undefined;
1733
+ };
1734
+ }[], Struct<{
1735
+ root: BN;
1736
+ proof: BN[];
1737
+ leafIndex: number;
1738
+ proveByIndex: boolean;
1739
+ hash: BN;
1740
+ rootSeq: number;
1741
+ treeContext: {
1742
+ cpiContext: PublicKey | null;
1743
+ tree: PublicKey;
1744
+ queue: PublicKey;
1745
+ treeType: number;
1746
+ nextTreeContext?: {
1747
+ cpiContext: PublicKey | null;
1748
+ tree: PublicKey;
1749
+ queue: PublicKey;
1750
+ treeType: number;
1751
+ } | null | undefined;
1752
+ };
1753
+ }, {
1754
+ hash: Struct<BN, null>;
1755
+ leafIndex: Struct<number, null>;
1756
+ proof: Struct<BN[], Struct<BN, null>>;
1757
+ root: Struct<BN, null>;
1758
+ rootSeq: Struct<number, null>;
1759
+ proveByIndex: Struct<boolean, null>;
1760
+ treeContext: Struct<{
1761
+ cpiContext: PublicKey | null;
1762
+ tree: PublicKey;
1763
+ queue: PublicKey;
1764
+ treeType: number;
1765
+ nextTreeContext?: {
1766
+ cpiContext: PublicKey | null;
1767
+ tree: PublicKey;
1768
+ queue: PublicKey;
1769
+ treeType: number;
1770
+ } | null | undefined;
1771
+ }, {
1772
+ treeType: Struct<number, null>;
1773
+ tree: Struct<PublicKey, null>;
1774
+ queue: Struct<PublicKey, null>;
1775
+ cpiContext: Struct<PublicKey | null, null>;
1776
+ nextTreeContext: Struct<{
1777
+ cpiContext: PublicKey | null;
1778
+ tree: PublicKey;
1779
+ queue: PublicKey;
1780
+ treeType: number;
1781
+ } | null | undefined, {
1782
+ treeType: Struct<number, null>;
1783
+ tree: Struct<PublicKey, null>;
1784
+ queue: Struct<PublicKey, null>;
1785
+ cpiContext: Struct<PublicKey | null, null>;
1786
+ }>;
1787
+ }>;
1788
+ }>>;
1789
+ /**
1790
+ * @internal
1791
+ */
1792
+ export declare const BalanceResult: Struct<{
1793
+ amount: BN;
1794
+ }, {
1795
+ amount: Struct<BN, null>;
1796
+ }>;
1797
+ export declare const NativeBalanceResult: Struct<BN, null>;
1798
+ export declare const TokenBalanceResult: Struct<{
1799
+ mint: PublicKey;
1800
+ balance: BN;
1801
+ }, {
1802
+ balance: Struct<BN, null>;
1803
+ mint: Struct<PublicKey, null>;
1804
+ }>;
1805
+ export declare const TokenBalanceListResult: Struct<{
1806
+ cursor: string | null;
1807
+ tokenBalances: {
1808
+ mint: PublicKey;
1809
+ balance: BN;
1810
+ }[];
1811
+ }, {
1812
+ tokenBalances: Struct<{
1813
+ mint: PublicKey;
1814
+ balance: BN;
1815
+ }[], Struct<{
1816
+ mint: PublicKey;
1817
+ balance: BN;
1818
+ }, {
1819
+ balance: Struct<BN, null>;
1820
+ mint: Struct<PublicKey, null>;
1821
+ }>>;
1822
+ cursor: Struct<string | null, null>;
1823
+ }>;
1824
+ export declare const TokenBalanceListResultV2: Struct<{
1825
+ items: {
1826
+ mint: PublicKey;
1827
+ balance: BN;
1828
+ }[];
1829
+ cursor: string | null;
1830
+ }, {
1831
+ items: Struct<{
1832
+ mint: PublicKey;
1833
+ balance: BN;
1834
+ }[], Struct<{
1835
+ mint: PublicKey;
1836
+ balance: BN;
1837
+ }, {
1838
+ balance: Struct<BN, null>;
1839
+ mint: Struct<PublicKey, null>;
1840
+ }>>;
1841
+ cursor: Struct<string | null, null>;
1842
+ }>;
1843
+ export declare const CompressedMintTokenHoldersResult: Struct<{
1844
+ items: {
1845
+ owner: PublicKey;
1846
+ balance: BN;
1847
+ }[];
1848
+ cursor: string | null;
1849
+ }, {
1850
+ cursor: Struct<string | null, null>;
1851
+ items: Struct<{
1852
+ owner: PublicKey;
1853
+ balance: BN;
1854
+ }[], Struct<{
1855
+ owner: PublicKey;
1856
+ balance: BN;
1857
+ }, {
1858
+ balance: Struct<BN, null>;
1859
+ owner: Struct<PublicKey, null>;
1860
+ }>>;
1861
+ }>;
1862
+ export declare const AccountProofResult: Struct<{
1863
+ root: number[];
1864
+ proof: number[][];
1865
+ hash: number[];
1866
+ }, {
1867
+ hash: Struct<number[], Struct<number, null>>;
1868
+ root: Struct<number[], Struct<number, null>>;
1869
+ proof: Struct<number[][], Struct<number[], Struct<number, null>>>;
1870
+ }>;
1871
+ export declare const toUnixTimestamp: (blockTime: string) => number;
1872
+ export declare const SignatureListResult: Struct<{
1873
+ items: {
1874
+ blockTime: number;
1875
+ signature: string;
1876
+ slot: number;
1877
+ }[];
1878
+ }, {
1879
+ items: Struct<{
1880
+ blockTime: number;
1881
+ signature: string;
1882
+ slot: number;
1883
+ }[], Struct<{
1884
+ blockTime: number;
1885
+ signature: string;
1886
+ slot: number;
1887
+ }, {
1888
+ blockTime: Struct<number, null>;
1889
+ signature: Struct<string, null>;
1890
+ slot: Struct<number, null>;
1891
+ }>>;
1892
+ }>;
1893
+ export declare const SignatureListWithCursorResult: Struct<{
1894
+ items: {
1895
+ blockTime: number;
1896
+ signature: string;
1897
+ slot: number;
1898
+ }[];
1899
+ cursor: string | null;
1900
+ }, {
1901
+ items: Struct<{
1902
+ blockTime: number;
1903
+ signature: string;
1904
+ slot: number;
1905
+ }[], Struct<{
1906
+ blockTime: number;
1907
+ signature: string;
1908
+ slot: number;
1909
+ }, {
1910
+ blockTime: Struct<number, null>;
1911
+ signature: Struct<string, null>;
1912
+ slot: Struct<number, null>;
1913
+ }>>;
1914
+ cursor: Struct<string | null, null>;
1915
+ }>;
1916
+ /**
1917
+ * @internal
1918
+ */
1919
+ export declare const CompressedTransactionResult: Struct<{
1920
+ compressionInfo: {
1921
+ closedAccounts: {
1922
+ account: {
1923
+ data: {
1924
+ data: string;
1925
+ discriminator: BN;
1926
+ dataHash: BN;
1927
+ } | null;
1928
+ lamports: BN;
1929
+ owner: PublicKey;
1930
+ address: number[] | null;
1931
+ leafIndex: number;
1932
+ seq: BN | null;
1933
+ tree: PublicKey;
1934
+ hash: BN;
1935
+ slotCreated: BN;
1936
+ };
1937
+ optionalTokenData: {
1938
+ owner: PublicKey;
1939
+ mint: PublicKey;
1940
+ amount: BN;
1941
+ delegate: PublicKey | null;
1942
+ state: string;
1943
+ } | null;
1944
+ }[];
1945
+ openedAccounts: {
1946
+ account: {
1947
+ data: {
1948
+ data: string;
1949
+ discriminator: BN;
1950
+ dataHash: BN;
1951
+ } | null;
1952
+ lamports: BN;
1953
+ owner: PublicKey;
1954
+ address: number[] | null;
1955
+ leafIndex: number;
1956
+ seq: BN | null;
1957
+ tree: PublicKey;
1958
+ hash: BN;
1959
+ slotCreated: BN;
1960
+ };
1961
+ optionalTokenData: {
1962
+ owner: PublicKey;
1963
+ mint: PublicKey;
1964
+ amount: BN;
1965
+ delegate: PublicKey | null;
1966
+ state: string;
1967
+ } | null;
1968
+ }[];
1969
+ };
1970
+ transaction?: any;
1971
+ }, {
1972
+ compressionInfo: Struct<{
1973
+ closedAccounts: {
1974
+ account: {
1975
+ data: {
1976
+ data: string;
1977
+ discriminator: BN;
1978
+ dataHash: BN;
1979
+ } | null;
1980
+ lamports: BN;
1981
+ owner: PublicKey;
1982
+ address: number[] | null;
1983
+ leafIndex: number;
1984
+ seq: BN | null;
1985
+ tree: PublicKey;
1986
+ hash: BN;
1987
+ slotCreated: BN;
1988
+ };
1989
+ optionalTokenData: {
1990
+ owner: PublicKey;
1991
+ mint: PublicKey;
1992
+ amount: BN;
1993
+ delegate: PublicKey | null;
1994
+ state: string;
1995
+ } | null;
1996
+ }[];
1997
+ openedAccounts: {
1998
+ account: {
1999
+ data: {
2000
+ data: string;
2001
+ discriminator: BN;
2002
+ dataHash: BN;
2003
+ } | null;
2004
+ lamports: BN;
2005
+ owner: PublicKey;
2006
+ address: number[] | null;
2007
+ leafIndex: number;
2008
+ seq: BN | null;
2009
+ tree: PublicKey;
2010
+ hash: BN;
2011
+ slotCreated: BN;
2012
+ };
2013
+ optionalTokenData: {
2014
+ owner: PublicKey;
2015
+ mint: PublicKey;
2016
+ amount: BN;
2017
+ delegate: PublicKey | null;
2018
+ state: string;
2019
+ } | null;
2020
+ }[];
2021
+ }, {
2022
+ closedAccounts: Struct<{
2023
+ account: {
2024
+ data: {
2025
+ data: string;
2026
+ discriminator: BN;
2027
+ dataHash: BN;
2028
+ } | null;
2029
+ lamports: BN;
2030
+ owner: PublicKey;
2031
+ address: number[] | null;
2032
+ leafIndex: number;
2033
+ seq: BN | null;
2034
+ tree: PublicKey;
2035
+ hash: BN;
2036
+ slotCreated: BN;
2037
+ };
2038
+ optionalTokenData: {
2039
+ owner: PublicKey;
2040
+ mint: PublicKey;
2041
+ amount: BN;
2042
+ delegate: PublicKey | null;
2043
+ state: string;
2044
+ } | null;
2045
+ }[], Struct<{
2046
+ account: {
2047
+ data: {
2048
+ data: string;
2049
+ discriminator: BN;
2050
+ dataHash: BN;
2051
+ } | null;
2052
+ lamports: BN;
2053
+ owner: PublicKey;
2054
+ address: number[] | null;
2055
+ leafIndex: number;
2056
+ seq: BN | null;
2057
+ tree: PublicKey;
2058
+ hash: BN;
2059
+ slotCreated: BN;
2060
+ };
2061
+ optionalTokenData: {
2062
+ owner: PublicKey;
2063
+ mint: PublicKey;
2064
+ amount: BN;
2065
+ delegate: PublicKey | null;
2066
+ state: string;
2067
+ } | null;
2068
+ }, {
2069
+ account: Struct<{
2070
+ data: {
2071
+ data: string;
2072
+ discriminator: BN;
2073
+ dataHash: BN;
2074
+ } | null;
2075
+ lamports: BN;
2076
+ owner: PublicKey;
2077
+ address: number[] | null;
2078
+ leafIndex: number;
2079
+ seq: BN | null;
2080
+ tree: PublicKey;
2081
+ hash: BN;
2082
+ slotCreated: BN;
2083
+ }, {
2084
+ address: Struct<number[] | null, null>;
2085
+ hash: Struct<BN, null>;
2086
+ data: Struct<{
2087
+ data: string;
2088
+ discriminator: BN;
2089
+ dataHash: BN;
2090
+ } | null, {
2091
+ data: Struct<string, null>;
2092
+ dataHash: Struct<BN, null>;
2093
+ discriminator: Struct<BN, null>;
2094
+ }>;
2095
+ lamports: Struct<BN, null>;
2096
+ owner: Struct<PublicKey, null>;
2097
+ leafIndex: Struct<number, null>;
2098
+ tree: Struct<PublicKey, null>;
2099
+ seq: Struct<BN | null, null>;
2100
+ slotCreated: Struct<BN, null>;
2101
+ }>;
2102
+ optionalTokenData: Struct<{
2103
+ owner: PublicKey;
2104
+ mint: PublicKey;
2105
+ amount: BN;
2106
+ delegate: PublicKey | null;
2107
+ state: string;
2108
+ } | null, {
2109
+ mint: Struct<PublicKey, null>;
2110
+ owner: Struct<PublicKey, null>;
2111
+ amount: Struct<BN, null>;
2112
+ delegate: Struct<PublicKey | null, null>;
2113
+ state: Struct<string, null>;
2114
+ }>;
2115
+ }>>;
2116
+ openedAccounts: Struct<{
2117
+ account: {
2118
+ data: {
2119
+ data: string;
2120
+ discriminator: BN;
2121
+ dataHash: BN;
2122
+ } | null;
2123
+ lamports: BN;
2124
+ owner: PublicKey;
2125
+ address: number[] | null;
2126
+ leafIndex: number;
2127
+ seq: BN | null;
2128
+ tree: PublicKey;
2129
+ hash: BN;
2130
+ slotCreated: BN;
2131
+ };
2132
+ optionalTokenData: {
2133
+ owner: PublicKey;
2134
+ mint: PublicKey;
2135
+ amount: BN;
2136
+ delegate: PublicKey | null;
2137
+ state: string;
2138
+ } | null;
2139
+ }[], Struct<{
2140
+ account: {
2141
+ data: {
2142
+ data: string;
2143
+ discriminator: BN;
2144
+ dataHash: BN;
2145
+ } | null;
2146
+ lamports: BN;
2147
+ owner: PublicKey;
2148
+ address: number[] | null;
2149
+ leafIndex: number;
2150
+ seq: BN | null;
2151
+ tree: PublicKey;
2152
+ hash: BN;
2153
+ slotCreated: BN;
2154
+ };
2155
+ optionalTokenData: {
2156
+ owner: PublicKey;
2157
+ mint: PublicKey;
2158
+ amount: BN;
2159
+ delegate: PublicKey | null;
2160
+ state: string;
2161
+ } | null;
2162
+ }, {
2163
+ account: Struct<{
2164
+ data: {
2165
+ data: string;
2166
+ discriminator: BN;
2167
+ dataHash: BN;
2168
+ } | null;
2169
+ lamports: BN;
2170
+ owner: PublicKey;
2171
+ address: number[] | null;
2172
+ leafIndex: number;
2173
+ seq: BN | null;
2174
+ tree: PublicKey;
2175
+ hash: BN;
2176
+ slotCreated: BN;
2177
+ }, {
2178
+ address: Struct<number[] | null, null>;
2179
+ hash: Struct<BN, null>;
2180
+ data: Struct<{
2181
+ data: string;
2182
+ discriminator: BN;
2183
+ dataHash: BN;
2184
+ } | null, {
2185
+ data: Struct<string, null>;
2186
+ dataHash: Struct<BN, null>;
2187
+ discriminator: Struct<BN, null>;
2188
+ }>;
2189
+ lamports: Struct<BN, null>;
2190
+ owner: Struct<PublicKey, null>;
2191
+ leafIndex: Struct<number, null>;
2192
+ tree: Struct<PublicKey, null>;
2193
+ seq: Struct<BN | null, null>;
2194
+ slotCreated: Struct<BN, null>;
2195
+ }>;
2196
+ optionalTokenData: Struct<{
2197
+ owner: PublicKey;
2198
+ mint: PublicKey;
2199
+ amount: BN;
2200
+ delegate: PublicKey | null;
2201
+ state: string;
2202
+ } | null, {
2203
+ mint: Struct<PublicKey, null>;
2204
+ owner: Struct<PublicKey, null>;
2205
+ amount: Struct<BN, null>;
2206
+ delegate: Struct<PublicKey | null, null>;
2207
+ state: Struct<string, null>;
2208
+ }>;
2209
+ }>>;
2210
+ }>;
2211
+ transaction: Struct<any, null>;
2212
+ }>;
2213
+ /**
2214
+ * @internal
2215
+ */
2216
+ export declare const CompressedTransactionResultV2: Struct<{
2217
+ compressionInfo: {
2218
+ closedAccounts: {
2219
+ account: {
2220
+ account: {
2221
+ data: {
2222
+ data: string;
2223
+ discriminator: BN;
2224
+ dataHash: BN;
2225
+ } | null;
2226
+ lamports: BN;
2227
+ owner: PublicKey;
2228
+ address: number[] | null;
2229
+ merkleContext: {
2230
+ cpiContext: PublicKey | null;
2231
+ tree: PublicKey;
2232
+ queue: PublicKey;
2233
+ treeType: number;
2234
+ nextTreeContext?: {
2235
+ cpiContext: PublicKey | null;
2236
+ tree: PublicKey;
2237
+ queue: PublicKey;
2238
+ treeType: number;
2239
+ } | null | undefined;
2240
+ };
2241
+ leafIndex: number;
2242
+ proveByIndex: boolean;
2243
+ seq: BN | null;
2244
+ hash: BN;
2245
+ slotCreated: BN;
2246
+ };
2247
+ txHash: BN;
2248
+ nullifier: BN;
2249
+ };
2250
+ optionalTokenData: {
2251
+ owner: PublicKey;
2252
+ mint: PublicKey;
2253
+ amount: BN;
2254
+ delegate: PublicKey | null;
2255
+ state: string;
2256
+ } | null;
2257
+ }[];
2258
+ openedAccounts: {
2259
+ account: {
2260
+ data: {
2261
+ data: string;
2262
+ discriminator: BN;
2263
+ dataHash: BN;
2264
+ } | null;
2265
+ lamports: BN;
2266
+ owner: PublicKey;
2267
+ address: number[] | null;
2268
+ merkleContext: {
2269
+ cpiContext: PublicKey | null;
2270
+ tree: PublicKey;
2271
+ queue: PublicKey;
2272
+ treeType: number;
2273
+ nextTreeContext?: {
2274
+ cpiContext: PublicKey | null;
2275
+ tree: PublicKey;
2276
+ queue: PublicKey;
2277
+ treeType: number;
2278
+ } | null | undefined;
2279
+ };
2280
+ leafIndex: number;
2281
+ proveByIndex: boolean;
2282
+ seq: BN | null;
2283
+ hash: BN;
2284
+ slotCreated: BN;
2285
+ };
2286
+ optionalTokenData: {
2287
+ owner: PublicKey;
2288
+ mint: PublicKey;
2289
+ amount: BN;
2290
+ delegate: PublicKey | null;
2291
+ state: string;
2292
+ } | null;
2293
+ }[];
2294
+ };
2295
+ transaction?: any;
2296
+ }, {
2297
+ compressionInfo: Struct<{
2298
+ closedAccounts: {
2299
+ account: {
2300
+ account: {
2301
+ data: {
2302
+ data: string;
2303
+ discriminator: BN;
2304
+ dataHash: BN;
2305
+ } | null;
2306
+ lamports: BN;
2307
+ owner: PublicKey;
2308
+ address: number[] | null;
2309
+ merkleContext: {
2310
+ cpiContext: PublicKey | null;
2311
+ tree: PublicKey;
2312
+ queue: PublicKey;
2313
+ treeType: number;
2314
+ nextTreeContext?: {
2315
+ cpiContext: PublicKey | null;
2316
+ tree: PublicKey;
2317
+ queue: PublicKey;
2318
+ treeType: number;
2319
+ } | null | undefined;
2320
+ };
2321
+ leafIndex: number;
2322
+ proveByIndex: boolean;
2323
+ seq: BN | null;
2324
+ hash: BN;
2325
+ slotCreated: BN;
2326
+ };
2327
+ txHash: BN;
2328
+ nullifier: BN;
2329
+ };
2330
+ optionalTokenData: {
2331
+ owner: PublicKey;
2332
+ mint: PublicKey;
2333
+ amount: BN;
2334
+ delegate: PublicKey | null;
2335
+ state: string;
2336
+ } | null;
2337
+ }[];
2338
+ openedAccounts: {
2339
+ account: {
2340
+ data: {
2341
+ data: string;
2342
+ discriminator: BN;
2343
+ dataHash: BN;
2344
+ } | null;
2345
+ lamports: BN;
2346
+ owner: PublicKey;
2347
+ address: number[] | null;
2348
+ merkleContext: {
2349
+ cpiContext: PublicKey | null;
2350
+ tree: PublicKey;
2351
+ queue: PublicKey;
2352
+ treeType: number;
2353
+ nextTreeContext?: {
2354
+ cpiContext: PublicKey | null;
2355
+ tree: PublicKey;
2356
+ queue: PublicKey;
2357
+ treeType: number;
2358
+ } | null | undefined;
2359
+ };
2360
+ leafIndex: number;
2361
+ proveByIndex: boolean;
2362
+ seq: BN | null;
2363
+ hash: BN;
2364
+ slotCreated: BN;
2365
+ };
2366
+ optionalTokenData: {
2367
+ owner: PublicKey;
2368
+ mint: PublicKey;
2369
+ amount: BN;
2370
+ delegate: PublicKey | null;
2371
+ state: string;
2372
+ } | null;
2373
+ }[];
2374
+ }, {
2375
+ closedAccounts: Struct<{
2376
+ account: {
2377
+ account: {
2378
+ data: {
2379
+ data: string;
2380
+ discriminator: BN;
2381
+ dataHash: BN;
2382
+ } | null;
2383
+ lamports: BN;
2384
+ owner: PublicKey;
2385
+ address: number[] | null;
2386
+ merkleContext: {
2387
+ cpiContext: PublicKey | null;
2388
+ tree: PublicKey;
2389
+ queue: PublicKey;
2390
+ treeType: number;
2391
+ nextTreeContext?: {
2392
+ cpiContext: PublicKey | null;
2393
+ tree: PublicKey;
2394
+ queue: PublicKey;
2395
+ treeType: number;
2396
+ } | null | undefined;
2397
+ };
2398
+ leafIndex: number;
2399
+ proveByIndex: boolean;
2400
+ seq: BN | null;
2401
+ hash: BN;
2402
+ slotCreated: BN;
2403
+ };
2404
+ txHash: BN;
2405
+ nullifier: BN;
2406
+ };
2407
+ optionalTokenData: {
2408
+ owner: PublicKey;
2409
+ mint: PublicKey;
2410
+ amount: BN;
2411
+ delegate: PublicKey | null;
2412
+ state: string;
2413
+ } | null;
2414
+ }[], Struct<{
2415
+ account: {
2416
+ account: {
2417
+ data: {
2418
+ data: string;
2419
+ discriminator: BN;
2420
+ dataHash: BN;
2421
+ } | null;
2422
+ lamports: BN;
2423
+ owner: PublicKey;
2424
+ address: number[] | null;
2425
+ merkleContext: {
2426
+ cpiContext: PublicKey | null;
2427
+ tree: PublicKey;
2428
+ queue: PublicKey;
2429
+ treeType: number;
2430
+ nextTreeContext?: {
2431
+ cpiContext: PublicKey | null;
2432
+ tree: PublicKey;
2433
+ queue: PublicKey;
2434
+ treeType: number;
2435
+ } | null | undefined;
2436
+ };
2437
+ leafIndex: number;
2438
+ proveByIndex: boolean;
2439
+ seq: BN | null;
2440
+ hash: BN;
2441
+ slotCreated: BN;
2442
+ };
2443
+ txHash: BN;
2444
+ nullifier: BN;
2445
+ };
2446
+ optionalTokenData: {
2447
+ owner: PublicKey;
2448
+ mint: PublicKey;
2449
+ amount: BN;
2450
+ delegate: PublicKey | null;
2451
+ state: string;
2452
+ } | null;
2453
+ }, {
2454
+ account: Struct<{
2455
+ account: {
2456
+ data: {
2457
+ data: string;
2458
+ discriminator: BN;
2459
+ dataHash: BN;
2460
+ } | null;
2461
+ lamports: BN;
2462
+ owner: PublicKey;
2463
+ address: number[] | null;
2464
+ merkleContext: {
2465
+ cpiContext: PublicKey | null;
2466
+ tree: PublicKey;
2467
+ queue: PublicKey;
2468
+ treeType: number;
2469
+ nextTreeContext?: {
2470
+ cpiContext: PublicKey | null;
2471
+ tree: PublicKey;
2472
+ queue: PublicKey;
2473
+ treeType: number;
2474
+ } | null | undefined;
2475
+ };
2476
+ leafIndex: number;
2477
+ proveByIndex: boolean;
2478
+ seq: BN | null;
2479
+ hash: BN;
2480
+ slotCreated: BN;
2481
+ };
2482
+ txHash: BN;
2483
+ nullifier: BN;
2484
+ }, {
2485
+ account: Struct<{
2486
+ data: {
2487
+ data: string;
2488
+ discriminator: BN;
2489
+ dataHash: BN;
2490
+ } | null;
2491
+ lamports: BN;
2492
+ owner: PublicKey;
2493
+ address: number[] | null;
2494
+ merkleContext: {
2495
+ cpiContext: PublicKey | null;
2496
+ tree: PublicKey;
2497
+ queue: PublicKey;
2498
+ treeType: number;
2499
+ nextTreeContext?: {
2500
+ cpiContext: PublicKey | null;
2501
+ tree: PublicKey;
2502
+ queue: PublicKey;
2503
+ treeType: number;
2504
+ } | null | undefined;
2505
+ };
2506
+ leafIndex: number;
2507
+ proveByIndex: boolean;
2508
+ seq: BN | null;
2509
+ hash: BN;
2510
+ slotCreated: BN;
2511
+ }, {
2512
+ address: Struct<number[] | null, null>;
2513
+ hash: Struct<BN, null>;
2514
+ data: Struct<{
2515
+ data: string;
2516
+ discriminator: BN;
2517
+ dataHash: BN;
2518
+ } | null, {
2519
+ data: Struct<string, null>;
2520
+ dataHash: Struct<BN, null>;
2521
+ discriminator: Struct<BN, null>;
2522
+ }>;
2523
+ lamports: Struct<BN, null>;
2524
+ owner: Struct<PublicKey, null>;
2525
+ leafIndex: Struct<number, null>;
2526
+ seq: Struct<BN | null, null>;
2527
+ slotCreated: Struct<BN, null>;
2528
+ merkleContext: Struct<{
2529
+ cpiContext: PublicKey | null;
2530
+ tree: PublicKey;
2531
+ queue: PublicKey;
2532
+ treeType: number;
2533
+ nextTreeContext?: {
2534
+ cpiContext: PublicKey | null;
2535
+ tree: PublicKey;
2536
+ queue: PublicKey;
2537
+ treeType: number;
2538
+ } | null | undefined;
2539
+ }, {
2540
+ treeType: Struct<number, null>;
2541
+ tree: Struct<PublicKey, null>;
2542
+ queue: Struct<PublicKey, null>;
2543
+ cpiContext: Struct<PublicKey | null, null>;
2544
+ nextTreeContext: Struct<{
2545
+ cpiContext: PublicKey | null;
2546
+ tree: PublicKey;
2547
+ queue: PublicKey;
2548
+ treeType: number;
2549
+ } | null | undefined, {
2550
+ treeType: Struct<number, null>;
2551
+ tree: Struct<PublicKey, null>;
2552
+ queue: Struct<PublicKey, null>;
2553
+ cpiContext: Struct<PublicKey | null, null>;
2554
+ }>;
2555
+ }>;
2556
+ proveByIndex: Struct<boolean, null>;
2557
+ }>;
2558
+ txHash: Struct<BN, null>;
2559
+ nullifier: Struct<BN, null>;
2560
+ }>;
2561
+ optionalTokenData: Struct<{
2562
+ owner: PublicKey;
2563
+ mint: PublicKey;
2564
+ amount: BN;
2565
+ delegate: PublicKey | null;
2566
+ state: string;
2567
+ } | null, {
2568
+ mint: Struct<PublicKey, null>;
2569
+ owner: Struct<PublicKey, null>;
2570
+ amount: Struct<BN, null>;
2571
+ delegate: Struct<PublicKey | null, null>;
2572
+ state: Struct<string, null>;
2573
+ }>;
2574
+ }>>;
2575
+ openedAccounts: Struct<{
2576
+ account: {
2577
+ data: {
2578
+ data: string;
2579
+ discriminator: BN;
2580
+ dataHash: BN;
2581
+ } | null;
2582
+ lamports: BN;
2583
+ owner: PublicKey;
2584
+ address: number[] | null;
2585
+ merkleContext: {
2586
+ cpiContext: PublicKey | null;
2587
+ tree: PublicKey;
2588
+ queue: PublicKey;
2589
+ treeType: number;
2590
+ nextTreeContext?: {
2591
+ cpiContext: PublicKey | null;
2592
+ tree: PublicKey;
2593
+ queue: PublicKey;
2594
+ treeType: number;
2595
+ } | null | undefined;
2596
+ };
2597
+ leafIndex: number;
2598
+ proveByIndex: boolean;
2599
+ seq: BN | null;
2600
+ hash: BN;
2601
+ slotCreated: BN;
2602
+ };
2603
+ optionalTokenData: {
2604
+ owner: PublicKey;
2605
+ mint: PublicKey;
2606
+ amount: BN;
2607
+ delegate: PublicKey | null;
2608
+ state: string;
2609
+ } | null;
2610
+ }[], Struct<{
2611
+ account: {
2612
+ data: {
2613
+ data: string;
2614
+ discriminator: BN;
2615
+ dataHash: BN;
2616
+ } | null;
2617
+ lamports: BN;
2618
+ owner: PublicKey;
2619
+ address: number[] | null;
2620
+ merkleContext: {
2621
+ cpiContext: PublicKey | null;
2622
+ tree: PublicKey;
2623
+ queue: PublicKey;
2624
+ treeType: number;
2625
+ nextTreeContext?: {
2626
+ cpiContext: PublicKey | null;
2627
+ tree: PublicKey;
2628
+ queue: PublicKey;
2629
+ treeType: number;
2630
+ } | null | undefined;
2631
+ };
2632
+ leafIndex: number;
2633
+ proveByIndex: boolean;
2634
+ seq: BN | null;
2635
+ hash: BN;
2636
+ slotCreated: BN;
2637
+ };
2638
+ optionalTokenData: {
2639
+ owner: PublicKey;
2640
+ mint: PublicKey;
2641
+ amount: BN;
2642
+ delegate: PublicKey | null;
2643
+ state: string;
2644
+ } | null;
2645
+ }, {
2646
+ account: Struct<{
2647
+ data: {
2648
+ data: string;
2649
+ discriminator: BN;
2650
+ dataHash: BN;
2651
+ } | null;
2652
+ lamports: BN;
2653
+ owner: PublicKey;
2654
+ address: number[] | null;
2655
+ merkleContext: {
2656
+ cpiContext: PublicKey | null;
2657
+ tree: PublicKey;
2658
+ queue: PublicKey;
2659
+ treeType: number;
2660
+ nextTreeContext?: {
2661
+ cpiContext: PublicKey | null;
2662
+ tree: PublicKey;
2663
+ queue: PublicKey;
2664
+ treeType: number;
2665
+ } | null | undefined;
2666
+ };
2667
+ leafIndex: number;
2668
+ proveByIndex: boolean;
2669
+ seq: BN | null;
2670
+ hash: BN;
2671
+ slotCreated: BN;
2672
+ }, {
2673
+ address: Struct<number[] | null, null>;
2674
+ hash: Struct<BN, null>;
2675
+ data: Struct<{
2676
+ data: string;
2677
+ discriminator: BN;
2678
+ dataHash: BN;
2679
+ } | null, {
2680
+ data: Struct<string, null>;
2681
+ dataHash: Struct<BN, null>;
2682
+ discriminator: Struct<BN, null>;
2683
+ }>;
2684
+ lamports: Struct<BN, null>;
2685
+ owner: Struct<PublicKey, null>;
2686
+ leafIndex: Struct<number, null>;
2687
+ seq: Struct<BN | null, null>;
2688
+ slotCreated: Struct<BN, null>;
2689
+ merkleContext: Struct<{
2690
+ cpiContext: PublicKey | null;
2691
+ tree: PublicKey;
2692
+ queue: PublicKey;
2693
+ treeType: number;
2694
+ nextTreeContext?: {
2695
+ cpiContext: PublicKey | null;
2696
+ tree: PublicKey;
2697
+ queue: PublicKey;
2698
+ treeType: number;
2699
+ } | null | undefined;
2700
+ }, {
2701
+ treeType: Struct<number, null>;
2702
+ tree: Struct<PublicKey, null>;
2703
+ queue: Struct<PublicKey, null>;
2704
+ cpiContext: Struct<PublicKey | null, null>;
2705
+ nextTreeContext: Struct<{
2706
+ cpiContext: PublicKey | null;
2707
+ tree: PublicKey;
2708
+ queue: PublicKey;
2709
+ treeType: number;
2710
+ } | null | undefined, {
2711
+ treeType: Struct<number, null>;
2712
+ tree: Struct<PublicKey, null>;
2713
+ queue: Struct<PublicKey, null>;
2714
+ cpiContext: Struct<PublicKey | null, null>;
2715
+ }>;
2716
+ }>;
2717
+ proveByIndex: Struct<boolean, null>;
2718
+ }>;
2719
+ optionalTokenData: Struct<{
2720
+ owner: PublicKey;
2721
+ mint: PublicKey;
2722
+ amount: BN;
2723
+ delegate: PublicKey | null;
2724
+ state: string;
2725
+ } | null, {
2726
+ mint: Struct<PublicKey, null>;
2727
+ owner: Struct<PublicKey, null>;
2728
+ amount: Struct<BN, null>;
2729
+ delegate: Struct<PublicKey | null, null>;
2730
+ state: Struct<string, null>;
2731
+ }>;
2732
+ }>>;
2733
+ }>;
2734
+ transaction: Struct<any, null>;
2735
+ }>;
2736
+ export interface CompressionApiInterface {
2737
+ getCompressedAccount(address?: BN254, hash?: BN254): Promise<CompressedAccountWithMerkleContext | null>;
2738
+ getCompressedBalance(address?: BN254, hash?: BN254): Promise<BN | null>;
2739
+ getCompressedBalanceByOwner(owner: PublicKey): Promise<BN>;
2740
+ getCompressedAccountProof(hash: BN254): Promise<MerkleContextWithMerkleProof>;
2741
+ getMultipleCompressedAccounts(hashes: BN254[]): Promise<CompressedAccountWithMerkleContext[]>;
2742
+ getMultipleCompressedAccountProofs(hashes: BN254[]): Promise<MerkleContextWithMerkleProof[]>;
2743
+ getValidityProof(hashes: BN254[], newAddresses: BN254[]): Promise<ValidityProofWithContext>;
2744
+ getValidityProofV0(hashes: HashWithTree[], newAddresses: AddressWithTree[]): Promise<ValidityProofWithContext>;
2745
+ getValidityProofAndRpcContext(hashes: HashWithTree[], newAddresses: AddressWithTree[]): Promise<WithContext<ValidityProofWithContext>>;
2746
+ getCompressedAccountsByOwner(owner: PublicKey, config?: GetCompressedAccountsByOwnerConfig): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
2747
+ getCompressedMintTokenHolders(mint: PublicKey, options?: PaginatedOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
2748
+ getCompressedTokenAccountsByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
2749
+ getCompressedTokenAccountsByDelegate(delegate: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
2750
+ getCompressedTokenAccountBalance(hash: BN254): Promise<{
2751
+ amount: BN;
2752
+ }>;
2753
+ getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<TokenBalance[]>>;
2754
+ getCompressedTokenBalancesByOwnerV2(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithContext<WithCursor<TokenBalance[]>>>;
2755
+ getTransactionWithCompressionInfo(signature: string): Promise<CompressedTransaction | null>;
2756
+ getCompressionSignaturesForAccount(hash: BN254): Promise<SignatureWithMetadata[]>;
2757
+ getCompressionSignaturesForAddress(address: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
2758
+ getCompressionSignaturesForOwner(owner: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
2759
+ getCompressionSignaturesForTokenOwner(owner: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
2760
+ getLatestNonVotingSignatures(limit?: number, cursor?: string): Promise<LatestNonVotingSignatures>;
2761
+ getLatestCompressionSignatures(cursor?: string, limit?: number): Promise<LatestNonVotingSignaturesPaginated>;
2762
+ getIndexerHealth(): Promise<string>;
2763
+ getIndexerSlot(): Promise<number>;
2764
+ }
2765
+ export type RpcResultSuccess<T> = {
2766
+ jsonrpc: '2.0';
2767
+ id: string;
2768
+ result: T;
2769
+ };
2770
+ export type RpcResultError = {
2771
+ jsonrpc: '2.0';
2772
+ id: string;
2773
+ error: {
2774
+ code: unknown;
2775
+ message: string;
2776
+ data?: any;
2777
+ };
2778
+ };
2779
+ export type RpcResult<T> = RpcResultSuccess<T> | RpcResultError;