@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.
- package/README.md +4 -1
- package/dist/cjs/browser/constants.d.ts +41 -7
- package/dist/cjs/browser/index.cjs +1 -1
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/browser/index.d.ts +0 -1
- package/dist/cjs/browser/programs/system/pack.d.ts +10 -79
- package/dist/cjs/browser/rpc-interface.d.ts +371 -277
- package/dist/cjs/browser/rpc.d.ts +79 -12
- package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +0 -2
- package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +12 -6
- package/dist/cjs/browser/utils/address.d.ts +7 -19
- package/dist/cjs/browser/utils/conversion.d.ts +1 -1
- package/dist/cjs/browser/utils/get-state-tree-infos.d.ts +15 -0
- package/dist/cjs/browser/utils/index.d.ts +2 -1
- package/dist/cjs/browser/utils/instruction.d.ts +35 -0
- package/dist/cjs/browser/utils/pack-decompress.d.ts +31 -0
- package/dist/cjs/node/constants.d.ts +41 -7
- package/dist/cjs/node/index.cjs +1 -1
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/node/index.d.ts +0 -1
- package/dist/cjs/node/programs/system/pack.d.ts +10 -79
- package/dist/cjs/node/rpc-interface.d.ts +371 -277
- package/dist/cjs/node/rpc.d.ts +79 -12
- package/dist/cjs/node/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +0 -2
- package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +12 -6
- package/dist/cjs/node/utils/address.d.ts +7 -19
- package/dist/cjs/node/utils/conversion.d.ts +1 -1
- package/dist/cjs/node/utils/get-state-tree-infos.d.ts +15 -0
- package/dist/cjs/node/utils/index.d.ts +2 -1
- package/dist/cjs/node/utils/instruction.d.ts +35 -0
- package/dist/cjs/node/utils/pack-decompress.d.ts +31 -0
- package/dist/es/browser/actions/compress.d.ts +18 -0
- package/dist/es/browser/actions/create-account.d.ts +38 -0
- package/dist/es/browser/actions/decompress.d.ts +15 -0
- package/dist/es/browser/actions/index.d.ts +5 -0
- package/dist/es/browser/actions/transfer.d.ts +16 -0
- package/dist/es/browser/constants.d.ts +176 -0
- package/dist/es/browser/errors.d.ts +74 -0
- package/dist/es/browser/index.d.ts +9 -0
- package/dist/es/browser/index.js +2 -0
- package/dist/es/browser/index.js.map +1 -0
- package/dist/es/browser/programs/index.d.ts +1 -0
- package/dist/es/browser/programs/system/idl.d.ts +997 -0
- package/dist/es/browser/programs/system/index.d.ts +5 -0
- package/dist/es/browser/programs/system/layout.d.ts +77 -0
- package/dist/es/browser/programs/system/pack.d.ts +74 -0
- package/dist/es/browser/programs/system/program.d.ts +175 -0
- package/dist/es/browser/programs/system/select-compressed-accounts.d.ts +10 -0
- package/dist/es/browser/rpc-interface.d.ts +2873 -0
- package/dist/es/browser/rpc.d.ts +361 -0
- package/dist/es/browser/state/BN254.d.ts +13 -0
- package/dist/es/browser/state/bn.d.ts +3 -0
- package/dist/es/browser/state/compressed-account.d.ts +205 -0
- package/dist/es/browser/state/index.d.ts +4 -0
- package/dist/es/browser/state/types.d.ts +449 -0
- package/dist/es/browser/test-helpers/index.d.ts +3 -0
- package/dist/es/browser/test-helpers/merkle-tree/index.d.ts +2 -0
- package/dist/es/browser/test-helpers/merkle-tree/indexed-array.d.ts +85 -0
- package/dist/es/browser/test-helpers/merkle-tree/merkle-tree.d.ts +92 -0
- package/dist/es/browser/test-helpers/test-rpc/get-compressed-accounts.d.ts +7 -0
- package/dist/es/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +38 -0
- package/dist/es/browser/test-helpers/test-rpc/get-parsed-events.d.ts +15 -0
- package/dist/es/browser/test-helpers/test-rpc/index.d.ts +3 -0
- package/dist/es/browser/test-helpers/test-rpc/test-rpc.d.ts +245 -0
- package/dist/es/browser/test-helpers/test-utils.d.ts +31 -0
- package/dist/es/browser/utils/address.d.ts +64 -0
- package/dist/es/browser/utils/airdrop.d.ts +7 -0
- package/dist/es/browser/utils/calculate-compute-unit-price.d.ts +7 -0
- package/dist/es/browser/utils/conversion.d.ts +36 -0
- package/dist/es/browser/utils/dedupe-signer.d.ts +3 -0
- package/dist/es/browser/utils/get-state-tree-infos.d.ts +63 -0
- package/dist/es/browser/utils/index.d.ts +14 -0
- package/dist/es/browser/utils/instruction.d.ts +35 -0
- package/dist/es/browser/utils/pack-decompress.d.ts +31 -0
- package/dist/es/browser/utils/parse-validity-proof.d.ts +20 -0
- package/dist/es/browser/utils/pipe.d.ts +2 -0
- package/dist/es/browser/utils/send-and-confirm.d.ts +52 -0
- package/dist/es/browser/utils/sleep.d.ts +1 -0
- package/dist/es/browser/utils/state-tree-lookup-table.d.ts +68 -0
- package/dist/es/browser/utils/validation.d.ts +8 -0
- package/dist/types/index.d.ts +340 -661
- package/package.json +18 -10
- package/dist/cjs/browser/compressible/action.d.ts +0 -77
- package/dist/cjs/browser/compressible/index.d.ts +0 -13
- package/dist/cjs/browser/compressible/instruction.d.ts +0 -177
- package/dist/cjs/browser/compressible/layout.d.ts +0 -47
- package/dist/cjs/browser/compressible/types.d.ts +0 -112
- package/dist/cjs/browser/compressible/utils.d.ts +0 -16
- package/dist/cjs/browser/utils/packed-accounts.d.ts +0 -161
- package/dist/cjs/node/compressible/action.d.ts +0 -77
- package/dist/cjs/node/compressible/index.d.ts +0 -13
- package/dist/cjs/node/compressible/instruction.d.ts +0 -177
- package/dist/cjs/node/compressible/layout.d.ts +0 -47
- package/dist/cjs/node/compressible/types.d.ts +0 -112
- package/dist/cjs/node/compressible/utils.d.ts +0 -16
- package/dist/cjs/node/utils/packed-accounts.d.ts +0 -161
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PublicKey, MemcmpFilter, DataSlice } from '@solana/web3.js';
|
|
1
|
+
import { PublicKey, MemcmpFilter, DataSlice, Commitment, GetAccountInfoConfig, AccountInfo, ConfirmedSignatureInfo, SignaturesForAddressOptions, TokenAmount } from '@solana/web3.js';
|
|
2
2
|
import { Struct } from 'superstruct';
|
|
3
|
-
import { BN254, ValidityProof, CompressedAccountWithMerkleContext, MerkleContextWithMerkleProof, TokenData, TreeInfo, AddressTreeInfo, CompressedProof } from './state';
|
|
3
|
+
import { BN254, ValidityProof, CompressedAccountWithMerkleContext, MerkleContextWithMerkleProof, TokenData, TreeInfo, AddressTreeInfo, CompressedProof, MerkleContext } from './state';
|
|
4
4
|
import BN from 'bn.js';
|
|
5
5
|
export interface LatestNonVotingSignatures {
|
|
6
6
|
context: {
|
|
@@ -83,6 +83,14 @@ export interface AddressWithTreeInfo {
|
|
|
83
83
|
address: BN254;
|
|
84
84
|
treeInfo: AddressTreeInfo;
|
|
85
85
|
}
|
|
86
|
+
export interface AddressWithTreeInfoV2 {
|
|
87
|
+
address: Uint8Array;
|
|
88
|
+
treeInfo: TreeInfo;
|
|
89
|
+
}
|
|
90
|
+
export declare enum DerivationMode {
|
|
91
|
+
compressible = "compressible",
|
|
92
|
+
standard = "standard"
|
|
93
|
+
}
|
|
86
94
|
export interface CompressedTransaction {
|
|
87
95
|
compressionInfo: {
|
|
88
96
|
closedAccounts: {
|
|
@@ -234,24 +242,24 @@ export declare function jsonRpcResultAndContext<T, U>(value: Struct<T, U>): Stru
|
|
|
234
242
|
export declare const CompressedAccountResult: Struct<{
|
|
235
243
|
data: {
|
|
236
244
|
data: string;
|
|
237
|
-
dataHash: BN;
|
|
238
245
|
discriminator: BN;
|
|
246
|
+
dataHash: BN;
|
|
239
247
|
} | null;
|
|
240
|
-
tree: PublicKey;
|
|
241
|
-
address: number[] | null;
|
|
242
|
-
hash: BN;
|
|
243
248
|
lamports: BN;
|
|
244
249
|
owner: PublicKey;
|
|
250
|
+
address: number[] | null;
|
|
245
251
|
leafIndex: number;
|
|
246
252
|
seq: BN | null;
|
|
253
|
+
tree: PublicKey;
|
|
254
|
+
hash: BN;
|
|
247
255
|
slotCreated: BN;
|
|
248
256
|
}, {
|
|
249
257
|
address: Struct<number[] | null, null>;
|
|
250
258
|
hash: Struct<BN, null>;
|
|
251
259
|
data: Struct<{
|
|
252
260
|
data: string;
|
|
253
|
-
dataHash: BN;
|
|
254
261
|
discriminator: BN;
|
|
262
|
+
dataHash: BN;
|
|
255
263
|
} | null, {
|
|
256
264
|
data: Struct<string, null>;
|
|
257
265
|
dataHash: Struct<BN, null>;
|
|
@@ -267,16 +275,12 @@ export declare const CompressedAccountResult: Struct<{
|
|
|
267
275
|
export declare const CompressedAccountResultV2: Struct<{
|
|
268
276
|
data: {
|
|
269
277
|
data: string;
|
|
270
|
-
dataHash: BN;
|
|
271
278
|
discriminator: BN;
|
|
279
|
+
dataHash: BN;
|
|
272
280
|
} | null;
|
|
273
|
-
address: number[] | null;
|
|
274
|
-
hash: BN;
|
|
275
281
|
lamports: BN;
|
|
276
282
|
owner: PublicKey;
|
|
277
|
-
|
|
278
|
-
seq: BN | null;
|
|
279
|
-
slotCreated: BN;
|
|
283
|
+
address: number[] | null;
|
|
280
284
|
merkleContext: {
|
|
281
285
|
cpiContext: PublicKey | null;
|
|
282
286
|
tree: PublicKey;
|
|
@@ -289,14 +293,18 @@ export declare const CompressedAccountResultV2: Struct<{
|
|
|
289
293
|
treeType: number;
|
|
290
294
|
} | null | undefined;
|
|
291
295
|
};
|
|
296
|
+
leafIndex: number;
|
|
292
297
|
proveByIndex: boolean;
|
|
298
|
+
seq: BN | null;
|
|
299
|
+
hash: BN;
|
|
300
|
+
slotCreated: BN;
|
|
293
301
|
}, {
|
|
294
302
|
address: Struct<number[] | null, null>;
|
|
295
303
|
hash: Struct<BN, null>;
|
|
296
304
|
data: Struct<{
|
|
297
305
|
data: string;
|
|
298
|
-
dataHash: BN;
|
|
299
306
|
discriminator: BN;
|
|
307
|
+
dataHash: BN;
|
|
300
308
|
} | null, {
|
|
301
309
|
data: Struct<string, null>;
|
|
302
310
|
dataHash: Struct<BN, null>;
|
|
@@ -364,16 +372,16 @@ export declare const CompressedTokenAccountResult: Struct<{
|
|
|
364
372
|
account: {
|
|
365
373
|
data: {
|
|
366
374
|
data: string;
|
|
367
|
-
dataHash: BN;
|
|
368
375
|
discriminator: BN;
|
|
376
|
+
dataHash: BN;
|
|
369
377
|
} | null;
|
|
370
|
-
tree: PublicKey;
|
|
371
|
-
address: number[] | null;
|
|
372
|
-
hash: BN;
|
|
373
378
|
lamports: BN;
|
|
374
379
|
owner: PublicKey;
|
|
380
|
+
address: number[] | null;
|
|
375
381
|
leafIndex: number;
|
|
376
382
|
seq: BN | null;
|
|
383
|
+
tree: PublicKey;
|
|
384
|
+
hash: BN;
|
|
377
385
|
slotCreated: BN;
|
|
378
386
|
};
|
|
379
387
|
}, {
|
|
@@ -393,24 +401,24 @@ export declare const CompressedTokenAccountResult: Struct<{
|
|
|
393
401
|
account: Struct<{
|
|
394
402
|
data: {
|
|
395
403
|
data: string;
|
|
396
|
-
dataHash: BN;
|
|
397
404
|
discriminator: BN;
|
|
405
|
+
dataHash: BN;
|
|
398
406
|
} | null;
|
|
399
|
-
tree: PublicKey;
|
|
400
|
-
address: number[] | null;
|
|
401
|
-
hash: BN;
|
|
402
407
|
lamports: BN;
|
|
403
408
|
owner: PublicKey;
|
|
409
|
+
address: number[] | null;
|
|
404
410
|
leafIndex: number;
|
|
405
411
|
seq: BN | null;
|
|
412
|
+
tree: PublicKey;
|
|
413
|
+
hash: BN;
|
|
406
414
|
slotCreated: BN;
|
|
407
415
|
}, {
|
|
408
416
|
address: Struct<number[] | null, null>;
|
|
409
417
|
hash: Struct<BN, null>;
|
|
410
418
|
data: Struct<{
|
|
411
419
|
data: string;
|
|
412
|
-
dataHash: BN;
|
|
413
420
|
discriminator: BN;
|
|
421
|
+
dataHash: BN;
|
|
414
422
|
} | null, {
|
|
415
423
|
data: Struct<string, null>;
|
|
416
424
|
dataHash: Struct<BN, null>;
|
|
@@ -438,16 +446,12 @@ export declare const CompressedTokenAccountResultV2: Struct<{
|
|
|
438
446
|
account: {
|
|
439
447
|
data: {
|
|
440
448
|
data: string;
|
|
441
|
-
dataHash: BN;
|
|
442
449
|
discriminator: BN;
|
|
450
|
+
dataHash: BN;
|
|
443
451
|
} | null;
|
|
444
|
-
address: number[] | null;
|
|
445
|
-
hash: BN;
|
|
446
452
|
lamports: BN;
|
|
447
453
|
owner: PublicKey;
|
|
448
|
-
|
|
449
|
-
seq: BN | null;
|
|
450
|
-
slotCreated: BN;
|
|
454
|
+
address: number[] | null;
|
|
451
455
|
merkleContext: {
|
|
452
456
|
cpiContext: PublicKey | null;
|
|
453
457
|
tree: PublicKey;
|
|
@@ -460,7 +464,11 @@ export declare const CompressedTokenAccountResultV2: Struct<{
|
|
|
460
464
|
treeType: number;
|
|
461
465
|
} | null | undefined;
|
|
462
466
|
};
|
|
467
|
+
leafIndex: number;
|
|
463
468
|
proveByIndex: boolean;
|
|
469
|
+
seq: BN | null;
|
|
470
|
+
hash: BN;
|
|
471
|
+
slotCreated: BN;
|
|
464
472
|
};
|
|
465
473
|
}, {
|
|
466
474
|
tokenData: Struct<{
|
|
@@ -479,16 +487,12 @@ export declare const CompressedTokenAccountResultV2: Struct<{
|
|
|
479
487
|
account: Struct<{
|
|
480
488
|
data: {
|
|
481
489
|
data: string;
|
|
482
|
-
dataHash: BN;
|
|
483
490
|
discriminator: BN;
|
|
491
|
+
dataHash: BN;
|
|
484
492
|
} | null;
|
|
485
|
-
address: number[] | null;
|
|
486
|
-
hash: BN;
|
|
487
493
|
lamports: BN;
|
|
488
494
|
owner: PublicKey;
|
|
489
|
-
|
|
490
|
-
seq: BN | null;
|
|
491
|
-
slotCreated: BN;
|
|
495
|
+
address: number[] | null;
|
|
492
496
|
merkleContext: {
|
|
493
497
|
cpiContext: PublicKey | null;
|
|
494
498
|
tree: PublicKey;
|
|
@@ -501,14 +505,18 @@ export declare const CompressedTokenAccountResultV2: Struct<{
|
|
|
501
505
|
treeType: number;
|
|
502
506
|
} | null | undefined;
|
|
503
507
|
};
|
|
508
|
+
leafIndex: number;
|
|
504
509
|
proveByIndex: boolean;
|
|
510
|
+
seq: BN | null;
|
|
511
|
+
hash: BN;
|
|
512
|
+
slotCreated: BN;
|
|
505
513
|
}, {
|
|
506
514
|
address: Struct<number[] | null, null>;
|
|
507
515
|
hash: Struct<BN, null>;
|
|
508
516
|
data: Struct<{
|
|
509
517
|
data: string;
|
|
510
|
-
dataHash: BN;
|
|
511
518
|
discriminator: BN;
|
|
519
|
+
dataHash: BN;
|
|
512
520
|
} | null, {
|
|
513
521
|
data: Struct<string, null>;
|
|
514
522
|
dataHash: Struct<BN, null>;
|
|
@@ -557,54 +565,54 @@ export declare const MultipleCompressedAccountsResult: Struct<{
|
|
|
557
565
|
items: {
|
|
558
566
|
data: {
|
|
559
567
|
data: string;
|
|
560
|
-
dataHash: BN;
|
|
561
568
|
discriminator: BN;
|
|
569
|
+
dataHash: BN;
|
|
562
570
|
} | null;
|
|
563
|
-
tree: PublicKey;
|
|
564
|
-
address: number[] | null;
|
|
565
|
-
hash: BN;
|
|
566
571
|
lamports: BN;
|
|
567
572
|
owner: PublicKey;
|
|
573
|
+
address: number[] | null;
|
|
568
574
|
leafIndex: number;
|
|
569
575
|
seq: BN | null;
|
|
576
|
+
tree: PublicKey;
|
|
577
|
+
hash: BN;
|
|
570
578
|
slotCreated: BN;
|
|
571
579
|
}[];
|
|
572
580
|
}, {
|
|
573
581
|
items: Struct<{
|
|
574
582
|
data: {
|
|
575
583
|
data: string;
|
|
576
|
-
dataHash: BN;
|
|
577
584
|
discriminator: BN;
|
|
585
|
+
dataHash: BN;
|
|
578
586
|
} | null;
|
|
579
|
-
tree: PublicKey;
|
|
580
|
-
address: number[] | null;
|
|
581
|
-
hash: BN;
|
|
582
587
|
lamports: BN;
|
|
583
588
|
owner: PublicKey;
|
|
589
|
+
address: number[] | null;
|
|
584
590
|
leafIndex: number;
|
|
585
591
|
seq: BN | null;
|
|
592
|
+
tree: PublicKey;
|
|
593
|
+
hash: BN;
|
|
586
594
|
slotCreated: BN;
|
|
587
595
|
}[], Struct<{
|
|
588
596
|
data: {
|
|
589
597
|
data: string;
|
|
590
|
-
dataHash: BN;
|
|
591
598
|
discriminator: BN;
|
|
599
|
+
dataHash: BN;
|
|
592
600
|
} | null;
|
|
593
|
-
tree: PublicKey;
|
|
594
|
-
address: number[] | null;
|
|
595
|
-
hash: BN;
|
|
596
601
|
lamports: BN;
|
|
597
602
|
owner: PublicKey;
|
|
603
|
+
address: number[] | null;
|
|
598
604
|
leafIndex: number;
|
|
599
605
|
seq: BN | null;
|
|
606
|
+
tree: PublicKey;
|
|
607
|
+
hash: BN;
|
|
600
608
|
slotCreated: BN;
|
|
601
609
|
}, {
|
|
602
610
|
address: Struct<number[] | null, null>;
|
|
603
611
|
hash: Struct<BN, null>;
|
|
604
612
|
data: Struct<{
|
|
605
613
|
data: string;
|
|
606
|
-
dataHash: BN;
|
|
607
614
|
discriminator: BN;
|
|
615
|
+
dataHash: BN;
|
|
608
616
|
} | null, {
|
|
609
617
|
data: Struct<string, null>;
|
|
610
618
|
dataHash: Struct<BN, null>;
|
|
@@ -625,16 +633,12 @@ export declare const MultipleCompressedAccountsResultV2: Struct<{
|
|
|
625
633
|
items: {
|
|
626
634
|
data: {
|
|
627
635
|
data: string;
|
|
628
|
-
dataHash: BN;
|
|
629
636
|
discriminator: BN;
|
|
637
|
+
dataHash: BN;
|
|
630
638
|
} | null;
|
|
631
|
-
address: number[] | null;
|
|
632
|
-
hash: BN;
|
|
633
639
|
lamports: BN;
|
|
634
640
|
owner: PublicKey;
|
|
635
|
-
|
|
636
|
-
seq: BN | null;
|
|
637
|
-
slotCreated: BN;
|
|
641
|
+
address: number[] | null;
|
|
638
642
|
merkleContext: {
|
|
639
643
|
cpiContext: PublicKey | null;
|
|
640
644
|
tree: PublicKey;
|
|
@@ -647,22 +651,22 @@ export declare const MultipleCompressedAccountsResultV2: Struct<{
|
|
|
647
651
|
treeType: number;
|
|
648
652
|
} | null | undefined;
|
|
649
653
|
};
|
|
654
|
+
leafIndex: number;
|
|
650
655
|
proveByIndex: boolean;
|
|
656
|
+
seq: BN | null;
|
|
657
|
+
hash: BN;
|
|
658
|
+
slotCreated: BN;
|
|
651
659
|
}[];
|
|
652
660
|
}, {
|
|
653
661
|
items: Struct<{
|
|
654
662
|
data: {
|
|
655
663
|
data: string;
|
|
656
|
-
dataHash: BN;
|
|
657
664
|
discriminator: BN;
|
|
665
|
+
dataHash: BN;
|
|
658
666
|
} | null;
|
|
659
|
-
address: number[] | null;
|
|
660
|
-
hash: BN;
|
|
661
667
|
lamports: BN;
|
|
662
668
|
owner: PublicKey;
|
|
663
|
-
|
|
664
|
-
seq: BN | null;
|
|
665
|
-
slotCreated: BN;
|
|
669
|
+
address: number[] | null;
|
|
666
670
|
merkleContext: {
|
|
667
671
|
cpiContext: PublicKey | null;
|
|
668
672
|
tree: PublicKey;
|
|
@@ -675,20 +679,20 @@ export declare const MultipleCompressedAccountsResultV2: Struct<{
|
|
|
675
679
|
treeType: number;
|
|
676
680
|
} | null | undefined;
|
|
677
681
|
};
|
|
682
|
+
leafIndex: number;
|
|
678
683
|
proveByIndex: boolean;
|
|
684
|
+
seq: BN | null;
|
|
685
|
+
hash: BN;
|
|
686
|
+
slotCreated: BN;
|
|
679
687
|
}[], Struct<{
|
|
680
688
|
data: {
|
|
681
689
|
data: string;
|
|
682
|
-
dataHash: BN;
|
|
683
690
|
discriminator: BN;
|
|
691
|
+
dataHash: BN;
|
|
684
692
|
} | null;
|
|
685
|
-
address: number[] | null;
|
|
686
|
-
hash: BN;
|
|
687
693
|
lamports: BN;
|
|
688
694
|
owner: PublicKey;
|
|
689
|
-
|
|
690
|
-
seq: BN | null;
|
|
691
|
-
slotCreated: BN;
|
|
695
|
+
address: number[] | null;
|
|
692
696
|
merkleContext: {
|
|
693
697
|
cpiContext: PublicKey | null;
|
|
694
698
|
tree: PublicKey;
|
|
@@ -701,14 +705,18 @@ export declare const MultipleCompressedAccountsResultV2: Struct<{
|
|
|
701
705
|
treeType: number;
|
|
702
706
|
} | null | undefined;
|
|
703
707
|
};
|
|
708
|
+
leafIndex: number;
|
|
704
709
|
proveByIndex: boolean;
|
|
710
|
+
seq: BN | null;
|
|
711
|
+
hash: BN;
|
|
712
|
+
slotCreated: BN;
|
|
705
713
|
}, {
|
|
706
714
|
address: Struct<number[] | null, null>;
|
|
707
715
|
hash: Struct<BN, null>;
|
|
708
716
|
data: Struct<{
|
|
709
717
|
data: string;
|
|
710
|
-
dataHash: BN;
|
|
711
718
|
discriminator: BN;
|
|
719
|
+
dataHash: BN;
|
|
712
720
|
} | null, {
|
|
713
721
|
data: Struct<string, null>;
|
|
714
722
|
dataHash: Struct<BN, null>;
|
|
@@ -757,16 +765,16 @@ export declare const CompressedAccountsByOwnerResult: Struct<{
|
|
|
757
765
|
items: {
|
|
758
766
|
data: {
|
|
759
767
|
data: string;
|
|
760
|
-
dataHash: BN;
|
|
761
768
|
discriminator: BN;
|
|
769
|
+
dataHash: BN;
|
|
762
770
|
} | null;
|
|
763
|
-
tree: PublicKey;
|
|
764
|
-
address: number[] | null;
|
|
765
|
-
hash: BN;
|
|
766
771
|
lamports: BN;
|
|
767
772
|
owner: PublicKey;
|
|
773
|
+
address: number[] | null;
|
|
768
774
|
leafIndex: number;
|
|
769
775
|
seq: BN | null;
|
|
776
|
+
tree: PublicKey;
|
|
777
|
+
hash: BN;
|
|
770
778
|
slotCreated: BN;
|
|
771
779
|
}[];
|
|
772
780
|
cursor: string | null;
|
|
@@ -774,38 +782,38 @@ export declare const CompressedAccountsByOwnerResult: Struct<{
|
|
|
774
782
|
items: Struct<{
|
|
775
783
|
data: {
|
|
776
784
|
data: string;
|
|
777
|
-
dataHash: BN;
|
|
778
785
|
discriminator: BN;
|
|
786
|
+
dataHash: BN;
|
|
779
787
|
} | null;
|
|
780
|
-
tree: PublicKey;
|
|
781
|
-
address: number[] | null;
|
|
782
|
-
hash: BN;
|
|
783
788
|
lamports: BN;
|
|
784
789
|
owner: PublicKey;
|
|
790
|
+
address: number[] | null;
|
|
785
791
|
leafIndex: number;
|
|
786
792
|
seq: BN | null;
|
|
793
|
+
tree: PublicKey;
|
|
794
|
+
hash: BN;
|
|
787
795
|
slotCreated: BN;
|
|
788
796
|
}[], Struct<{
|
|
789
797
|
data: {
|
|
790
798
|
data: string;
|
|
791
|
-
dataHash: BN;
|
|
792
799
|
discriminator: BN;
|
|
800
|
+
dataHash: BN;
|
|
793
801
|
} | null;
|
|
794
|
-
tree: PublicKey;
|
|
795
|
-
address: number[] | null;
|
|
796
|
-
hash: BN;
|
|
797
802
|
lamports: BN;
|
|
798
803
|
owner: PublicKey;
|
|
804
|
+
address: number[] | null;
|
|
799
805
|
leafIndex: number;
|
|
800
806
|
seq: BN | null;
|
|
807
|
+
tree: PublicKey;
|
|
808
|
+
hash: BN;
|
|
801
809
|
slotCreated: BN;
|
|
802
810
|
}, {
|
|
803
811
|
address: Struct<number[] | null, null>;
|
|
804
812
|
hash: Struct<BN, null>;
|
|
805
813
|
data: Struct<{
|
|
806
814
|
data: string;
|
|
807
|
-
dataHash: BN;
|
|
808
815
|
discriminator: BN;
|
|
816
|
+
dataHash: BN;
|
|
809
817
|
} | null, {
|
|
810
818
|
data: Struct<string, null>;
|
|
811
819
|
dataHash: Struct<BN, null>;
|
|
@@ -827,16 +835,12 @@ export declare const CompressedAccountsByOwnerResultV2: Struct<{
|
|
|
827
835
|
items: {
|
|
828
836
|
data: {
|
|
829
837
|
data: string;
|
|
830
|
-
dataHash: BN;
|
|
831
838
|
discriminator: BN;
|
|
839
|
+
dataHash: BN;
|
|
832
840
|
} | null;
|
|
833
|
-
address: number[] | null;
|
|
834
|
-
hash: BN;
|
|
835
841
|
lamports: BN;
|
|
836
842
|
owner: PublicKey;
|
|
837
|
-
|
|
838
|
-
seq: BN | null;
|
|
839
|
-
slotCreated: BN;
|
|
843
|
+
address: number[] | null;
|
|
840
844
|
merkleContext: {
|
|
841
845
|
cpiContext: PublicKey | null;
|
|
842
846
|
tree: PublicKey;
|
|
@@ -849,23 +853,23 @@ export declare const CompressedAccountsByOwnerResultV2: Struct<{
|
|
|
849
853
|
treeType: number;
|
|
850
854
|
} | null | undefined;
|
|
851
855
|
};
|
|
856
|
+
leafIndex: number;
|
|
852
857
|
proveByIndex: boolean;
|
|
858
|
+
seq: BN | null;
|
|
859
|
+
hash: BN;
|
|
860
|
+
slotCreated: BN;
|
|
853
861
|
}[];
|
|
854
862
|
cursor: string | null;
|
|
855
863
|
}, {
|
|
856
864
|
items: Struct<{
|
|
857
865
|
data: {
|
|
858
866
|
data: string;
|
|
859
|
-
dataHash: BN;
|
|
860
867
|
discriminator: BN;
|
|
868
|
+
dataHash: BN;
|
|
861
869
|
} | null;
|
|
862
|
-
address: number[] | null;
|
|
863
|
-
hash: BN;
|
|
864
870
|
lamports: BN;
|
|
865
871
|
owner: PublicKey;
|
|
866
|
-
|
|
867
|
-
seq: BN | null;
|
|
868
|
-
slotCreated: BN;
|
|
872
|
+
address: number[] | null;
|
|
869
873
|
merkleContext: {
|
|
870
874
|
cpiContext: PublicKey | null;
|
|
871
875
|
tree: PublicKey;
|
|
@@ -878,20 +882,20 @@ export declare const CompressedAccountsByOwnerResultV2: Struct<{
|
|
|
878
882
|
treeType: number;
|
|
879
883
|
} | null | undefined;
|
|
880
884
|
};
|
|
885
|
+
leafIndex: number;
|
|
881
886
|
proveByIndex: boolean;
|
|
887
|
+
seq: BN | null;
|
|
888
|
+
hash: BN;
|
|
889
|
+
slotCreated: BN;
|
|
882
890
|
}[], Struct<{
|
|
883
891
|
data: {
|
|
884
892
|
data: string;
|
|
885
|
-
dataHash: BN;
|
|
886
893
|
discriminator: BN;
|
|
894
|
+
dataHash: BN;
|
|
887
895
|
} | null;
|
|
888
|
-
address: number[] | null;
|
|
889
|
-
hash: BN;
|
|
890
896
|
lamports: BN;
|
|
891
897
|
owner: PublicKey;
|
|
892
|
-
|
|
893
|
-
seq: BN | null;
|
|
894
|
-
slotCreated: BN;
|
|
898
|
+
address: number[] | null;
|
|
895
899
|
merkleContext: {
|
|
896
900
|
cpiContext: PublicKey | null;
|
|
897
901
|
tree: PublicKey;
|
|
@@ -904,14 +908,18 @@ export declare const CompressedAccountsByOwnerResultV2: Struct<{
|
|
|
904
908
|
treeType: number;
|
|
905
909
|
} | null | undefined;
|
|
906
910
|
};
|
|
911
|
+
leafIndex: number;
|
|
907
912
|
proveByIndex: boolean;
|
|
913
|
+
seq: BN | null;
|
|
914
|
+
hash: BN;
|
|
915
|
+
slotCreated: BN;
|
|
908
916
|
}, {
|
|
909
917
|
address: Struct<number[] | null, null>;
|
|
910
918
|
hash: Struct<BN, null>;
|
|
911
919
|
data: Struct<{
|
|
912
920
|
data: string;
|
|
913
|
-
dataHash: BN;
|
|
914
921
|
discriminator: BN;
|
|
922
|
+
dataHash: BN;
|
|
915
923
|
} | null, {
|
|
916
924
|
data: Struct<string, null>;
|
|
917
925
|
dataHash: Struct<BN, null>;
|
|
@@ -969,16 +977,16 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
969
977
|
account: {
|
|
970
978
|
data: {
|
|
971
979
|
data: string;
|
|
972
|
-
dataHash: BN;
|
|
973
980
|
discriminator: BN;
|
|
981
|
+
dataHash: BN;
|
|
974
982
|
} | null;
|
|
975
|
-
tree: PublicKey;
|
|
976
|
-
address: number[] | null;
|
|
977
|
-
hash: BN;
|
|
978
983
|
lamports: BN;
|
|
979
984
|
owner: PublicKey;
|
|
985
|
+
address: number[] | null;
|
|
980
986
|
leafIndex: number;
|
|
981
987
|
seq: BN | null;
|
|
988
|
+
tree: PublicKey;
|
|
989
|
+
hash: BN;
|
|
982
990
|
slotCreated: BN;
|
|
983
991
|
};
|
|
984
992
|
}[];
|
|
@@ -995,16 +1003,16 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
995
1003
|
account: {
|
|
996
1004
|
data: {
|
|
997
1005
|
data: string;
|
|
998
|
-
dataHash: BN;
|
|
999
1006
|
discriminator: BN;
|
|
1007
|
+
dataHash: BN;
|
|
1000
1008
|
} | null;
|
|
1001
|
-
tree: PublicKey;
|
|
1002
|
-
address: number[] | null;
|
|
1003
|
-
hash: BN;
|
|
1004
1009
|
lamports: BN;
|
|
1005
1010
|
owner: PublicKey;
|
|
1011
|
+
address: number[] | null;
|
|
1006
1012
|
leafIndex: number;
|
|
1007
1013
|
seq: BN | null;
|
|
1014
|
+
tree: PublicKey;
|
|
1015
|
+
hash: BN;
|
|
1008
1016
|
slotCreated: BN;
|
|
1009
1017
|
};
|
|
1010
1018
|
}[], Struct<{
|
|
@@ -1018,16 +1026,16 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
1018
1026
|
account: {
|
|
1019
1027
|
data: {
|
|
1020
1028
|
data: string;
|
|
1021
|
-
dataHash: BN;
|
|
1022
1029
|
discriminator: BN;
|
|
1030
|
+
dataHash: BN;
|
|
1023
1031
|
} | null;
|
|
1024
|
-
tree: PublicKey;
|
|
1025
|
-
address: number[] | null;
|
|
1026
|
-
hash: BN;
|
|
1027
1032
|
lamports: BN;
|
|
1028
1033
|
owner: PublicKey;
|
|
1034
|
+
address: number[] | null;
|
|
1029
1035
|
leafIndex: number;
|
|
1030
1036
|
seq: BN | null;
|
|
1037
|
+
tree: PublicKey;
|
|
1038
|
+
hash: BN;
|
|
1031
1039
|
slotCreated: BN;
|
|
1032
1040
|
};
|
|
1033
1041
|
}, {
|
|
@@ -1047,24 +1055,24 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
|
1047
1055
|
account: Struct<{
|
|
1048
1056
|
data: {
|
|
1049
1057
|
data: string;
|
|
1050
|
-
dataHash: BN;
|
|
1051
1058
|
discriminator: BN;
|
|
1059
|
+
dataHash: BN;
|
|
1052
1060
|
} | null;
|
|
1053
|
-
tree: PublicKey;
|
|
1054
|
-
address: number[] | null;
|
|
1055
|
-
hash: BN;
|
|
1056
1061
|
lamports: BN;
|
|
1057
1062
|
owner: PublicKey;
|
|
1063
|
+
address: number[] | null;
|
|
1058
1064
|
leafIndex: number;
|
|
1059
1065
|
seq: BN | null;
|
|
1066
|
+
tree: PublicKey;
|
|
1067
|
+
hash: BN;
|
|
1060
1068
|
slotCreated: BN;
|
|
1061
1069
|
}, {
|
|
1062
1070
|
address: Struct<number[] | null, null>;
|
|
1063
1071
|
hash: Struct<BN, null>;
|
|
1064
1072
|
data: Struct<{
|
|
1065
1073
|
data: string;
|
|
1066
|
-
dataHash: BN;
|
|
1067
1074
|
discriminator: BN;
|
|
1075
|
+
dataHash: BN;
|
|
1068
1076
|
} | null, {
|
|
1069
1077
|
data: Struct<string, null>;
|
|
1070
1078
|
dataHash: Struct<BN, null>;
|
|
@@ -1095,16 +1103,12 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResultV2: Struct<{
|
|
|
1095
1103
|
account: {
|
|
1096
1104
|
data: {
|
|
1097
1105
|
data: string;
|
|
1098
|
-
dataHash: BN;
|
|
1099
1106
|
discriminator: BN;
|
|
1107
|
+
dataHash: BN;
|
|
1100
1108
|
} | null;
|
|
1101
|
-
address: number[] | null;
|
|
1102
|
-
hash: BN;
|
|
1103
1109
|
lamports: BN;
|
|
1104
1110
|
owner: PublicKey;
|
|
1105
|
-
|
|
1106
|
-
seq: BN | null;
|
|
1107
|
-
slotCreated: BN;
|
|
1111
|
+
address: number[] | null;
|
|
1108
1112
|
merkleContext: {
|
|
1109
1113
|
cpiContext: PublicKey | null;
|
|
1110
1114
|
tree: PublicKey;
|
|
@@ -1117,7 +1121,11 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResultV2: Struct<{
|
|
|
1117
1121
|
treeType: number;
|
|
1118
1122
|
} | null | undefined;
|
|
1119
1123
|
};
|
|
1124
|
+
leafIndex: number;
|
|
1120
1125
|
proveByIndex: boolean;
|
|
1126
|
+
seq: BN | null;
|
|
1127
|
+
hash: BN;
|
|
1128
|
+
slotCreated: BN;
|
|
1121
1129
|
};
|
|
1122
1130
|
}[];
|
|
1123
1131
|
cursor: string | null;
|
|
@@ -1133,16 +1141,12 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResultV2: Struct<{
|
|
|
1133
1141
|
account: {
|
|
1134
1142
|
data: {
|
|
1135
1143
|
data: string;
|
|
1136
|
-
dataHash: BN;
|
|
1137
1144
|
discriminator: BN;
|
|
1145
|
+
dataHash: BN;
|
|
1138
1146
|
} | null;
|
|
1139
|
-
address: number[] | null;
|
|
1140
|
-
hash: BN;
|
|
1141
1147
|
lamports: BN;
|
|
1142
1148
|
owner: PublicKey;
|
|
1143
|
-
|
|
1144
|
-
seq: BN | null;
|
|
1145
|
-
slotCreated: BN;
|
|
1149
|
+
address: number[] | null;
|
|
1146
1150
|
merkleContext: {
|
|
1147
1151
|
cpiContext: PublicKey | null;
|
|
1148
1152
|
tree: PublicKey;
|
|
@@ -1155,7 +1159,11 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResultV2: Struct<{
|
|
|
1155
1159
|
treeType: number;
|
|
1156
1160
|
} | null | undefined;
|
|
1157
1161
|
};
|
|
1162
|
+
leafIndex: number;
|
|
1158
1163
|
proveByIndex: boolean;
|
|
1164
|
+
seq: BN | null;
|
|
1165
|
+
hash: BN;
|
|
1166
|
+
slotCreated: BN;
|
|
1159
1167
|
};
|
|
1160
1168
|
}[], Struct<{
|
|
1161
1169
|
tokenData: {
|
|
@@ -1168,16 +1176,12 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResultV2: Struct<{
|
|
|
1168
1176
|
account: {
|
|
1169
1177
|
data: {
|
|
1170
1178
|
data: string;
|
|
1171
|
-
dataHash: BN;
|
|
1172
1179
|
discriminator: BN;
|
|
1180
|
+
dataHash: BN;
|
|
1173
1181
|
} | null;
|
|
1174
|
-
address: number[] | null;
|
|
1175
|
-
hash: BN;
|
|
1176
1182
|
lamports: BN;
|
|
1177
1183
|
owner: PublicKey;
|
|
1178
|
-
|
|
1179
|
-
seq: BN | null;
|
|
1180
|
-
slotCreated: BN;
|
|
1184
|
+
address: number[] | null;
|
|
1181
1185
|
merkleContext: {
|
|
1182
1186
|
cpiContext: PublicKey | null;
|
|
1183
1187
|
tree: PublicKey;
|
|
@@ -1190,7 +1194,11 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResultV2: Struct<{
|
|
|
1190
1194
|
treeType: number;
|
|
1191
1195
|
} | null | undefined;
|
|
1192
1196
|
};
|
|
1197
|
+
leafIndex: number;
|
|
1193
1198
|
proveByIndex: boolean;
|
|
1199
|
+
seq: BN | null;
|
|
1200
|
+
hash: BN;
|
|
1201
|
+
slotCreated: BN;
|
|
1194
1202
|
};
|
|
1195
1203
|
}, {
|
|
1196
1204
|
tokenData: Struct<{
|
|
@@ -1209,16 +1217,12 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResultV2: Struct<{
|
|
|
1209
1217
|
account: Struct<{
|
|
1210
1218
|
data: {
|
|
1211
1219
|
data: string;
|
|
1212
|
-
dataHash: BN;
|
|
1213
1220
|
discriminator: BN;
|
|
1221
|
+
dataHash: BN;
|
|
1214
1222
|
} | null;
|
|
1215
|
-
address: number[] | null;
|
|
1216
|
-
hash: BN;
|
|
1217
1223
|
lamports: BN;
|
|
1218
1224
|
owner: PublicKey;
|
|
1219
|
-
|
|
1220
|
-
seq: BN | null;
|
|
1221
|
-
slotCreated: BN;
|
|
1225
|
+
address: number[] | null;
|
|
1222
1226
|
merkleContext: {
|
|
1223
1227
|
cpiContext: PublicKey | null;
|
|
1224
1228
|
tree: PublicKey;
|
|
@@ -1231,14 +1235,18 @@ export declare const CompressedTokenAccountsByOwnerOrDelegateResultV2: Struct<{
|
|
|
1231
1235
|
treeType: number;
|
|
1232
1236
|
} | null | undefined;
|
|
1233
1237
|
};
|
|
1238
|
+
leafIndex: number;
|
|
1234
1239
|
proveByIndex: boolean;
|
|
1240
|
+
seq: BN | null;
|
|
1241
|
+
hash: BN;
|
|
1242
|
+
slotCreated: BN;
|
|
1235
1243
|
}, {
|
|
1236
1244
|
address: Struct<number[] | null, null>;
|
|
1237
1245
|
hash: Struct<BN, null>;
|
|
1238
1246
|
data: Struct<{
|
|
1239
1247
|
data: string;
|
|
1240
|
-
dataHash: BN;
|
|
1241
1248
|
discriminator: BN;
|
|
1249
|
+
dataHash: BN;
|
|
1242
1250
|
} | null, {
|
|
1243
1251
|
data: Struct<string, null>;
|
|
1244
1252
|
dataHash: Struct<BN, null>;
|
|
@@ -1349,10 +1357,10 @@ export declare const LatestNonVotingSignaturesResultPaginated: Struct<{
|
|
|
1349
1357
|
*/
|
|
1350
1358
|
export declare const MerkleProofResult: Struct<{
|
|
1351
1359
|
root: BN;
|
|
1352
|
-
|
|
1360
|
+
proof: BN[];
|
|
1353
1361
|
leafIndex: number;
|
|
1362
|
+
hash: BN;
|
|
1354
1363
|
merkleTree: PublicKey;
|
|
1355
|
-
proof: BN[];
|
|
1356
1364
|
rootSeq: number;
|
|
1357
1365
|
}, {
|
|
1358
1366
|
hash: Struct<BN, null>;
|
|
@@ -1367,10 +1375,10 @@ export declare const MerkleProofResult: Struct<{
|
|
|
1367
1375
|
*/
|
|
1368
1376
|
export declare const MerkleProofResultV2: Struct<{
|
|
1369
1377
|
root: BN;
|
|
1370
|
-
|
|
1378
|
+
proof: BN[];
|
|
1371
1379
|
leafIndex: number;
|
|
1372
1380
|
proveByIndex: boolean;
|
|
1373
|
-
|
|
1381
|
+
hash: BN;
|
|
1374
1382
|
rootSeq: number;
|
|
1375
1383
|
treeContext: {
|
|
1376
1384
|
cpiContext: PublicKey | null;
|
|
@@ -1425,9 +1433,9 @@ export declare const MerkleProofResultV2: Struct<{
|
|
|
1425
1433
|
*/
|
|
1426
1434
|
export declare const NewAddressProofResult: Struct<{
|
|
1427
1435
|
root: BN;
|
|
1436
|
+
proof: BN[];
|
|
1428
1437
|
address: BN;
|
|
1429
1438
|
merkleTree: PublicKey;
|
|
1430
|
-
proof: BN[];
|
|
1431
1439
|
rootSeq: number;
|
|
1432
1440
|
nextIndex: number;
|
|
1433
1441
|
lowerRangeAddress: BN;
|
|
@@ -1448,8 +1456,8 @@ export declare const NewAddressProofResult: Struct<{
|
|
|
1448
1456
|
* @internal
|
|
1449
1457
|
*/
|
|
1450
1458
|
export declare const RootIndexResultV2: Struct<{
|
|
1451
|
-
proveByIndex: boolean;
|
|
1452
1459
|
rootIndex: number;
|
|
1460
|
+
proveByIndex: boolean;
|
|
1453
1461
|
}, {
|
|
1454
1462
|
rootIndex: Struct<number, null>;
|
|
1455
1463
|
proveByIndex: Struct<boolean, null>;
|
|
@@ -1487,8 +1495,6 @@ export declare const ValidityProofResult: Struct<{
|
|
|
1487
1495
|
export declare const ValidityProofResultV2: Struct<{
|
|
1488
1496
|
accounts: {
|
|
1489
1497
|
root: BN;
|
|
1490
|
-
hash: BN;
|
|
1491
|
-
leafIndex: number;
|
|
1492
1498
|
merkleContext: {
|
|
1493
1499
|
cpiContext: PublicKey | null;
|
|
1494
1500
|
tree: PublicKey;
|
|
@@ -1502,9 +1508,11 @@ export declare const ValidityProofResultV2: Struct<{
|
|
|
1502
1508
|
} | null | undefined;
|
|
1503
1509
|
};
|
|
1504
1510
|
rootIndex: {
|
|
1505
|
-
proveByIndex: boolean;
|
|
1506
1511
|
rootIndex: number;
|
|
1512
|
+
proveByIndex: boolean;
|
|
1507
1513
|
};
|
|
1514
|
+
leafIndex: number;
|
|
1515
|
+
hash: BN;
|
|
1508
1516
|
}[];
|
|
1509
1517
|
compressedProof: {
|
|
1510
1518
|
a: number[];
|
|
@@ -1540,8 +1548,6 @@ export declare const ValidityProofResultV2: Struct<{
|
|
|
1540
1548
|
}>;
|
|
1541
1549
|
accounts: Struct<{
|
|
1542
1550
|
root: BN;
|
|
1543
|
-
hash: BN;
|
|
1544
|
-
leafIndex: number;
|
|
1545
1551
|
merkleContext: {
|
|
1546
1552
|
cpiContext: PublicKey | null;
|
|
1547
1553
|
tree: PublicKey;
|
|
@@ -1555,13 +1561,13 @@ export declare const ValidityProofResultV2: Struct<{
|
|
|
1555
1561
|
} | null | undefined;
|
|
1556
1562
|
};
|
|
1557
1563
|
rootIndex: {
|
|
1558
|
-
proveByIndex: boolean;
|
|
1559
1564
|
rootIndex: number;
|
|
1565
|
+
proveByIndex: boolean;
|
|
1560
1566
|
};
|
|
1567
|
+
leafIndex: number;
|
|
1568
|
+
hash: BN;
|
|
1561
1569
|
}[], Struct<{
|
|
1562
1570
|
root: BN;
|
|
1563
|
-
hash: BN;
|
|
1564
|
-
leafIndex: number;
|
|
1565
1571
|
merkleContext: {
|
|
1566
1572
|
cpiContext: PublicKey | null;
|
|
1567
1573
|
tree: PublicKey;
|
|
@@ -1575,15 +1581,17 @@ export declare const ValidityProofResultV2: Struct<{
|
|
|
1575
1581
|
} | null | undefined;
|
|
1576
1582
|
};
|
|
1577
1583
|
rootIndex: {
|
|
1578
|
-
proveByIndex: boolean;
|
|
1579
1584
|
rootIndex: number;
|
|
1585
|
+
proveByIndex: boolean;
|
|
1580
1586
|
};
|
|
1587
|
+
leafIndex: number;
|
|
1588
|
+
hash: BN;
|
|
1581
1589
|
}, {
|
|
1582
1590
|
hash: Struct<BN, null>;
|
|
1583
1591
|
root: Struct<BN, null>;
|
|
1584
1592
|
rootIndex: Struct<{
|
|
1585
|
-
proveByIndex: boolean;
|
|
1586
1593
|
rootIndex: number;
|
|
1594
|
+
proveByIndex: boolean;
|
|
1587
1595
|
}, {
|
|
1588
1596
|
rootIndex: Struct<number, null>;
|
|
1589
1597
|
proveByIndex: Struct<boolean, null>;
|
|
@@ -1689,17 +1697,17 @@ export declare const ValidityProofResultV2: Struct<{
|
|
|
1689
1697
|
*/
|
|
1690
1698
|
export declare const MultipleMerkleProofsResult: Struct<{
|
|
1691
1699
|
root: BN;
|
|
1692
|
-
|
|
1700
|
+
proof: BN[];
|
|
1693
1701
|
leafIndex: number;
|
|
1702
|
+
hash: BN;
|
|
1694
1703
|
merkleTree: PublicKey;
|
|
1695
|
-
proof: BN[];
|
|
1696
1704
|
rootSeq: number;
|
|
1697
1705
|
}[], Struct<{
|
|
1698
1706
|
root: BN;
|
|
1699
|
-
|
|
1707
|
+
proof: BN[];
|
|
1700
1708
|
leafIndex: number;
|
|
1709
|
+
hash: BN;
|
|
1701
1710
|
merkleTree: PublicKey;
|
|
1702
|
-
proof: BN[];
|
|
1703
1711
|
rootSeq: number;
|
|
1704
1712
|
}, {
|
|
1705
1713
|
hash: Struct<BN, null>;
|
|
@@ -1714,10 +1722,10 @@ export declare const MultipleMerkleProofsResult: Struct<{
|
|
|
1714
1722
|
*/
|
|
1715
1723
|
export declare const MultipleMerkleProofsResultV2: Struct<{
|
|
1716
1724
|
root: BN;
|
|
1717
|
-
|
|
1725
|
+
proof: BN[];
|
|
1718
1726
|
leafIndex: number;
|
|
1719
1727
|
proveByIndex: boolean;
|
|
1720
|
-
|
|
1728
|
+
hash: BN;
|
|
1721
1729
|
rootSeq: number;
|
|
1722
1730
|
treeContext: {
|
|
1723
1731
|
cpiContext: PublicKey | null;
|
|
@@ -1733,10 +1741,10 @@ export declare const MultipleMerkleProofsResultV2: Struct<{
|
|
|
1733
1741
|
};
|
|
1734
1742
|
}[], Struct<{
|
|
1735
1743
|
root: BN;
|
|
1736
|
-
|
|
1744
|
+
proof: BN[];
|
|
1737
1745
|
leafIndex: number;
|
|
1738
1746
|
proveByIndex: boolean;
|
|
1739
|
-
|
|
1747
|
+
hash: BN;
|
|
1740
1748
|
rootSeq: number;
|
|
1741
1749
|
treeContext: {
|
|
1742
1750
|
cpiContext: PublicKey | null;
|
|
@@ -1861,8 +1869,8 @@ export declare const CompressedMintTokenHoldersResult: Struct<{
|
|
|
1861
1869
|
}>;
|
|
1862
1870
|
export declare const AccountProofResult: Struct<{
|
|
1863
1871
|
root: number[];
|
|
1864
|
-
hash: number[];
|
|
1865
1872
|
proof: number[][];
|
|
1873
|
+
hash: number[];
|
|
1866
1874
|
}, {
|
|
1867
1875
|
hash: Struct<number[], Struct<number, null>>;
|
|
1868
1876
|
root: Struct<number[], Struct<number, null>>;
|
|
@@ -1922,16 +1930,16 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
1922
1930
|
account: {
|
|
1923
1931
|
data: {
|
|
1924
1932
|
data: string;
|
|
1925
|
-
dataHash: BN;
|
|
1926
1933
|
discriminator: BN;
|
|
1934
|
+
dataHash: BN;
|
|
1927
1935
|
} | null;
|
|
1928
|
-
tree: PublicKey;
|
|
1929
|
-
address: number[] | null;
|
|
1930
|
-
hash: BN;
|
|
1931
1936
|
lamports: BN;
|
|
1932
1937
|
owner: PublicKey;
|
|
1938
|
+
address: number[] | null;
|
|
1933
1939
|
leafIndex: number;
|
|
1934
1940
|
seq: BN | null;
|
|
1941
|
+
tree: PublicKey;
|
|
1942
|
+
hash: BN;
|
|
1935
1943
|
slotCreated: BN;
|
|
1936
1944
|
};
|
|
1937
1945
|
optionalTokenData: {
|
|
@@ -1946,16 +1954,16 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
1946
1954
|
account: {
|
|
1947
1955
|
data: {
|
|
1948
1956
|
data: string;
|
|
1949
|
-
dataHash: BN;
|
|
1950
1957
|
discriminator: BN;
|
|
1958
|
+
dataHash: BN;
|
|
1951
1959
|
} | null;
|
|
1952
|
-
tree: PublicKey;
|
|
1953
|
-
address: number[] | null;
|
|
1954
|
-
hash: BN;
|
|
1955
1960
|
lamports: BN;
|
|
1956
1961
|
owner: PublicKey;
|
|
1962
|
+
address: number[] | null;
|
|
1957
1963
|
leafIndex: number;
|
|
1958
1964
|
seq: BN | null;
|
|
1965
|
+
tree: PublicKey;
|
|
1966
|
+
hash: BN;
|
|
1959
1967
|
slotCreated: BN;
|
|
1960
1968
|
};
|
|
1961
1969
|
optionalTokenData: {
|
|
@@ -1974,16 +1982,16 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
1974
1982
|
account: {
|
|
1975
1983
|
data: {
|
|
1976
1984
|
data: string;
|
|
1977
|
-
dataHash: BN;
|
|
1978
1985
|
discriminator: BN;
|
|
1986
|
+
dataHash: BN;
|
|
1979
1987
|
} | null;
|
|
1980
|
-
tree: PublicKey;
|
|
1981
|
-
address: number[] | null;
|
|
1982
|
-
hash: BN;
|
|
1983
1988
|
lamports: BN;
|
|
1984
1989
|
owner: PublicKey;
|
|
1990
|
+
address: number[] | null;
|
|
1985
1991
|
leafIndex: number;
|
|
1986
1992
|
seq: BN | null;
|
|
1993
|
+
tree: PublicKey;
|
|
1994
|
+
hash: BN;
|
|
1987
1995
|
slotCreated: BN;
|
|
1988
1996
|
};
|
|
1989
1997
|
optionalTokenData: {
|
|
@@ -1998,16 +2006,16 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
1998
2006
|
account: {
|
|
1999
2007
|
data: {
|
|
2000
2008
|
data: string;
|
|
2001
|
-
dataHash: BN;
|
|
2002
2009
|
discriminator: BN;
|
|
2010
|
+
dataHash: BN;
|
|
2003
2011
|
} | null;
|
|
2004
|
-
tree: PublicKey;
|
|
2005
|
-
address: number[] | null;
|
|
2006
|
-
hash: BN;
|
|
2007
2012
|
lamports: BN;
|
|
2008
2013
|
owner: PublicKey;
|
|
2014
|
+
address: number[] | null;
|
|
2009
2015
|
leafIndex: number;
|
|
2010
2016
|
seq: BN | null;
|
|
2017
|
+
tree: PublicKey;
|
|
2018
|
+
hash: BN;
|
|
2011
2019
|
slotCreated: BN;
|
|
2012
2020
|
};
|
|
2013
2021
|
optionalTokenData: {
|
|
@@ -2023,16 +2031,16 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
2023
2031
|
account: {
|
|
2024
2032
|
data: {
|
|
2025
2033
|
data: string;
|
|
2026
|
-
dataHash: BN;
|
|
2027
2034
|
discriminator: BN;
|
|
2035
|
+
dataHash: BN;
|
|
2028
2036
|
} | null;
|
|
2029
|
-
tree: PublicKey;
|
|
2030
|
-
address: number[] | null;
|
|
2031
|
-
hash: BN;
|
|
2032
2037
|
lamports: BN;
|
|
2033
2038
|
owner: PublicKey;
|
|
2039
|
+
address: number[] | null;
|
|
2034
2040
|
leafIndex: number;
|
|
2035
2041
|
seq: BN | null;
|
|
2042
|
+
tree: PublicKey;
|
|
2043
|
+
hash: BN;
|
|
2036
2044
|
slotCreated: BN;
|
|
2037
2045
|
};
|
|
2038
2046
|
optionalTokenData: {
|
|
@@ -2046,16 +2054,16 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
2046
2054
|
account: {
|
|
2047
2055
|
data: {
|
|
2048
2056
|
data: string;
|
|
2049
|
-
dataHash: BN;
|
|
2050
2057
|
discriminator: BN;
|
|
2058
|
+
dataHash: BN;
|
|
2051
2059
|
} | null;
|
|
2052
|
-
tree: PublicKey;
|
|
2053
|
-
address: number[] | null;
|
|
2054
|
-
hash: BN;
|
|
2055
2060
|
lamports: BN;
|
|
2056
2061
|
owner: PublicKey;
|
|
2062
|
+
address: number[] | null;
|
|
2057
2063
|
leafIndex: number;
|
|
2058
2064
|
seq: BN | null;
|
|
2065
|
+
tree: PublicKey;
|
|
2066
|
+
hash: BN;
|
|
2059
2067
|
slotCreated: BN;
|
|
2060
2068
|
};
|
|
2061
2069
|
optionalTokenData: {
|
|
@@ -2069,24 +2077,24 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
2069
2077
|
account: Struct<{
|
|
2070
2078
|
data: {
|
|
2071
2079
|
data: string;
|
|
2072
|
-
dataHash: BN;
|
|
2073
2080
|
discriminator: BN;
|
|
2081
|
+
dataHash: BN;
|
|
2074
2082
|
} | null;
|
|
2075
|
-
tree: PublicKey;
|
|
2076
|
-
address: number[] | null;
|
|
2077
|
-
hash: BN;
|
|
2078
2083
|
lamports: BN;
|
|
2079
2084
|
owner: PublicKey;
|
|
2085
|
+
address: number[] | null;
|
|
2080
2086
|
leafIndex: number;
|
|
2081
2087
|
seq: BN | null;
|
|
2088
|
+
tree: PublicKey;
|
|
2089
|
+
hash: BN;
|
|
2082
2090
|
slotCreated: BN;
|
|
2083
2091
|
}, {
|
|
2084
2092
|
address: Struct<number[] | null, null>;
|
|
2085
2093
|
hash: Struct<BN, null>;
|
|
2086
2094
|
data: Struct<{
|
|
2087
2095
|
data: string;
|
|
2088
|
-
dataHash: BN;
|
|
2089
2096
|
discriminator: BN;
|
|
2097
|
+
dataHash: BN;
|
|
2090
2098
|
} | null, {
|
|
2091
2099
|
data: Struct<string, null>;
|
|
2092
2100
|
dataHash: Struct<BN, null>;
|
|
@@ -2117,16 +2125,16 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
2117
2125
|
account: {
|
|
2118
2126
|
data: {
|
|
2119
2127
|
data: string;
|
|
2120
|
-
dataHash: BN;
|
|
2121
2128
|
discriminator: BN;
|
|
2129
|
+
dataHash: BN;
|
|
2122
2130
|
} | null;
|
|
2123
|
-
tree: PublicKey;
|
|
2124
|
-
address: number[] | null;
|
|
2125
|
-
hash: BN;
|
|
2126
2131
|
lamports: BN;
|
|
2127
2132
|
owner: PublicKey;
|
|
2133
|
+
address: number[] | null;
|
|
2128
2134
|
leafIndex: number;
|
|
2129
2135
|
seq: BN | null;
|
|
2136
|
+
tree: PublicKey;
|
|
2137
|
+
hash: BN;
|
|
2130
2138
|
slotCreated: BN;
|
|
2131
2139
|
};
|
|
2132
2140
|
optionalTokenData: {
|
|
@@ -2140,16 +2148,16 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
2140
2148
|
account: {
|
|
2141
2149
|
data: {
|
|
2142
2150
|
data: string;
|
|
2143
|
-
dataHash: BN;
|
|
2144
2151
|
discriminator: BN;
|
|
2152
|
+
dataHash: BN;
|
|
2145
2153
|
} | null;
|
|
2146
|
-
tree: PublicKey;
|
|
2147
|
-
address: number[] | null;
|
|
2148
|
-
hash: BN;
|
|
2149
2154
|
lamports: BN;
|
|
2150
2155
|
owner: PublicKey;
|
|
2156
|
+
address: number[] | null;
|
|
2151
2157
|
leafIndex: number;
|
|
2152
2158
|
seq: BN | null;
|
|
2159
|
+
tree: PublicKey;
|
|
2160
|
+
hash: BN;
|
|
2153
2161
|
slotCreated: BN;
|
|
2154
2162
|
};
|
|
2155
2163
|
optionalTokenData: {
|
|
@@ -2163,24 +2171,24 @@ export declare const CompressedTransactionResult: Struct<{
|
|
|
2163
2171
|
account: Struct<{
|
|
2164
2172
|
data: {
|
|
2165
2173
|
data: string;
|
|
2166
|
-
dataHash: BN;
|
|
2167
2174
|
discriminator: BN;
|
|
2175
|
+
dataHash: BN;
|
|
2168
2176
|
} | null;
|
|
2169
|
-
tree: PublicKey;
|
|
2170
|
-
address: number[] | null;
|
|
2171
|
-
hash: BN;
|
|
2172
2177
|
lamports: BN;
|
|
2173
2178
|
owner: PublicKey;
|
|
2179
|
+
address: number[] | null;
|
|
2174
2180
|
leafIndex: number;
|
|
2175
2181
|
seq: BN | null;
|
|
2182
|
+
tree: PublicKey;
|
|
2183
|
+
hash: BN;
|
|
2176
2184
|
slotCreated: BN;
|
|
2177
2185
|
}, {
|
|
2178
2186
|
address: Struct<number[] | null, null>;
|
|
2179
2187
|
hash: Struct<BN, null>;
|
|
2180
2188
|
data: Struct<{
|
|
2181
2189
|
data: string;
|
|
2182
|
-
dataHash: BN;
|
|
2183
2190
|
discriminator: BN;
|
|
2191
|
+
dataHash: BN;
|
|
2184
2192
|
} | null, {
|
|
2185
2193
|
data: Struct<string, null>;
|
|
2186
2194
|
dataHash: Struct<BN, null>;
|
|
@@ -2220,16 +2228,12 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2220
2228
|
account: {
|
|
2221
2229
|
data: {
|
|
2222
2230
|
data: string;
|
|
2223
|
-
dataHash: BN;
|
|
2224
2231
|
discriminator: BN;
|
|
2232
|
+
dataHash: BN;
|
|
2225
2233
|
} | null;
|
|
2226
|
-
address: number[] | null;
|
|
2227
|
-
hash: BN;
|
|
2228
2234
|
lamports: BN;
|
|
2229
2235
|
owner: PublicKey;
|
|
2230
|
-
|
|
2231
|
-
seq: BN | null;
|
|
2232
|
-
slotCreated: BN;
|
|
2236
|
+
address: number[] | null;
|
|
2233
2237
|
merkleContext: {
|
|
2234
2238
|
cpiContext: PublicKey | null;
|
|
2235
2239
|
tree: PublicKey;
|
|
@@ -2242,7 +2246,11 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2242
2246
|
treeType: number;
|
|
2243
2247
|
} | null | undefined;
|
|
2244
2248
|
};
|
|
2249
|
+
leafIndex: number;
|
|
2245
2250
|
proveByIndex: boolean;
|
|
2251
|
+
seq: BN | null;
|
|
2252
|
+
hash: BN;
|
|
2253
|
+
slotCreated: BN;
|
|
2246
2254
|
};
|
|
2247
2255
|
txHash: BN;
|
|
2248
2256
|
nullifier: BN;
|
|
@@ -2259,16 +2267,12 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2259
2267
|
account: {
|
|
2260
2268
|
data: {
|
|
2261
2269
|
data: string;
|
|
2262
|
-
dataHash: BN;
|
|
2263
2270
|
discriminator: BN;
|
|
2271
|
+
dataHash: BN;
|
|
2264
2272
|
} | null;
|
|
2265
|
-
address: number[] | null;
|
|
2266
|
-
hash: BN;
|
|
2267
2273
|
lamports: BN;
|
|
2268
2274
|
owner: PublicKey;
|
|
2269
|
-
|
|
2270
|
-
seq: BN | null;
|
|
2271
|
-
slotCreated: BN;
|
|
2275
|
+
address: number[] | null;
|
|
2272
2276
|
merkleContext: {
|
|
2273
2277
|
cpiContext: PublicKey | null;
|
|
2274
2278
|
tree: PublicKey;
|
|
@@ -2281,7 +2285,11 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2281
2285
|
treeType: number;
|
|
2282
2286
|
} | null | undefined;
|
|
2283
2287
|
};
|
|
2288
|
+
leafIndex: number;
|
|
2284
2289
|
proveByIndex: boolean;
|
|
2290
|
+
seq: BN | null;
|
|
2291
|
+
hash: BN;
|
|
2292
|
+
slotCreated: BN;
|
|
2285
2293
|
};
|
|
2286
2294
|
optionalTokenData: {
|
|
2287
2295
|
owner: PublicKey;
|
|
@@ -2300,16 +2308,12 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2300
2308
|
account: {
|
|
2301
2309
|
data: {
|
|
2302
2310
|
data: string;
|
|
2303
|
-
dataHash: BN;
|
|
2304
2311
|
discriminator: BN;
|
|
2312
|
+
dataHash: BN;
|
|
2305
2313
|
} | null;
|
|
2306
|
-
address: number[] | null;
|
|
2307
|
-
hash: BN;
|
|
2308
2314
|
lamports: BN;
|
|
2309
2315
|
owner: PublicKey;
|
|
2310
|
-
|
|
2311
|
-
seq: BN | null;
|
|
2312
|
-
slotCreated: BN;
|
|
2316
|
+
address: number[] | null;
|
|
2313
2317
|
merkleContext: {
|
|
2314
2318
|
cpiContext: PublicKey | null;
|
|
2315
2319
|
tree: PublicKey;
|
|
@@ -2322,7 +2326,11 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2322
2326
|
treeType: number;
|
|
2323
2327
|
} | null | undefined;
|
|
2324
2328
|
};
|
|
2329
|
+
leafIndex: number;
|
|
2325
2330
|
proveByIndex: boolean;
|
|
2331
|
+
seq: BN | null;
|
|
2332
|
+
hash: BN;
|
|
2333
|
+
slotCreated: BN;
|
|
2326
2334
|
};
|
|
2327
2335
|
txHash: BN;
|
|
2328
2336
|
nullifier: BN;
|
|
@@ -2339,16 +2347,12 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2339
2347
|
account: {
|
|
2340
2348
|
data: {
|
|
2341
2349
|
data: string;
|
|
2342
|
-
dataHash: BN;
|
|
2343
2350
|
discriminator: BN;
|
|
2351
|
+
dataHash: BN;
|
|
2344
2352
|
} | null;
|
|
2345
|
-
address: number[] | null;
|
|
2346
|
-
hash: BN;
|
|
2347
2353
|
lamports: BN;
|
|
2348
2354
|
owner: PublicKey;
|
|
2349
|
-
|
|
2350
|
-
seq: BN | null;
|
|
2351
|
-
slotCreated: BN;
|
|
2355
|
+
address: number[] | null;
|
|
2352
2356
|
merkleContext: {
|
|
2353
2357
|
cpiContext: PublicKey | null;
|
|
2354
2358
|
tree: PublicKey;
|
|
@@ -2361,7 +2365,11 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2361
2365
|
treeType: number;
|
|
2362
2366
|
} | null | undefined;
|
|
2363
2367
|
};
|
|
2368
|
+
leafIndex: number;
|
|
2364
2369
|
proveByIndex: boolean;
|
|
2370
|
+
seq: BN | null;
|
|
2371
|
+
hash: BN;
|
|
2372
|
+
slotCreated: BN;
|
|
2365
2373
|
};
|
|
2366
2374
|
optionalTokenData: {
|
|
2367
2375
|
owner: PublicKey;
|
|
@@ -2377,16 +2385,12 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2377
2385
|
account: {
|
|
2378
2386
|
data: {
|
|
2379
2387
|
data: string;
|
|
2380
|
-
dataHash: BN;
|
|
2381
2388
|
discriminator: BN;
|
|
2389
|
+
dataHash: BN;
|
|
2382
2390
|
} | null;
|
|
2383
|
-
address: number[] | null;
|
|
2384
|
-
hash: BN;
|
|
2385
2391
|
lamports: BN;
|
|
2386
2392
|
owner: PublicKey;
|
|
2387
|
-
|
|
2388
|
-
seq: BN | null;
|
|
2389
|
-
slotCreated: BN;
|
|
2393
|
+
address: number[] | null;
|
|
2390
2394
|
merkleContext: {
|
|
2391
2395
|
cpiContext: PublicKey | null;
|
|
2392
2396
|
tree: PublicKey;
|
|
@@ -2399,7 +2403,11 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2399
2403
|
treeType: number;
|
|
2400
2404
|
} | null | undefined;
|
|
2401
2405
|
};
|
|
2406
|
+
leafIndex: number;
|
|
2402
2407
|
proveByIndex: boolean;
|
|
2408
|
+
seq: BN | null;
|
|
2409
|
+
hash: BN;
|
|
2410
|
+
slotCreated: BN;
|
|
2403
2411
|
};
|
|
2404
2412
|
txHash: BN;
|
|
2405
2413
|
nullifier: BN;
|
|
@@ -2416,16 +2424,12 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2416
2424
|
account: {
|
|
2417
2425
|
data: {
|
|
2418
2426
|
data: string;
|
|
2419
|
-
dataHash: BN;
|
|
2420
2427
|
discriminator: BN;
|
|
2428
|
+
dataHash: BN;
|
|
2421
2429
|
} | null;
|
|
2422
|
-
address: number[] | null;
|
|
2423
|
-
hash: BN;
|
|
2424
2430
|
lamports: BN;
|
|
2425
2431
|
owner: PublicKey;
|
|
2426
|
-
|
|
2427
|
-
seq: BN | null;
|
|
2428
|
-
slotCreated: BN;
|
|
2432
|
+
address: number[] | null;
|
|
2429
2433
|
merkleContext: {
|
|
2430
2434
|
cpiContext: PublicKey | null;
|
|
2431
2435
|
tree: PublicKey;
|
|
@@ -2438,7 +2442,11 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2438
2442
|
treeType: number;
|
|
2439
2443
|
} | null | undefined;
|
|
2440
2444
|
};
|
|
2445
|
+
leafIndex: number;
|
|
2441
2446
|
proveByIndex: boolean;
|
|
2447
|
+
seq: BN | null;
|
|
2448
|
+
hash: BN;
|
|
2449
|
+
slotCreated: BN;
|
|
2442
2450
|
};
|
|
2443
2451
|
txHash: BN;
|
|
2444
2452
|
nullifier: BN;
|
|
@@ -2455,16 +2463,12 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2455
2463
|
account: {
|
|
2456
2464
|
data: {
|
|
2457
2465
|
data: string;
|
|
2458
|
-
dataHash: BN;
|
|
2459
2466
|
discriminator: BN;
|
|
2467
|
+
dataHash: BN;
|
|
2460
2468
|
} | null;
|
|
2461
|
-
address: number[] | null;
|
|
2462
|
-
hash: BN;
|
|
2463
2469
|
lamports: BN;
|
|
2464
2470
|
owner: PublicKey;
|
|
2465
|
-
|
|
2466
|
-
seq: BN | null;
|
|
2467
|
-
slotCreated: BN;
|
|
2471
|
+
address: number[] | null;
|
|
2468
2472
|
merkleContext: {
|
|
2469
2473
|
cpiContext: PublicKey | null;
|
|
2470
2474
|
tree: PublicKey;
|
|
@@ -2477,7 +2481,11 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2477
2481
|
treeType: number;
|
|
2478
2482
|
} | null | undefined;
|
|
2479
2483
|
};
|
|
2484
|
+
leafIndex: number;
|
|
2480
2485
|
proveByIndex: boolean;
|
|
2486
|
+
seq: BN | null;
|
|
2487
|
+
hash: BN;
|
|
2488
|
+
slotCreated: BN;
|
|
2481
2489
|
};
|
|
2482
2490
|
txHash: BN;
|
|
2483
2491
|
nullifier: BN;
|
|
@@ -2485,16 +2493,12 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2485
2493
|
account: Struct<{
|
|
2486
2494
|
data: {
|
|
2487
2495
|
data: string;
|
|
2488
|
-
dataHash: BN;
|
|
2489
2496
|
discriminator: BN;
|
|
2497
|
+
dataHash: BN;
|
|
2490
2498
|
} | null;
|
|
2491
|
-
address: number[] | null;
|
|
2492
|
-
hash: BN;
|
|
2493
2499
|
lamports: BN;
|
|
2494
2500
|
owner: PublicKey;
|
|
2495
|
-
|
|
2496
|
-
seq: BN | null;
|
|
2497
|
-
slotCreated: BN;
|
|
2501
|
+
address: number[] | null;
|
|
2498
2502
|
merkleContext: {
|
|
2499
2503
|
cpiContext: PublicKey | null;
|
|
2500
2504
|
tree: PublicKey;
|
|
@@ -2507,14 +2511,18 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2507
2511
|
treeType: number;
|
|
2508
2512
|
} | null | undefined;
|
|
2509
2513
|
};
|
|
2514
|
+
leafIndex: number;
|
|
2510
2515
|
proveByIndex: boolean;
|
|
2516
|
+
seq: BN | null;
|
|
2517
|
+
hash: BN;
|
|
2518
|
+
slotCreated: BN;
|
|
2511
2519
|
}, {
|
|
2512
2520
|
address: Struct<number[] | null, null>;
|
|
2513
2521
|
hash: Struct<BN, null>;
|
|
2514
2522
|
data: Struct<{
|
|
2515
2523
|
data: string;
|
|
2516
|
-
dataHash: BN;
|
|
2517
2524
|
discriminator: BN;
|
|
2525
|
+
dataHash: BN;
|
|
2518
2526
|
} | null, {
|
|
2519
2527
|
data: Struct<string, null>;
|
|
2520
2528
|
dataHash: Struct<BN, null>;
|
|
@@ -2576,16 +2584,12 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2576
2584
|
account: {
|
|
2577
2585
|
data: {
|
|
2578
2586
|
data: string;
|
|
2579
|
-
dataHash: BN;
|
|
2580
2587
|
discriminator: BN;
|
|
2588
|
+
dataHash: BN;
|
|
2581
2589
|
} | null;
|
|
2582
|
-
address: number[] | null;
|
|
2583
|
-
hash: BN;
|
|
2584
2590
|
lamports: BN;
|
|
2585
2591
|
owner: PublicKey;
|
|
2586
|
-
|
|
2587
|
-
seq: BN | null;
|
|
2588
|
-
slotCreated: BN;
|
|
2592
|
+
address: number[] | null;
|
|
2589
2593
|
merkleContext: {
|
|
2590
2594
|
cpiContext: PublicKey | null;
|
|
2591
2595
|
tree: PublicKey;
|
|
@@ -2598,7 +2602,11 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2598
2602
|
treeType: number;
|
|
2599
2603
|
} | null | undefined;
|
|
2600
2604
|
};
|
|
2605
|
+
leafIndex: number;
|
|
2601
2606
|
proveByIndex: boolean;
|
|
2607
|
+
seq: BN | null;
|
|
2608
|
+
hash: BN;
|
|
2609
|
+
slotCreated: BN;
|
|
2602
2610
|
};
|
|
2603
2611
|
optionalTokenData: {
|
|
2604
2612
|
owner: PublicKey;
|
|
@@ -2611,16 +2619,12 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2611
2619
|
account: {
|
|
2612
2620
|
data: {
|
|
2613
2621
|
data: string;
|
|
2614
|
-
dataHash: BN;
|
|
2615
2622
|
discriminator: BN;
|
|
2623
|
+
dataHash: BN;
|
|
2616
2624
|
} | null;
|
|
2617
|
-
address: number[] | null;
|
|
2618
|
-
hash: BN;
|
|
2619
2625
|
lamports: BN;
|
|
2620
2626
|
owner: PublicKey;
|
|
2621
|
-
|
|
2622
|
-
seq: BN | null;
|
|
2623
|
-
slotCreated: BN;
|
|
2627
|
+
address: number[] | null;
|
|
2624
2628
|
merkleContext: {
|
|
2625
2629
|
cpiContext: PublicKey | null;
|
|
2626
2630
|
tree: PublicKey;
|
|
@@ -2633,7 +2637,11 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2633
2637
|
treeType: number;
|
|
2634
2638
|
} | null | undefined;
|
|
2635
2639
|
};
|
|
2640
|
+
leafIndex: number;
|
|
2636
2641
|
proveByIndex: boolean;
|
|
2642
|
+
seq: BN | null;
|
|
2643
|
+
hash: BN;
|
|
2644
|
+
slotCreated: BN;
|
|
2637
2645
|
};
|
|
2638
2646
|
optionalTokenData: {
|
|
2639
2647
|
owner: PublicKey;
|
|
@@ -2646,16 +2654,12 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2646
2654
|
account: Struct<{
|
|
2647
2655
|
data: {
|
|
2648
2656
|
data: string;
|
|
2649
|
-
dataHash: BN;
|
|
2650
2657
|
discriminator: BN;
|
|
2658
|
+
dataHash: BN;
|
|
2651
2659
|
} | null;
|
|
2652
|
-
address: number[] | null;
|
|
2653
|
-
hash: BN;
|
|
2654
2660
|
lamports: BN;
|
|
2655
2661
|
owner: PublicKey;
|
|
2656
|
-
|
|
2657
|
-
seq: BN | null;
|
|
2658
|
-
slotCreated: BN;
|
|
2662
|
+
address: number[] | null;
|
|
2659
2663
|
merkleContext: {
|
|
2660
2664
|
cpiContext: PublicKey | null;
|
|
2661
2665
|
tree: PublicKey;
|
|
@@ -2668,14 +2672,18 @@ export declare const CompressedTransactionResultV2: Struct<{
|
|
|
2668
2672
|
treeType: number;
|
|
2669
2673
|
} | null | undefined;
|
|
2670
2674
|
};
|
|
2675
|
+
leafIndex: number;
|
|
2671
2676
|
proveByIndex: boolean;
|
|
2677
|
+
seq: BN | null;
|
|
2678
|
+
hash: BN;
|
|
2679
|
+
slotCreated: BN;
|
|
2672
2680
|
}, {
|
|
2673
2681
|
address: Struct<number[] | null, null>;
|
|
2674
2682
|
hash: Struct<BN, null>;
|
|
2675
2683
|
data: Struct<{
|
|
2676
2684
|
data: string;
|
|
2677
|
-
dataHash: BN;
|
|
2678
2685
|
discriminator: BN;
|
|
2686
|
+
dataHash: BN;
|
|
2679
2687
|
} | null, {
|
|
2680
2688
|
data: Struct<string, null>;
|
|
2681
2689
|
dataHash: Struct<BN, null>;
|
|
@@ -2761,6 +2769,15 @@ export interface CompressionApiInterface {
|
|
|
2761
2769
|
getLatestCompressionSignatures(cursor?: string, limit?: number): Promise<LatestNonVotingSignaturesPaginated>;
|
|
2762
2770
|
getIndexerHealth(): Promise<string>;
|
|
2763
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>;
|
|
2764
2781
|
}
|
|
2765
2782
|
export type RpcResultSuccess<T> = {
|
|
2766
2783
|
jsonrpc: '2.0';
|
|
@@ -2777,3 +2794,80 @@ export type RpcResultError = {
|
|
|
2777
2794
|
};
|
|
2778
2795
|
};
|
|
2779
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
|
+
}
|