@lightprotocol/stateless.js 0.22.1-alpha.0 → 0.22.1-alpha.2

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