@lightprotocol/stateless.js 0.22.1-alpha.0 → 0.22.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/browser/constants.d.ts +19 -4
- 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 +275 -275
- package/dist/cjs/browser/rpc.d.ts +6 -16
- package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +6 -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/index.d.ts +1 -1
- package/dist/cjs/browser/utils/instruction.d.ts +35 -0
- package/dist/cjs/node/constants.d.ts +19 -4
- 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 +275 -275
- package/dist/cjs/node/rpc.d.ts +6 -16
- package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +6 -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/index.d.ts +1 -1
- package/dist/cjs/node/utils/instruction.d.ts +35 -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 +157 -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 +2779 -0
- package/dist/es/browser/rpc.d.ts +284 -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 +40 -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 +239 -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 +48 -0
- package/dist/es/browser/utils/index.d.ts +13 -0
- package/dist/es/browser/utils/instruction.d.ts +35 -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 +109 -667
- package/package.json +16 -8
- 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
package/dist/types/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
|
-
import { PublicKey, Connection, Commitment, Keypair, Signer, TransactionInstruction, AddressLookupTableAccount, VersionedTransaction, ConfirmOptions, TransactionSignature, RpcResponseAndContext, SignatureResult,
|
|
2
|
+
import { PublicKey, Connection, Commitment, Keypair, Signer, AccountMeta, TransactionInstruction, AddressLookupTableAccount, VersionedTransaction, ConfirmOptions, TransactionSignature, RpcResponseAndContext, SignatureResult, DataSlice, MemcmpFilter, ConnectionConfig, ParsedTransactionWithMeta } from '@solana/web3.js';
|
|
3
3
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
4
4
|
import { Struct } from 'superstruct';
|
|
5
5
|
import BN from 'bn.js';
|
|
6
6
|
import * as buffer_layout from 'buffer-layout';
|
|
7
|
-
import * as borsh from '@coral-xyz/borsh';
|
|
8
7
|
import { Layout } from '@coral-xyz/borsh';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -21,30 +20,18 @@ declare function encodeBN254toBase58(bigintNumber: BN): string;
|
|
|
21
20
|
|
|
22
21
|
declare const bn: (number: string | number | BN | Buffer$1 | Uint8Array | number[], base?: number | "hex" | undefined, endian?: BN.Endianness | undefined) => BN;
|
|
23
22
|
|
|
24
|
-
/**
|
|
25
|
-
* Derive an address for a compressed account from a seed and an address Merkle
|
|
26
|
-
* tree public key.
|
|
27
|
-
*
|
|
28
|
-
* @param seed 32 bytes seed to derive the address from
|
|
29
|
-
* @param addressMerkleTreePubkey Address Merkle tree public key as bytes.
|
|
30
|
-
* @param programIdBytes Program ID bytes.
|
|
31
|
-
* @returns Derived address as bytes
|
|
32
|
-
*/
|
|
33
|
-
declare function deriveAddressV2(seed: Uint8Array, addressMerkleTreePubkey: Uint8Array, programIdBytes: Uint8Array): Uint8Array;
|
|
34
|
-
declare function hashVWithBumpSeed(bytes: Uint8Array[]): Uint8Array;
|
|
35
23
|
declare function deriveAddressSeed(seeds: Uint8Array[], programId: PublicKey): Uint8Array;
|
|
24
|
+
declare function deriveAddress(seed: Uint8Array, addressMerkleTreePubkey?: PublicKey): PublicKey;
|
|
25
|
+
declare function deriveAddressSeedV2(seeds: Uint8Array[]): Uint8Array;
|
|
36
26
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* Derive an address for a compressed account from a seed and an address Merkle
|
|
40
|
-
* tree public key.
|
|
27
|
+
* Derives an address from a seed using the v2 method (matching Rust's derive_address_from_seed)
|
|
41
28
|
*
|
|
42
|
-
* @param
|
|
43
|
-
* @param addressMerkleTreePubkey Merkle tree public key
|
|
44
|
-
*
|
|
29
|
+
* @param addressSeed The address seed (32 bytes)
|
|
30
|
+
* @param addressMerkleTreePubkey Merkle tree public key
|
|
31
|
+
* @param programId Program ID
|
|
45
32
|
* @returns Derived address
|
|
46
33
|
*/
|
|
47
|
-
declare function
|
|
34
|
+
declare function deriveAddressV2(addressSeed: Uint8Array, addressMerkleTreePubkey: PublicKey, programId: PublicKey): PublicKey;
|
|
48
35
|
interface NewAddressParams {
|
|
49
36
|
/**
|
|
50
37
|
* Seed for the compressed account. Must be seed used to derive
|
|
@@ -131,8 +118,8 @@ declare const toCamelCase: (object: any) => any;
|
|
|
131
118
|
* @deprecated Use `hashvToBn254FieldSizeBe` instead.
|
|
132
119
|
*/
|
|
133
120
|
declare function hashToBn254FieldSizeBe(bytes: Buffer$1): [Buffer$1, number] | null;
|
|
121
|
+
declare function hashvToBn254FieldSizeBeU8Array(bytes: Uint8Array[]): Uint8Array;
|
|
134
122
|
/**
|
|
135
|
-
* TODO: make consistent with latest rust. (use u8::max bumpseed)
|
|
136
123
|
* Hash the provided `bytes` with Keccak256 and ensure that the result fits in
|
|
137
124
|
* the BN254 prime field by truncating the resulting hash to 31 bytes.
|
|
138
125
|
*
|
|
@@ -148,6 +135,41 @@ declare function convertInvokeCpiWithReadOnlyToInvoke(data: any): InstructionDat
|
|
|
148
135
|
/** @internal remove signer from signers if part of signers */
|
|
149
136
|
declare function dedupeSigner(signer: Signer, signers: Signer[]): Signer[];
|
|
150
137
|
|
|
138
|
+
declare class PackedAccounts {
|
|
139
|
+
private preAccounts;
|
|
140
|
+
private systemAccounts;
|
|
141
|
+
private nextIndex;
|
|
142
|
+
private map;
|
|
143
|
+
static newWithSystemAccounts(config: SystemAccountMetaConfig): PackedAccounts;
|
|
144
|
+
static newWithSystemAccountsV2(config: SystemAccountMetaConfig): PackedAccounts;
|
|
145
|
+
addPreAccountsSigner(pubkey: PublicKey): void;
|
|
146
|
+
addPreAccountsSignerMut(pubkey: PublicKey): void;
|
|
147
|
+
addPreAccountsMeta(accountMeta: AccountMeta): void;
|
|
148
|
+
addSystemAccounts(config: SystemAccountMetaConfig): void;
|
|
149
|
+
addSystemAccountsV2(config: SystemAccountMetaConfig): void;
|
|
150
|
+
insertOrGet(pubkey: PublicKey): number;
|
|
151
|
+
insertOrGetReadOnly(pubkey: PublicKey): number;
|
|
152
|
+
insertOrGetConfig(pubkey: PublicKey, isSigner: boolean, isWritable: boolean): number;
|
|
153
|
+
private hashSetAccountsToMetas;
|
|
154
|
+
private getOffsets;
|
|
155
|
+
toAccountMetas(): {
|
|
156
|
+
remainingAccounts: AccountMeta[];
|
|
157
|
+
systemStart: number;
|
|
158
|
+
packedStart: number;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
declare class SystemAccountMetaConfig {
|
|
162
|
+
selfProgram: PublicKey;
|
|
163
|
+
cpiContext?: PublicKey;
|
|
164
|
+
solCompressionRecipient?: PublicKey;
|
|
165
|
+
solPoolPda?: PublicKey;
|
|
166
|
+
private constructor();
|
|
167
|
+
static new(selfProgram: PublicKey): SystemAccountMetaConfig;
|
|
168
|
+
static newWithCpiContext(selfProgram: PublicKey, cpiContext: PublicKey): SystemAccountMetaConfig;
|
|
169
|
+
}
|
|
170
|
+
declare function getLightSystemAccountMetas(config: SystemAccountMetaConfig): AccountMeta[];
|
|
171
|
+
declare function getLightSystemAccountMetasV2(config: SystemAccountMetaConfig): AccountMeta[];
|
|
172
|
+
|
|
151
173
|
interface GnarkProofJson {
|
|
152
174
|
ar: string[];
|
|
153
175
|
bs: string[][];
|
|
@@ -394,13 +416,28 @@ declare const cpiContextPubkey = "cpi1uHzrEhBG733DoEJNgHCyRS3XmmyVNZx5fonubE4";
|
|
|
394
416
|
declare const merkletreePubkey = "smt1NamzXdq4AMqS2fS2F1i5KTYPZRhoHgWx38d8WsT";
|
|
395
417
|
declare const addressTree = "amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2";
|
|
396
418
|
declare const addressQueue = "aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F";
|
|
397
|
-
declare const addressTreeV2: PublicKey;
|
|
398
419
|
declare const merkleTree2Pubkey = "smt2rJAFdyJJupwMKAqTNAJwvjhmiZ4JYGZmbVRw1Ho";
|
|
399
420
|
declare const nullifierQueue2Pubkey = "nfq2hgS7NYemXsFaFUCe3EMXSDSfnZnAe27jC6aPP1X";
|
|
400
421
|
declare const cpiContext2Pubkey = "cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK";
|
|
401
|
-
declare const
|
|
402
|
-
declare const
|
|
403
|
-
declare const
|
|
422
|
+
declare const batchMerkleTree1 = "bmt1LryLZUMmF7ZtqESaw7wifBXLfXHQYoE4GAmrahU";
|
|
423
|
+
declare const batchQueue1 = "oq1na8gojfdUhsfCpyjNt6h4JaDWtHf1yQj4koBWfto";
|
|
424
|
+
declare const batchCpiContext1 = "cpi15BoVPKgEPw5o8wc2T816GE7b378nMXnhH3Xbq4y";
|
|
425
|
+
declare const batchMerkleTree2 = "bmt2UxoBxB9xWev4BkLvkGdapsz6sZGkzViPNph7VFi";
|
|
426
|
+
declare const batchQueue2 = "oq2UkeMsJLfXt2QHzim242SUi3nvjJs8Pn7Eac9H9vg";
|
|
427
|
+
declare const batchCpiContext2 = "cpi2yGapXUR3As5SjnHBAVvmApNiLsbeZpF3euWnW6B";
|
|
428
|
+
declare const batchMerkleTree3 = "bmt3ccLd4bqSVZVeCJnH1F6C8jNygAhaDfxDwePyyGb";
|
|
429
|
+
declare const batchQueue3 = "oq3AxjekBWgo64gpauB6QtuZNesuv19xrhaC1ZM1THQ";
|
|
430
|
+
declare const batchCpiContext3 = "cpi3mbwMpSX8FAGMZVP85AwxqCaQMfEk9Em1v8QK9Rf";
|
|
431
|
+
declare const batchMerkleTree4 = "bmt4d3p1a4YQgk9PeZv5s4DBUmbF5NxqYpk9HGjQsd8";
|
|
432
|
+
declare const batchQueue4 = "oq4ypwvVGzCUMoiKKHWh4S1SgZJ9vCvKpcz6RT6A8dq";
|
|
433
|
+
declare const batchCpiContext4 = "cpi4yyPDc4bCgHAnsenunGA8Y77j3XEDyjgfyCKgcoc";
|
|
434
|
+
declare const batchMerkleTree5 = "bmt5yU97jC88YXTuSukYHa8Z5Bi2ZDUtmzfkDTA2mG2";
|
|
435
|
+
declare const batchQueue5 = "oq5oh5ZR3yGomuQgFduNDzjtGvVWfDRGLuDVjv9a96P";
|
|
436
|
+
declare const batchCpiContext5 = "cpi5ZTjdgYpZ1Xr7B1cMLLUE81oTtJbNNAyKary2nV6";
|
|
437
|
+
declare const batchAddressTree = "amt2kaJA14v3urZbZvnc5v2np8jqvc4Z8zDep5wbtzx";
|
|
438
|
+
declare const testBatchAddressTree = "EzKE84aVTkCUhDHLELqyJaq1Y7UVVmqxXqZjVHwHY3rK";
|
|
439
|
+
declare const batchMerkleTree = "bmt1LryLZUMmF7ZtqESaw7wifBXLfXHQYoE4GAmrahU";
|
|
440
|
+
declare const batchQueue = "oq1na8gojfdUhsfCpyjNt6h4JaDWtHf1yQj4koBWfto";
|
|
404
441
|
declare const confirmConfig: ConfirmOptions;
|
|
405
442
|
declare const DEFAULT_MERKLE_TREE_HEIGHT = 26;
|
|
406
443
|
declare const DEFAULT_MERKLE_TREE_ROOTS = 2800;
|
|
@@ -483,167 +520,6 @@ declare function getAllStateTreeInfos({ connection, stateTreeLUTPairs, }: {
|
|
|
483
520
|
stateTreeLUTPairs: StateTreeLUTPair[];
|
|
484
521
|
}): Promise<TreeInfo[]>;
|
|
485
522
|
|
|
486
|
-
/**
|
|
487
|
-
* This file provides two variants of packed accounts for Light Protocol:
|
|
488
|
-
*
|
|
489
|
-
* 1. PackedAccounts - Matches CpiAccounts (11 system accounts)
|
|
490
|
-
* - Includes: LightSystemProgram, Authority, RegisteredProgramPda, NoopProgram,
|
|
491
|
-
* AccountCompressionAuthority, AccountCompressionProgram, InvokingProgram,
|
|
492
|
-
* [Optional: SolPoolPda, DecompressionRecipient], SystemProgram, [Optional: CpiContext]
|
|
493
|
-
*
|
|
494
|
-
* 2. PackedAccountsSmall - Matches CpiAccountsSmall (9 system accounts max)
|
|
495
|
-
* - Includes: LightSystemProgram, Authority, RegisteredProgramPda,
|
|
496
|
-
* AccountCompressionAuthority, AccountCompressionProgram, SystemProgram,
|
|
497
|
-
* [Optional: SolPoolPda, DecompressionRecipient, CpiContext]
|
|
498
|
-
* - Excludes: NoopProgram and InvokingProgram for a more compact structure
|
|
499
|
-
*/
|
|
500
|
-
/**
|
|
501
|
-
* Create a PackedAccounts instance to pack the light protocol system accounts
|
|
502
|
-
* for your custom program instruction. Typically, you will append them to the
|
|
503
|
-
* end of your instruction's accounts / remainingAccounts.
|
|
504
|
-
*
|
|
505
|
-
* This matches the full CpiAccounts structure with 11 system accounts including
|
|
506
|
-
* NoopProgram and InvokingProgram. For a more compact version, use PackedAccountsSmall.
|
|
507
|
-
*
|
|
508
|
-
* @example
|
|
509
|
-
* ```ts
|
|
510
|
-
* const packedAccounts = PackedAccounts.newWithSystemAccounts(config);
|
|
511
|
-
*
|
|
512
|
-
* const instruction = new TransactionInstruction({
|
|
513
|
-
* keys: [...yourInstructionAccounts, ...packedAccounts.toAccountMetas()],
|
|
514
|
-
* programId: selfProgram,
|
|
515
|
-
* data: data,
|
|
516
|
-
* });
|
|
517
|
-
* ```
|
|
518
|
-
*/
|
|
519
|
-
declare class PackedAccounts {
|
|
520
|
-
private preAccounts;
|
|
521
|
-
private systemAccounts;
|
|
522
|
-
private nextIndex;
|
|
523
|
-
private map;
|
|
524
|
-
static newWithSystemAccounts(config: SystemAccountMetaConfig): PackedAccounts;
|
|
525
|
-
addPreAccountsSigner(pubkey: PublicKey): void;
|
|
526
|
-
addPreAccountsSignerMut(pubkey: PublicKey): void;
|
|
527
|
-
addPreAccountsMeta(accountMeta: AccountMeta): void;
|
|
528
|
-
addSystemAccounts(config: SystemAccountMetaConfig): void;
|
|
529
|
-
insertOrGet(pubkey: PublicKey): number;
|
|
530
|
-
insertOrGetReadOnly(pubkey: PublicKey): number;
|
|
531
|
-
insertOrGetConfig(pubkey: PublicKey, isSigner: boolean, isWritable: boolean): number;
|
|
532
|
-
private hashSetAccountsToMetas;
|
|
533
|
-
private getOffsets;
|
|
534
|
-
toAccountMetas(): {
|
|
535
|
-
remainingAccounts: AccountMeta[];
|
|
536
|
-
systemStart: number;
|
|
537
|
-
packedStart: number;
|
|
538
|
-
};
|
|
539
|
-
}
|
|
540
|
-
/**
|
|
541
|
-
* Creates a PackedAccounts instance with system accounts for the specified
|
|
542
|
-
* program. This is a convenience wrapper around SystemAccountMetaConfig.new()
|
|
543
|
-
* and PackedAccounts.newWithSystemAccounts().
|
|
544
|
-
*
|
|
545
|
-
* @param programId - The program ID that will be using these system accounts
|
|
546
|
-
* @returns A new PackedAccounts instance with system accounts configured
|
|
547
|
-
*
|
|
548
|
-
* @example
|
|
549
|
-
* ```ts
|
|
550
|
-
* const packedAccounts = createPackedAccounts(myProgram.programId);
|
|
551
|
-
*
|
|
552
|
-
* const instruction = new TransactionInstruction({
|
|
553
|
-
* keys: [...yourInstructionAccounts, ...packedAccounts.toAccountMetas().remainingAccounts],
|
|
554
|
-
* programId: myProgram.programId,
|
|
555
|
-
* data: instructionData,
|
|
556
|
-
* });
|
|
557
|
-
* ```
|
|
558
|
-
*/
|
|
559
|
-
declare function createPackedAccounts(programId: PublicKey): PackedAccounts;
|
|
560
|
-
/**
|
|
561
|
-
* Creates a PackedAccounts instance with system accounts and CPI context for the specified program.
|
|
562
|
-
* This is a convenience wrapper that includes CPI context configuration.
|
|
563
|
-
*
|
|
564
|
-
* @param programId - The program ID that will be using these system accounts
|
|
565
|
-
* @param cpiContext - The CPI context account public key
|
|
566
|
-
* @returns A new PackedAccounts instance with system accounts and CPI context configured
|
|
567
|
-
*
|
|
568
|
-
* @example
|
|
569
|
-
* ```ts
|
|
570
|
-
* const packedAccounts = createPackedAccountsWithCpiContext(
|
|
571
|
-
* myProgram.programId,
|
|
572
|
-
* cpiContextAccount
|
|
573
|
-
* );
|
|
574
|
-
* ```
|
|
575
|
-
*/
|
|
576
|
-
declare function createPackedAccountsWithCpiContext(programId: PublicKey, cpiContext: PublicKey): PackedAccounts;
|
|
577
|
-
declare class SystemAccountMetaConfig {
|
|
578
|
-
selfProgram: PublicKey;
|
|
579
|
-
cpiContext?: PublicKey;
|
|
580
|
-
solCompressionRecipient?: PublicKey;
|
|
581
|
-
solPoolPda?: PublicKey;
|
|
582
|
-
private constructor();
|
|
583
|
-
static new(selfProgram: PublicKey): SystemAccountMetaConfig;
|
|
584
|
-
static newWithCpiContext(selfProgram: PublicKey, cpiContext: PublicKey): SystemAccountMetaConfig;
|
|
585
|
-
}
|
|
586
|
-
/**
|
|
587
|
-
* Get the light protocol system accounts for your custom program instruction.
|
|
588
|
-
* Use via `link PackedAccounts.addSystemAccounts(config)`.
|
|
589
|
-
*/
|
|
590
|
-
declare function getLightSystemAccountMetas(config: SystemAccountMetaConfig): AccountMeta[];
|
|
591
|
-
/**
|
|
592
|
-
* PackedAccountsSmall matches the CpiAccountsSmall structure with simplified account ordering.
|
|
593
|
-
* This is a more compact version that excludes NoopProgram and InvokingProgram.
|
|
594
|
-
*/
|
|
595
|
-
declare class PackedAccountsSmall {
|
|
596
|
-
private preAccounts;
|
|
597
|
-
private systemAccounts;
|
|
598
|
-
private nextIndex;
|
|
599
|
-
private map;
|
|
600
|
-
static newWithSystemAccounts(config: SystemAccountMetaConfig): PackedAccountsSmall;
|
|
601
|
-
/**
|
|
602
|
-
* Returns the internal map of pubkey to [index, AccountMeta].
|
|
603
|
-
* For debugging purposes only.
|
|
604
|
-
*/
|
|
605
|
-
getNamedMetas(): Map<string, [number, AccountMeta]>;
|
|
606
|
-
addPreAccountsSigner(pubkey: PublicKey): void;
|
|
607
|
-
addPreAccountsSignerMut(pubkey: PublicKey): void;
|
|
608
|
-
addPreAccountsMeta(accountMeta: AccountMeta): void;
|
|
609
|
-
addSystemAccounts(config: SystemAccountMetaConfig): void;
|
|
610
|
-
insertOrGet(pubkey: PublicKey): number;
|
|
611
|
-
insertOrGetReadOnly(pubkey: PublicKey): number;
|
|
612
|
-
insertOrGetConfig(pubkey: PublicKey, isSigner: boolean, isWritable: boolean): number;
|
|
613
|
-
private hashSetAccountsToMetas;
|
|
614
|
-
private getOffsets;
|
|
615
|
-
toAccountMetas(): {
|
|
616
|
-
remainingAccounts: AccountMeta[];
|
|
617
|
-
systemStart: number;
|
|
618
|
-
packedStart: number;
|
|
619
|
-
};
|
|
620
|
-
}
|
|
621
|
-
/**
|
|
622
|
-
* Get the light protocol system accounts for the small variant.
|
|
623
|
-
* This matches CpiAccountsSmall ordering: removes NoopProgram and InvokingProgram.
|
|
624
|
-
*/
|
|
625
|
-
declare function getLightSystemAccountMetasSmall(config: SystemAccountMetaConfig): AccountMeta[];
|
|
626
|
-
/**
|
|
627
|
-
* Creates a PackedAccountsSmall instance with system accounts for the specified program.
|
|
628
|
-
* This uses the simplified account ordering that matches CpiAccountsSmall.
|
|
629
|
-
*/
|
|
630
|
-
declare function createPackedAccountsSmall(programId: PublicKey): PackedAccountsSmall;
|
|
631
|
-
/**
|
|
632
|
-
* Creates a PackedAccountsSmall instance with system accounts and CPI context.
|
|
633
|
-
*/
|
|
634
|
-
declare function createPackedAccountsSmallWithCpiContext(programId: PublicKey, cpiContext: PublicKey): PackedAccountsSmall;
|
|
635
|
-
declare class SystemAccountPubkeys {
|
|
636
|
-
lightSystemProgram: PublicKey;
|
|
637
|
-
systemProgram: PublicKey;
|
|
638
|
-
accountCompressionProgram: PublicKey;
|
|
639
|
-
accountCompressionAuthority: PublicKey;
|
|
640
|
-
registeredProgramPda: PublicKey;
|
|
641
|
-
noopProgram: PublicKey;
|
|
642
|
-
solPoolPda: PublicKey;
|
|
643
|
-
private constructor();
|
|
644
|
-
static default(): SystemAccountPubkeys;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
523
|
declare enum TreeType {
|
|
648
524
|
/**
|
|
649
525
|
* v1 state merkle tree
|
|
@@ -790,7 +666,7 @@ interface CompressedAccountLegacy {
|
|
|
790
666
|
/**
|
|
791
667
|
* Optional data attached to the account.
|
|
792
668
|
*/
|
|
793
|
-
data: CompressedAccountData
|
|
669
|
+
data: CompressedAccountData | null;
|
|
794
670
|
}
|
|
795
671
|
/**
|
|
796
672
|
* @deprecated Use {@link CompressedAccountMeta} instead.
|
|
@@ -824,7 +700,7 @@ type NewAddressProofInput = {
|
|
|
824
700
|
/**
|
|
825
701
|
* Describes compressed account data.
|
|
826
702
|
*/
|
|
827
|
-
interface CompressedAccountData
|
|
703
|
+
interface CompressedAccountData {
|
|
828
704
|
/**
|
|
829
705
|
* 8 bytes.
|
|
830
706
|
*/
|
|
@@ -1119,7 +995,7 @@ type CompressedAccount = {
|
|
|
1119
995
|
/**
|
|
1120
996
|
* Optional data attached to the account.
|
|
1121
997
|
*/
|
|
1122
|
-
data: CompressedAccountData
|
|
998
|
+
data: CompressedAccountData | null;
|
|
1123
999
|
} & MerkleContext & {
|
|
1124
1000
|
/**
|
|
1125
1001
|
* Read only.
|
|
@@ -1281,11 +1157,11 @@ interface PackedCompressedAccountWithMerkleContext {
|
|
|
1281
1157
|
/**
|
|
1282
1158
|
* @deprecated use {@link createCompressedAccountMeta} instead.
|
|
1283
1159
|
*/
|
|
1284
|
-
declare const createCompressedAccountLegacy: (owner: PublicKey, lamports?: BN, data?: CompressedAccountData
|
|
1160
|
+
declare const createCompressedAccountLegacy: (owner: PublicKey, lamports?: BN, data?: CompressedAccountData, address?: number[]) => CompressedAccountLegacy;
|
|
1285
1161
|
/**
|
|
1286
1162
|
* @deprecated.
|
|
1287
1163
|
*/
|
|
1288
|
-
declare const createCompressedAccountWithMerkleContextLegacy: (merkleContext: MerkleContext, owner: PublicKey, lamports?: BN, data?: CompressedAccountData
|
|
1164
|
+
declare const createCompressedAccountWithMerkleContextLegacy: (merkleContext: MerkleContext, owner: PublicKey, lamports?: BN, data?: CompressedAccountData, address?: number[]) => CompressedAccountWithMerkleContext;
|
|
1289
1165
|
/**
|
|
1290
1166
|
* @deprecated use {@link createCompressedAccountMeta} instead.
|
|
1291
1167
|
*/
|
|
@@ -2584,21 +2460,21 @@ declare const HealthResult: Struct<string, null>;
|
|
|
2584
2460
|
*/
|
|
2585
2461
|
declare const LatestNonVotingSignaturesResult: Struct<{
|
|
2586
2462
|
items: {
|
|
2463
|
+
signature: string;
|
|
2587
2464
|
error: string | null;
|
|
2588
2465
|
slot: number;
|
|
2589
|
-
signature: string;
|
|
2590
2466
|
blockTime: number;
|
|
2591
2467
|
}[];
|
|
2592
2468
|
}, {
|
|
2593
2469
|
items: Struct<{
|
|
2470
|
+
signature: string;
|
|
2594
2471
|
error: string | null;
|
|
2595
2472
|
slot: number;
|
|
2596
|
-
signature: string;
|
|
2597
2473
|
blockTime: number;
|
|
2598
2474
|
}[], Struct<{
|
|
2475
|
+
signature: string;
|
|
2599
2476
|
error: string | null;
|
|
2600
2477
|
slot: number;
|
|
2601
|
-
signature: string;
|
|
2602
2478
|
blockTime: number;
|
|
2603
2479
|
}, {
|
|
2604
2480
|
signature: Struct<string, null>;
|
|
@@ -2612,19 +2488,19 @@ declare const LatestNonVotingSignaturesResult: Struct<{
|
|
|
2612
2488
|
*/
|
|
2613
2489
|
declare const LatestNonVotingSignaturesResultPaginated: Struct<{
|
|
2614
2490
|
items: {
|
|
2615
|
-
slot: number;
|
|
2616
2491
|
signature: string;
|
|
2492
|
+
slot: number;
|
|
2617
2493
|
blockTime: number;
|
|
2618
2494
|
}[];
|
|
2619
2495
|
cursor: string | null;
|
|
2620
2496
|
}, {
|
|
2621
2497
|
items: Struct<{
|
|
2622
|
-
slot: number;
|
|
2623
2498
|
signature: string;
|
|
2499
|
+
slot: number;
|
|
2624
2500
|
blockTime: number;
|
|
2625
2501
|
}[], Struct<{
|
|
2626
|
-
slot: number;
|
|
2627
2502
|
signature: string;
|
|
2503
|
+
slot: number;
|
|
2628
2504
|
blockTime: number;
|
|
2629
2505
|
}, {
|
|
2630
2506
|
signature: Struct<string, null>;
|
|
@@ -2639,10 +2515,10 @@ declare const LatestNonVotingSignaturesResultPaginated: Struct<{
|
|
|
2639
2515
|
declare const MerkleProofResult: Struct<{
|
|
2640
2516
|
proof: BN[];
|
|
2641
2517
|
leafIndex: number;
|
|
2518
|
+
root: BN;
|
|
2642
2519
|
hash: BN;
|
|
2643
2520
|
merkleTree: PublicKey;
|
|
2644
2521
|
rootSeq: number;
|
|
2645
|
-
root: BN;
|
|
2646
2522
|
}, {
|
|
2647
2523
|
hash: Struct<BN, null>;
|
|
2648
2524
|
leafIndex: Struct<number, null>;
|
|
@@ -2658,9 +2534,9 @@ declare const MerkleProofResultV2: Struct<{
|
|
|
2658
2534
|
proof: BN[];
|
|
2659
2535
|
leafIndex: number;
|
|
2660
2536
|
proveByIndex: boolean;
|
|
2537
|
+
root: BN;
|
|
2661
2538
|
hash: BN;
|
|
2662
2539
|
rootSeq: number;
|
|
2663
|
-
root: BN;
|
|
2664
2540
|
treeContext: {
|
|
2665
2541
|
cpiContext: PublicKey | null;
|
|
2666
2542
|
tree: PublicKey;
|
|
@@ -2715,9 +2591,9 @@ declare const MerkleProofResultV2: Struct<{
|
|
|
2715
2591
|
declare const NewAddressProofResult: Struct<{
|
|
2716
2592
|
proof: BN[];
|
|
2717
2593
|
address: BN;
|
|
2594
|
+
root: BN;
|
|
2718
2595
|
merkleTree: PublicKey;
|
|
2719
2596
|
rootSeq: number;
|
|
2720
|
-
root: BN;
|
|
2721
2597
|
nextIndex: number;
|
|
2722
2598
|
lowerRangeAddress: BN;
|
|
2723
2599
|
higherRangeAddress: BN;
|
|
@@ -2797,8 +2673,8 @@ declare const ValidityProofResultV2: Struct<{
|
|
|
2797
2673
|
proveByIndex: boolean;
|
|
2798
2674
|
};
|
|
2799
2675
|
leafIndex: number;
|
|
2800
|
-
hash: BN;
|
|
2801
2676
|
root: BN;
|
|
2677
|
+
hash: BN;
|
|
2802
2678
|
}[];
|
|
2803
2679
|
addresses: {
|
|
2804
2680
|
address: BN;
|
|
@@ -2845,8 +2721,8 @@ declare const ValidityProofResultV2: Struct<{
|
|
|
2845
2721
|
proveByIndex: boolean;
|
|
2846
2722
|
};
|
|
2847
2723
|
leafIndex: number;
|
|
2848
|
-
hash: BN;
|
|
2849
2724
|
root: BN;
|
|
2725
|
+
hash: BN;
|
|
2850
2726
|
}[], Struct<{
|
|
2851
2727
|
merkleContext: {
|
|
2852
2728
|
cpiContext: PublicKey | null;
|
|
@@ -2865,8 +2741,8 @@ declare const ValidityProofResultV2: Struct<{
|
|
|
2865
2741
|
proveByIndex: boolean;
|
|
2866
2742
|
};
|
|
2867
2743
|
leafIndex: number;
|
|
2868
|
-
hash: BN;
|
|
2869
2744
|
root: BN;
|
|
2745
|
+
hash: BN;
|
|
2870
2746
|
}, {
|
|
2871
2747
|
hash: Struct<BN, null>;
|
|
2872
2748
|
root: Struct<BN, null>;
|
|
@@ -2979,17 +2855,17 @@ declare const ValidityProofResultV2: Struct<{
|
|
|
2979
2855
|
declare const MultipleMerkleProofsResult: Struct<{
|
|
2980
2856
|
proof: BN[];
|
|
2981
2857
|
leafIndex: number;
|
|
2858
|
+
root: BN;
|
|
2982
2859
|
hash: BN;
|
|
2983
2860
|
merkleTree: PublicKey;
|
|
2984
2861
|
rootSeq: number;
|
|
2985
|
-
root: BN;
|
|
2986
2862
|
}[], Struct<{
|
|
2987
2863
|
proof: BN[];
|
|
2988
2864
|
leafIndex: number;
|
|
2865
|
+
root: BN;
|
|
2989
2866
|
hash: BN;
|
|
2990
2867
|
merkleTree: PublicKey;
|
|
2991
2868
|
rootSeq: number;
|
|
2992
|
-
root: BN;
|
|
2993
2869
|
}, {
|
|
2994
2870
|
hash: Struct<BN, null>;
|
|
2995
2871
|
leafIndex: Struct<number, null>;
|
|
@@ -3005,9 +2881,9 @@ declare const MultipleMerkleProofsResultV2: Struct<{
|
|
|
3005
2881
|
proof: BN[];
|
|
3006
2882
|
leafIndex: number;
|
|
3007
2883
|
proveByIndex: boolean;
|
|
2884
|
+
root: BN;
|
|
3008
2885
|
hash: BN;
|
|
3009
2886
|
rootSeq: number;
|
|
3010
|
-
root: BN;
|
|
3011
2887
|
treeContext: {
|
|
3012
2888
|
cpiContext: PublicKey | null;
|
|
3013
2889
|
tree: PublicKey;
|
|
@@ -3024,9 +2900,9 @@ declare const MultipleMerkleProofsResultV2: Struct<{
|
|
|
3024
2900
|
proof: BN[];
|
|
3025
2901
|
leafIndex: number;
|
|
3026
2902
|
proveByIndex: boolean;
|
|
2903
|
+
root: BN;
|
|
3027
2904
|
hash: BN;
|
|
3028
2905
|
rootSeq: number;
|
|
3029
|
-
root: BN;
|
|
3030
2906
|
treeContext: {
|
|
3031
2907
|
cpiContext: PublicKey | null;
|
|
3032
2908
|
tree: PublicKey;
|
|
@@ -3150,8 +3026,8 @@ declare const CompressedMintTokenHoldersResult: Struct<{
|
|
|
3150
3026
|
}>;
|
|
3151
3027
|
declare const AccountProofResult: Struct<{
|
|
3152
3028
|
proof: number[][];
|
|
3153
|
-
hash: number[];
|
|
3154
3029
|
root: number[];
|
|
3030
|
+
hash: number[];
|
|
3155
3031
|
}, {
|
|
3156
3032
|
hash: Struct<number[], Struct<number, null>>;
|
|
3157
3033
|
root: Struct<number[], Struct<number, null>>;
|
|
@@ -3160,18 +3036,18 @@ declare const AccountProofResult: Struct<{
|
|
|
3160
3036
|
declare const toUnixTimestamp: (blockTime: string) => number;
|
|
3161
3037
|
declare const SignatureListResult: Struct<{
|
|
3162
3038
|
items: {
|
|
3163
|
-
slot: number;
|
|
3164
3039
|
signature: string;
|
|
3040
|
+
slot: number;
|
|
3165
3041
|
blockTime: number;
|
|
3166
3042
|
}[];
|
|
3167
3043
|
}, {
|
|
3168
3044
|
items: Struct<{
|
|
3169
|
-
slot: number;
|
|
3170
3045
|
signature: string;
|
|
3046
|
+
slot: number;
|
|
3171
3047
|
blockTime: number;
|
|
3172
3048
|
}[], Struct<{
|
|
3173
|
-
slot: number;
|
|
3174
3049
|
signature: string;
|
|
3050
|
+
slot: number;
|
|
3175
3051
|
blockTime: number;
|
|
3176
3052
|
}, {
|
|
3177
3053
|
blockTime: Struct<number, null>;
|
|
@@ -3181,19 +3057,19 @@ declare const SignatureListResult: Struct<{
|
|
|
3181
3057
|
}>;
|
|
3182
3058
|
declare const SignatureListWithCursorResult: Struct<{
|
|
3183
3059
|
items: {
|
|
3184
|
-
slot: number;
|
|
3185
3060
|
signature: string;
|
|
3061
|
+
slot: number;
|
|
3186
3062
|
blockTime: number;
|
|
3187
3063
|
}[];
|
|
3188
3064
|
cursor: string | null;
|
|
3189
3065
|
}, {
|
|
3190
3066
|
items: Struct<{
|
|
3191
|
-
slot: number;
|
|
3192
3067
|
signature: string;
|
|
3068
|
+
slot: number;
|
|
3193
3069
|
blockTime: number;
|
|
3194
3070
|
}[], Struct<{
|
|
3195
|
-
slot: number;
|
|
3196
3071
|
signature: string;
|
|
3072
|
+
slot: number;
|
|
3197
3073
|
blockTime: number;
|
|
3198
3074
|
}, {
|
|
3199
3075
|
blockTime: Struct<number, null>;
|
|
@@ -4145,6 +4021,10 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
4145
4021
|
*/
|
|
4146
4022
|
getStateTreeInfos(): Promise<TreeInfo[]>;
|
|
4147
4023
|
doFetch(): Promise<TreeInfo[]>;
|
|
4024
|
+
/**
|
|
4025
|
+
* Get a V2 address tree info.
|
|
4026
|
+
*/
|
|
4027
|
+
getAddressTreeInfoV2(): Promise<TreeInfo>;
|
|
4148
4028
|
/**
|
|
4149
4029
|
* Fetch the compressed account for the specified account hash
|
|
4150
4030
|
*/
|
|
@@ -4294,10 +4174,6 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
4294
4174
|
*/
|
|
4295
4175
|
getValidityProof(hashes?: BN254[], newAddresses?: BN254[]): Promise<ValidityProofWithContext>;
|
|
4296
4176
|
getValidityProofV0(hashes?: HashWithTree[], newAddresses?: AddressWithTree[]): Promise<ValidityProofWithContext>;
|
|
4297
|
-
getCompressibleAccountInfo(address: PublicKey, programId: PublicKey, addressTreeInfo: TreeInfo, rpc: TestRpc): Promise<{
|
|
4298
|
-
accountInfo: AccountInfo<Buffer>;
|
|
4299
|
-
merkleContext?: MerkleContext;
|
|
4300
|
-
} | null>;
|
|
4301
4177
|
}
|
|
4302
4178
|
|
|
4303
4179
|
declare class IndexedElement {
|
|
@@ -4646,6 +4522,10 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
4646
4522
|
* @internal
|
|
4647
4523
|
*/
|
|
4648
4524
|
doFetch(): Promise<TreeInfo[]>;
|
|
4525
|
+
/**
|
|
4526
|
+
* Get a V2 address tree info.
|
|
4527
|
+
*/
|
|
4528
|
+
getAddressTreeInfoV2(): Promise<TreeInfo>;
|
|
4649
4529
|
/**
|
|
4650
4530
|
* Fetch the compressed account for the specified account address or hash
|
|
4651
4531
|
*/
|
|
@@ -4823,20 +4703,6 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
4823
4703
|
* @returns validity proof with context
|
|
4824
4704
|
*/
|
|
4825
4705
|
getValidityProofAndRpcContext(hashes?: HashWithTree[], newAddresses?: AddressWithTree[]): Promise<WithContext<ValidityProofWithContext>>;
|
|
4826
|
-
/**
|
|
4827
|
-
* Get account info from either compressed or onchain storage.
|
|
4828
|
-
* @param address The account address to fetch.
|
|
4829
|
-
* @param programId The owner program ID.
|
|
4830
|
-
* @param addressTreeInfo The address tree info used to store the account.
|
|
4831
|
-
* @param rpc The RPC client to use.
|
|
4832
|
-
*
|
|
4833
|
-
* @returns Account info with compression info, or null if account
|
|
4834
|
-
* doesn't exist.
|
|
4835
|
-
*/
|
|
4836
|
-
getCompressibleAccountInfo(address: PublicKey, programId: PublicKey, addressTreeInfo: TreeInfo, rpc: Rpc): Promise<{
|
|
4837
|
-
accountInfo: AccountInfo<Buffer$1>;
|
|
4838
|
-
merkleContext?: MerkleContext;
|
|
4839
|
-
} | null>;
|
|
4840
4706
|
}
|
|
4841
4707
|
|
|
4842
4708
|
/**
|
|
@@ -6011,8 +5877,15 @@ declare function getIndexOrAdd(accountsArray: PublicKey[], key: PublicKey): numb
|
|
|
6011
5877
|
*/
|
|
6012
5878
|
declare function padOutputStateMerkleTrees(outputStateMerkleTrees: PublicKey, numberOfOutputCompressedAccounts: number): PublicKey[];
|
|
6013
5879
|
declare function toAccountMetas(remainingAccounts: PublicKey[]): AccountMeta[];
|
|
5880
|
+
interface PackedStateTreeInfos {
|
|
5881
|
+
packedTreeInfos: PackedStateTreeInfo[];
|
|
5882
|
+
outputTreeIndex: number;
|
|
5883
|
+
}
|
|
5884
|
+
interface PackedTreeInfos {
|
|
5885
|
+
stateTrees?: PackedStateTreeInfos;
|
|
5886
|
+
addressTrees: PackedAddressTreeInfo[];
|
|
5887
|
+
}
|
|
6014
5888
|
/**
|
|
6015
|
-
* @deprecated Use {@link packTreeInfos} instead.
|
|
6016
5889
|
* Packs TreeInfos. Replaces PublicKey with index pointer to remaining accounts.
|
|
6017
5890
|
*
|
|
6018
5891
|
* Only use for MUT, CLOSE, NEW_ADDRESSES. For INIT, pass
|
|
@@ -6028,7 +5901,7 @@ declare function toAccountMetas(remainingAccounts: PublicKey[]): AccountMeta[];
|
|
|
6028
5901
|
* @returns Remaining accounts, packed state and address tree infos, state tree
|
|
6029
5902
|
* output index and address tree infos.
|
|
6030
5903
|
*/
|
|
6031
|
-
declare function
|
|
5904
|
+
declare function packTreeInfos(remainingAccounts: PublicKey[], accountProofInputs: AccountProofInput[], newAddressProofInputs: NewAddressProofInput[]): PackedTreeInfos;
|
|
6032
5905
|
/**
|
|
6033
5906
|
* Packs Compressed Accounts.
|
|
6034
5907
|
*
|
|
@@ -6052,80 +5925,6 @@ declare function packCompressedAccounts(inputCompressedAccounts: CompressedAccou
|
|
|
6052
5925
|
packedOutputCompressedAccounts: OutputCompressedAccountWithPackedContext[];
|
|
6053
5926
|
remainingAccounts: PublicKey[];
|
|
6054
5927
|
};
|
|
6055
|
-
/**
|
|
6056
|
-
* Root index for state tree proofs.
|
|
6057
|
-
*/
|
|
6058
|
-
type RootIndex = {
|
|
6059
|
-
proofByIndex: boolean;
|
|
6060
|
-
rootIndex: number;
|
|
6061
|
-
};
|
|
6062
|
-
/**
|
|
6063
|
-
* Creates a RootIndex for proving by merkle proof.
|
|
6064
|
-
*/
|
|
6065
|
-
declare function createRootIndex(rootIndex: number): RootIndex;
|
|
6066
|
-
/**
|
|
6067
|
-
* Creates a RootIndex for proving by leaf index.
|
|
6068
|
-
*/
|
|
6069
|
-
declare function createRootIndexByIndex(): RootIndex;
|
|
6070
|
-
/**
|
|
6071
|
-
* Account proof inputs for state tree accounts.
|
|
6072
|
-
*/
|
|
6073
|
-
type AccountProofInputs = {
|
|
6074
|
-
hash: Uint8Array;
|
|
6075
|
-
root: Uint8Array;
|
|
6076
|
-
rootIndex: RootIndex;
|
|
6077
|
-
leafIndex: number;
|
|
6078
|
-
treeInfo: TreeInfo;
|
|
6079
|
-
};
|
|
6080
|
-
/**
|
|
6081
|
-
* Address proof inputs for address tree accounts.
|
|
6082
|
-
*/
|
|
6083
|
-
type AddressProofInputs = {
|
|
6084
|
-
address: Uint8Array;
|
|
6085
|
-
root: Uint8Array;
|
|
6086
|
-
rootIndex: number;
|
|
6087
|
-
treeInfo: TreeInfo;
|
|
6088
|
-
};
|
|
6089
|
-
/**
|
|
6090
|
-
* Validity proof with context structure that matches Rust implementation.
|
|
6091
|
-
*/
|
|
6092
|
-
type ValidityProofWithContextV2 = {
|
|
6093
|
-
proof: ValidityProof | null;
|
|
6094
|
-
accounts: AccountProofInputs[];
|
|
6095
|
-
addresses: AddressProofInputs[];
|
|
6096
|
-
};
|
|
6097
|
-
/**
|
|
6098
|
-
* Packed state tree infos.
|
|
6099
|
-
*/
|
|
6100
|
-
type PackedStateTreeInfos = {
|
|
6101
|
-
packedTreeInfos: PackedStateTreeInfo[];
|
|
6102
|
-
outputTreeIndex: number;
|
|
6103
|
-
};
|
|
6104
|
-
/**
|
|
6105
|
-
* Packed tree infos containing both state and address trees.
|
|
6106
|
-
*/
|
|
6107
|
-
type PackedTreeInfos = {
|
|
6108
|
-
stateTrees: PackedStateTreeInfos | null;
|
|
6109
|
-
addressTrees: PackedAddressTreeInfo[];
|
|
6110
|
-
};
|
|
6111
|
-
/**
|
|
6112
|
-
* Packs tree infos from ValidityProofWithContext into packed format. This is a
|
|
6113
|
-
* TypeScript equivalent of the Rust pack_tree_infos method.
|
|
6114
|
-
*
|
|
6115
|
-
* @param validityProof - The validity proof with context (flat format)
|
|
6116
|
-
* @param packedAccounts - The packed accounts manager (supports both PackedAccounts and PackedAccountsSmall)
|
|
6117
|
-
* @returns Packed tree infos
|
|
6118
|
-
*/
|
|
6119
|
-
declare function packTreeInfos(validityProof: ValidityProofWithContext, packedAccounts: PackedAccounts | PackedAccountsSmall): PackedTreeInfos;
|
|
6120
|
-
/**
|
|
6121
|
-
* Packs tree infos from ValidityProofWithContextV2 into packed format. This is
|
|
6122
|
-
* a TypeScript equivalent of the Rust pack_tree_infos method.
|
|
6123
|
-
*
|
|
6124
|
-
* @param validityProof - The validity proof with context (structured format)
|
|
6125
|
-
* @param packedAccounts - The packed accounts manager (supports both PackedAccounts and PackedAccountsSmall)
|
|
6126
|
-
* @returns Packed tree infos
|
|
6127
|
-
*/
|
|
6128
|
-
declare function packTreeInfos(validityProof: ValidityProofWithContextV2, packedAccounts: PackedAccounts | PackedAccountsSmall): PackedTreeInfos;
|
|
6129
5928
|
|
|
6130
5929
|
declare const sumUpLamports: (accounts: CompressedAccountWithMerkleContext[]) => BN;
|
|
6131
5930
|
/**
|
|
@@ -6381,361 +6180,4 @@ declare class MerkleTreeError extends MetaError {
|
|
|
6381
6180
|
declare class UtilsError extends MetaError {
|
|
6382
6181
|
}
|
|
6383
6182
|
|
|
6384
|
-
|
|
6385
|
-
* Standard instruction discriminators for compressible instructions
|
|
6386
|
-
* These match the Rust implementation discriminators
|
|
6387
|
-
*/
|
|
6388
|
-
declare const COMPRESSIBLE_DISCRIMINATORS: {
|
|
6389
|
-
readonly INITIALIZE_COMPRESSION_CONFIG: readonly [133, 228, 12, 169, 56, 76, 222, 61];
|
|
6390
|
-
readonly UPDATE_COMPRESSION_CONFIG: readonly [135, 215, 243, 81, 163, 146, 33, 70];
|
|
6391
|
-
readonly DECOMPRESS_ACCOUNTS_IDEMPOTENT: readonly [114, 67, 61, 123, 234, 31, 1, 112];
|
|
6392
|
-
};
|
|
6393
|
-
/**
|
|
6394
|
-
* Generic compressed account data structure for decompress operations
|
|
6395
|
-
* This is generic over the account variant type, allowing programs to use their specific enums
|
|
6396
|
-
*/
|
|
6397
|
-
type CompressedAccountData<T = any> = {
|
|
6398
|
-
/** The compressed account metadata containing tree info, address, and output index */
|
|
6399
|
-
meta: CompressedAccountMeta;
|
|
6400
|
-
/** Program-specific account variant enum */
|
|
6401
|
-
data: T;
|
|
6402
|
-
/** PDA seeds (without bump) used to derive the PDA address */
|
|
6403
|
-
seeds: Uint8Array[];
|
|
6404
|
-
};
|
|
6405
|
-
/**
|
|
6406
|
-
* Instruction data structure for decompress_accounts_idempotent
|
|
6407
|
-
* This matches the exact format expected by Anchor programs
|
|
6408
|
-
*/
|
|
6409
|
-
type DecompressMultipleAccountsIdempotentData<T = any> = {
|
|
6410
|
-
proof: ValidityProof;
|
|
6411
|
-
compressedAccounts: CompressedAccountData<T>[];
|
|
6412
|
-
bumps: number[];
|
|
6413
|
-
systemAccountsOffset: number;
|
|
6414
|
-
};
|
|
6415
|
-
/**
|
|
6416
|
-
* Instruction data for update compression config
|
|
6417
|
-
*/
|
|
6418
|
-
type UpdateCompressionConfigData = {
|
|
6419
|
-
newCompressionDelay: number | null;
|
|
6420
|
-
newRentRecipient: PublicKey | null;
|
|
6421
|
-
newAddressSpace: PublicKey[] | null;
|
|
6422
|
-
newUpdateAuthority: PublicKey | null;
|
|
6423
|
-
};
|
|
6424
|
-
/**
|
|
6425
|
-
* Generic instruction data for compress account
|
|
6426
|
-
* This matches the expected format for compress account instructions
|
|
6427
|
-
*/
|
|
6428
|
-
type GenericCompressAccountInstruction = {
|
|
6429
|
-
proof: ValidityProof;
|
|
6430
|
-
compressedAccountMeta: CompressedAccountMeta;
|
|
6431
|
-
};
|
|
6432
|
-
|
|
6433
|
-
/**
|
|
6434
|
-
* Borsh schema for updateCompressionConfig instruction data
|
|
6435
|
-
*/
|
|
6436
|
-
declare const UpdateCompressionConfigSchema: borsh.Layout<UpdateCompressionConfigData>;
|
|
6437
|
-
/**
|
|
6438
|
-
* Borsh schema for ValidityProof
|
|
6439
|
-
*/
|
|
6440
|
-
declare const ValidityProofSchema: borsh.Layout<ValidityProof>;
|
|
6441
|
-
/**
|
|
6442
|
-
* Borsh schema for PackedStateTreeInfo
|
|
6443
|
-
*/
|
|
6444
|
-
declare const PackedStateTreeInfoSchema: borsh.Layout<PackedStateTreeInfo>;
|
|
6445
|
-
/**
|
|
6446
|
-
* Borsh schema for CompressedAccountMeta
|
|
6447
|
-
*/
|
|
6448
|
-
declare const CompressedAccountMetaSchema: borsh.Layout<CompressedAccountMeta>;
|
|
6449
|
-
/**
|
|
6450
|
-
* Borsh schema for GenericCompressAccountInstruction
|
|
6451
|
-
*/
|
|
6452
|
-
declare const GenericCompressAccountInstructionSchema: borsh.Layout<GenericCompressAccountInstruction>;
|
|
6453
|
-
/**
|
|
6454
|
-
* Helper function to create borsh schema for CompressedAccountData
|
|
6455
|
-
* This is generic to work with any data type T
|
|
6456
|
-
*/
|
|
6457
|
-
declare function createCompressedAccountDataSchema<T>(dataSchema: borsh.Layout<T>): borsh.Layout<CompressedAccountData<T>>;
|
|
6458
|
-
/**
|
|
6459
|
-
* Helper function to create borsh schema for DecompressMultipleAccountsIdempotentData
|
|
6460
|
-
* This is generic to work with any data type T
|
|
6461
|
-
*/
|
|
6462
|
-
declare function createDecompressMultipleAccountsIdempotentDataSchema<T>(dataSchema: borsh.Layout<T>): borsh.Layout<DecompressMultipleAccountsIdempotentData<T>>;
|
|
6463
|
-
/**
|
|
6464
|
-
* Serialize instruction data with custom discriminator
|
|
6465
|
-
*/
|
|
6466
|
-
declare function serializeInstructionData<T>(schema: borsh.Layout<T>, data: T, discriminator: Uint8Array | number[]): Buffer;
|
|
6467
|
-
/**
|
|
6468
|
-
* Serialize instruction data for initializeCompressionConfig using Borsh
|
|
6469
|
-
*/
|
|
6470
|
-
declare function serializeInitializeCompressionConfigData(compressionDelay: number, rentRecipient: _solana_web3_js.PublicKey, addressSpace: _solana_web3_js.PublicKey[], configBump: number | null): Buffer;
|
|
6471
|
-
|
|
6472
|
-
/**
|
|
6473
|
-
* Create an instruction to initialize a compression config.
|
|
6474
|
-
*
|
|
6475
|
-
* @param programId Program ID for the compressible program
|
|
6476
|
-
* @param discriminator Instruction discriminator (8 bytes)
|
|
6477
|
-
* @param payer Fee payer
|
|
6478
|
-
* @param authority Program upgrade authority
|
|
6479
|
-
* @param compressionDelay Compression delay (in slots)
|
|
6480
|
-
* @param rentRecipient Rent recipient public key
|
|
6481
|
-
* @param addressSpace Array of address space public keys
|
|
6482
|
-
* @param configBump Optional config bump (defaults to 0)
|
|
6483
|
-
* @returns TransactionInstruction
|
|
6484
|
-
*/
|
|
6485
|
-
declare function createInitializeCompressionConfigInstruction(programId: PublicKey, discriminator: Uint8Array | number[], payer: PublicKey, authority: PublicKey, compressionDelay: number, rentRecipient: PublicKey, addressSpace: PublicKey[], configBump?: number | null): TransactionInstruction;
|
|
6486
|
-
/**
|
|
6487
|
-
* Create an instruction to update a compression config.
|
|
6488
|
-
*
|
|
6489
|
-
* @param programId Program ID for the compressible program
|
|
6490
|
-
* @param discriminator Instruction discriminator (8 bytes)
|
|
6491
|
-
* @param authority Current config authority
|
|
6492
|
-
* @param newCompressionDelay Optional new compression delay
|
|
6493
|
-
* @param newRentRecipient Optional new rent recipient
|
|
6494
|
-
* @param newAddressSpace Optional new address space array
|
|
6495
|
-
* @param newUpdateAuthority Optional new update authority
|
|
6496
|
-
* @returns TransactionInstruction
|
|
6497
|
-
*/
|
|
6498
|
-
declare function createUpdateCompressionConfigInstruction(programId: PublicKey, discriminator: Uint8Array | number[], authority: PublicKey, newCompressionDelay?: number | null, newRentRecipient?: PublicKey | null, newAddressSpace?: PublicKey[] | null, newUpdateAuthority?: PublicKey | null): TransactionInstruction;
|
|
6499
|
-
/**
|
|
6500
|
-
* Create an instruction to compress a generic compressible account.
|
|
6501
|
-
*
|
|
6502
|
-
* @param programId Program ID for the compressible program
|
|
6503
|
-
* @param discriminator Instruction discriminator (8 bytes)
|
|
6504
|
-
* @param payer Fee payer
|
|
6505
|
-
* @param pdaToCompress PDA to compress
|
|
6506
|
-
* @param rentRecipient Rent recipient public key
|
|
6507
|
-
* @param compressedAccountMeta Compressed account metadata
|
|
6508
|
-
* @param validityProof Validity proof for compression
|
|
6509
|
-
* @param systemAccounts Additional system accounts (optional)
|
|
6510
|
-
* @returns TransactionInstruction
|
|
6511
|
-
*/
|
|
6512
|
-
declare function createCompressAccountInstruction(programId: PublicKey, discriminator: Uint8Array | number[], payer: PublicKey, pdaToCompress: PublicKey, rentRecipient: PublicKey, compressedAccountMeta: CompressedAccountMeta, validityProof: ValidityProof, systemAccounts?: AccountMeta[]): TransactionInstruction;
|
|
6513
|
-
/**
|
|
6514
|
-
* Create an instruction to decompress one or more compressed accounts idempotently.
|
|
6515
|
-
*
|
|
6516
|
-
* @param programId Program ID for the compressible program
|
|
6517
|
-
* @param discriminator Instruction discriminator (8 bytes)
|
|
6518
|
-
* @param feePayer Fee payer
|
|
6519
|
-
* @param rentPayer Rent payer
|
|
6520
|
-
* @param solanaAccounts Array of PDA accounts to decompress
|
|
6521
|
-
* @param compressedAccountsData Array of compressed account data
|
|
6522
|
-
* @param bumps Array of PDA bumps
|
|
6523
|
-
* @param validityProof Validity proof for decompression
|
|
6524
|
-
* @param systemAccounts Additional system accounts (optional)
|
|
6525
|
-
* @param coder Borsh schema for account data
|
|
6526
|
-
* @returns TransactionInstruction
|
|
6527
|
-
*/
|
|
6528
|
-
declare function createDecompressAccountsIdempotentInstruction<T = any>(programId: PublicKey, discriminator: Uint8Array | number[], feePayer: PublicKey, rentPayer: PublicKey, solanaAccounts: PublicKey[], compressedAccountsData: CompressedAccountData<T>[], bumps: number[], validityProof: ValidityProof, systemAccounts: AccountMeta[] | undefined, coder: (data: any) => Buffer): TransactionInstruction;
|
|
6529
|
-
/**
|
|
6530
|
-
* Instruction builders for compressible accounts, following Solana SDK patterns.
|
|
6531
|
-
*/
|
|
6532
|
-
declare class CompressibleInstruction {
|
|
6533
|
-
/**
|
|
6534
|
-
* Create an instruction to initialize a compression config.
|
|
6535
|
-
*
|
|
6536
|
-
* @param programId Program ID for the compressible program
|
|
6537
|
-
* @param discriminator Instruction discriminator (8 bytes)
|
|
6538
|
-
* @param payer Fee payer
|
|
6539
|
-
* @param authority Program upgrade authority
|
|
6540
|
-
* @param compressionDelay Compression delay (in slots)
|
|
6541
|
-
* @param rentRecipient Rent recipient public key
|
|
6542
|
-
* @param addressSpace Array of address space public keys
|
|
6543
|
-
* @param configBump Optional config bump (defaults to 0)
|
|
6544
|
-
* @returns TransactionInstruction
|
|
6545
|
-
*/
|
|
6546
|
-
static initializeCompressionConfig(programId: PublicKey, discriminator: Uint8Array | number[], payer: PublicKey, authority: PublicKey, compressionDelay: number, rentRecipient: PublicKey, addressSpace: PublicKey[], configBump?: number | null): TransactionInstruction;
|
|
6547
|
-
/**
|
|
6548
|
-
* Create an instruction to update a compression config.
|
|
6549
|
-
*
|
|
6550
|
-
* @param programId Program ID for the compressible program
|
|
6551
|
-
* @param discriminator Instruction discriminator (8 bytes)
|
|
6552
|
-
* @param authority Current config authority
|
|
6553
|
-
* @param newCompressionDelay Optional new compression delay
|
|
6554
|
-
* @param newRentRecipient Optional new rent recipient
|
|
6555
|
-
* @param newAddressSpace Optional new address space array
|
|
6556
|
-
* @param newUpdateAuthority Optional new update authority
|
|
6557
|
-
* @returns TransactionInstruction
|
|
6558
|
-
*/
|
|
6559
|
-
static updateCompressionConfig(programId: PublicKey, discriminator: Uint8Array | number[], authority: PublicKey, newCompressionDelay?: number | null, newRentRecipient?: PublicKey | null, newAddressSpace?: PublicKey[] | null, newUpdateAuthority?: PublicKey | null): TransactionInstruction;
|
|
6560
|
-
/**
|
|
6561
|
-
* Create an instruction to compress a generic compressible account.
|
|
6562
|
-
*
|
|
6563
|
-
* @param programId Program ID for the compressible program
|
|
6564
|
-
* @param discriminator Instruction discriminator (8 bytes)
|
|
6565
|
-
* @param payer Fee payer
|
|
6566
|
-
* @param pdaToCompress PDA to compress
|
|
6567
|
-
* @param rentRecipient Rent recipient public key
|
|
6568
|
-
* @param compressedAccountMeta Compressed account metadata
|
|
6569
|
-
* @param validityProof Validity proof for compression
|
|
6570
|
-
* @param systemAccounts Additional system accounts (optional)
|
|
6571
|
-
* @returns TransactionInstruction
|
|
6572
|
-
*/
|
|
6573
|
-
static compressAccount(programId: PublicKey, discriminator: Uint8Array | number[], payer: PublicKey, pdaToCompress: PublicKey, rentRecipient: PublicKey, compressedAccountMeta: CompressedAccountMeta, validityProof: ValidityProof, systemAccounts?: AccountMeta[]): TransactionInstruction;
|
|
6574
|
-
/**
|
|
6575
|
-
* Create an instruction to decompress one or more compressed accounts idempotently.
|
|
6576
|
-
*
|
|
6577
|
-
* @param programId Program ID for the compressible program
|
|
6578
|
-
* @param discriminator Instruction discriminator (8 bytes)
|
|
6579
|
-
* @param feePayer Fee payer
|
|
6580
|
-
* @param rentPayer Rent payer
|
|
6581
|
-
* @param solanaAccounts Array of PDA accounts to decompress
|
|
6582
|
-
* @param compressedAccountsData Array of compressed account data
|
|
6583
|
-
* @param bumps Array of PDA bumps
|
|
6584
|
-
* @param validityProof Validity proof for decompression
|
|
6585
|
-
* @param systemAccounts Additional system accounts (optional)
|
|
6586
|
-
* @param dataSchema Borsh schema for account data
|
|
6587
|
-
* @returns TransactionInstruction
|
|
6588
|
-
*/
|
|
6589
|
-
static decompressAccountsIdempotent<T = any>(programId: PublicKey, discriminator: Uint8Array | number[], feePayer: PublicKey, rentPayer: PublicKey, solanaAccounts: PublicKey[], compressedAccountsData: CompressedAccountData<T>[], bumps: number[], validityProof: ValidityProof, systemAccounts?: AccountMeta[], dataSchema?: any): TransactionInstruction;
|
|
6590
|
-
/**
|
|
6591
|
-
* Standard instruction discriminators for compressible instructions
|
|
6592
|
-
*/
|
|
6593
|
-
static readonly DISCRIMINATORS: {
|
|
6594
|
-
readonly INITIALIZE_COMPRESSION_CONFIG: readonly [133, 228, 12, 169, 56, 76, 222, 61];
|
|
6595
|
-
readonly UPDATE_COMPRESSION_CONFIG: readonly [135, 215, 243, 81, 163, 146, 33, 70];
|
|
6596
|
-
readonly DECOMPRESS_ACCOUNTS_IDEMPOTENT: readonly [114, 67, 61, 123, 234, 31, 1, 112];
|
|
6597
|
-
};
|
|
6598
|
-
/**
|
|
6599
|
-
* Derive the compression config PDA address
|
|
6600
|
-
*
|
|
6601
|
-
* @param programId Program ID for the compressible program
|
|
6602
|
-
* @param configIndex Config index (defaults to 0)
|
|
6603
|
-
* @returns [PDA address, bump seed]
|
|
6604
|
-
*/
|
|
6605
|
-
static deriveCompressionConfigAddress(programId: PublicKey, configIndex?: number): [PublicKey, number];
|
|
6606
|
-
/**
|
|
6607
|
-
* Get the program data account address and its raw data for a given program
|
|
6608
|
-
*
|
|
6609
|
-
* @param programId Program ID
|
|
6610
|
-
* @param connection Solana connection
|
|
6611
|
-
* @returns Program data address and account info
|
|
6612
|
-
*/
|
|
6613
|
-
static getProgramDataAccount(programId: PublicKey, connection: _solana_web3_js.Connection): Promise<{
|
|
6614
|
-
programDataAddress: PublicKey;
|
|
6615
|
-
programDataAccountInfo: _solana_web3_js.AccountInfo<Buffer>;
|
|
6616
|
-
}>;
|
|
6617
|
-
/**
|
|
6618
|
-
* Check that the provided authority matches the program's upgrade authority
|
|
6619
|
-
*
|
|
6620
|
-
* @param programDataAccountInfo Program data account info
|
|
6621
|
-
* @param providedAuthority Authority to validate
|
|
6622
|
-
* @throws Error if authority doesn't match
|
|
6623
|
-
*/
|
|
6624
|
-
static checkProgramUpdateAuthority(programDataAccountInfo: _solana_web3_js.AccountInfo<Buffer>, providedAuthority: PublicKey): void;
|
|
6625
|
-
/**
|
|
6626
|
-
* Serialize instruction data for initializeCompressionConfig using Borsh
|
|
6627
|
-
*
|
|
6628
|
-
* @param compressionDelay Compression delay (in slots)
|
|
6629
|
-
* @param rentRecipient Rent recipient public key
|
|
6630
|
-
* @param addressSpace Array of address space public keys
|
|
6631
|
-
* @param configBump Optional config bump
|
|
6632
|
-
* @returns Serialized instruction data with discriminator
|
|
6633
|
-
*/
|
|
6634
|
-
static serializeInitializeCompressionConfigData(compressionDelay: number, rentRecipient: PublicKey, addressSpace: PublicKey[], configBump: number | null): Buffer;
|
|
6635
|
-
/**
|
|
6636
|
-
* Convert a compressed account to the format expected by instruction builders
|
|
6637
|
-
*
|
|
6638
|
-
* @param compressedAccount Compressed account from state
|
|
6639
|
-
* @param data Program-specific account data
|
|
6640
|
-
* @param seeds PDA seeds (without bump)
|
|
6641
|
-
* @param outputStateTreeIndex Output state tree index
|
|
6642
|
-
* @returns Compressed account data for instructions
|
|
6643
|
-
*/
|
|
6644
|
-
static createCompressedAccountData<T>(compressedAccount: CompressedAccount, data: T, seeds: Uint8Array[], outputStateTreeIndex: number): CompressedAccountData<T>;
|
|
6645
|
-
}
|
|
6646
|
-
|
|
6647
|
-
/**
|
|
6648
|
-
* Initialize a compression config for a compressible program
|
|
6649
|
-
*
|
|
6650
|
-
* @param rpc RPC connection to use
|
|
6651
|
-
* @param payer Fee payer
|
|
6652
|
-
* @param programId Program ID for the compressible program
|
|
6653
|
-
* @param authority Program upgrade authority
|
|
6654
|
-
* @param compressionDelay Compression delay (in slots)
|
|
6655
|
-
* @param rentRecipient Rent recipient public key
|
|
6656
|
-
* @param addressSpace Array of address space public keys
|
|
6657
|
-
* @param configBump Optional config bump (defaults to 0)
|
|
6658
|
-
* @param discriminator Optional custom discriminator (defaults to standard)
|
|
6659
|
-
* @param confirmOptions Options for confirming the transaction
|
|
6660
|
-
*
|
|
6661
|
-
* @return Signature of the confirmed transaction
|
|
6662
|
-
*/
|
|
6663
|
-
declare function initializeCompressionConfig(rpc: Rpc, payer: Signer, programId: PublicKey, authority: Signer, compressionDelay: number, rentRecipient: PublicKey, addressSpace: PublicKey[], configBump?: number | null, discriminator?: Uint8Array | number[], confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
|
|
6664
|
-
/**
|
|
6665
|
-
* Update a compression config for a compressible program
|
|
6666
|
-
*
|
|
6667
|
-
* @param rpc RPC connection to use
|
|
6668
|
-
* @param payer Fee payer
|
|
6669
|
-
* @param programId Program ID for the compressible program
|
|
6670
|
-
* @param authority Current config authority
|
|
6671
|
-
* @param newCompressionDelay Optional new compression delay
|
|
6672
|
-
* @param newRentRecipient Optional new rent recipient
|
|
6673
|
-
* @param newAddressSpace Optional new address space array
|
|
6674
|
-
* @param newUpdateAuthority Optional new update authority
|
|
6675
|
-
* @param discriminator Optional custom discriminator (defaults to standard)
|
|
6676
|
-
* @param confirmOptions Options for confirming the transaction
|
|
6677
|
-
*
|
|
6678
|
-
* @return Signature of the confirmed transaction
|
|
6679
|
-
*/
|
|
6680
|
-
declare function updateCompressionConfig(rpc: Rpc, payer: Signer, programId: PublicKey, authority: Signer, newCompressionDelay?: number | null, newRentRecipient?: PublicKey | null, newAddressSpace?: PublicKey[] | null, newUpdateAuthority?: PublicKey | null, discriminator?: Uint8Array | number[], confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
|
|
6681
|
-
/**
|
|
6682
|
-
* Compress a generic compressible account
|
|
6683
|
-
*
|
|
6684
|
-
* @param rpc RPC connection to use
|
|
6685
|
-
* @param payer Fee payer and signer
|
|
6686
|
-
* @param programId Program ID for the compressible program
|
|
6687
|
-
* @param pdaToCompress PDA to compress
|
|
6688
|
-
* @param rentRecipient Rent recipient public key
|
|
6689
|
-
* @param compressedAccountMeta Compressed account metadata
|
|
6690
|
-
* @param validityProof Validity proof for compression
|
|
6691
|
-
* @param systemAccounts Additional system accounts (trees, queues, etc.)
|
|
6692
|
-
* @param discriminator Custom instruction discriminator (8 bytes)
|
|
6693
|
-
* @param confirmOptions Options for confirming the transaction
|
|
6694
|
-
*
|
|
6695
|
-
* @return Signature of the confirmed transaction
|
|
6696
|
-
*/
|
|
6697
|
-
declare function compressAccount(rpc: Rpc, payer: Signer, programId: PublicKey, pdaToCompress: PublicKey, rentRecipient: PublicKey, compressedAccountMeta: CompressedAccountMeta, validityProof: ValidityProof, systemAccounts: AccountMeta[], discriminator: Uint8Array | number[], confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
|
|
6698
|
-
/**
|
|
6699
|
-
* Decompress one or more compressed accounts idempotently
|
|
6700
|
-
*
|
|
6701
|
-
* @param rpc RPC connection to use
|
|
6702
|
-
* @param payer Fee payer
|
|
6703
|
-
* @param programId Program ID for the compressible program
|
|
6704
|
-
* @param feePayer Fee payer (can be same as payer)
|
|
6705
|
-
* @param rentPayer Rent payer
|
|
6706
|
-
* @param solanaAccounts Array of PDA accounts to decompress
|
|
6707
|
-
* @param compressedAccountsData Array of compressed account data
|
|
6708
|
-
* @param bumps Array of PDA bumps
|
|
6709
|
-
* @param validityProof Validity proof for decompression
|
|
6710
|
-
* @param systemAccounts Additional system accounts (trees, queues, etc.)
|
|
6711
|
-
* @param dataSchema Borsh schema for account data serialization
|
|
6712
|
-
* @param discriminator Optional custom discriminator (defaults to standard)
|
|
6713
|
-
* @param confirmOptions Options for confirming the transaction
|
|
6714
|
-
*
|
|
6715
|
-
* @return Signature of the confirmed transaction
|
|
6716
|
-
*/
|
|
6717
|
-
declare function decompressAccountsIdempotent<T = any>(rpc: Rpc, payer: Signer, programId: PublicKey, feePayer: Signer, rentPayer: Signer, solanaAccounts: PublicKey[], compressedAccountsData: CompressedAccountData<T>[], bumps: number[], validityProof: ValidityProof, systemAccounts: AccountMeta[], dataSchema: any, // borsh.Layout<T>
|
|
6718
|
-
discriminator?: Uint8Array | number[], confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
|
|
6719
|
-
|
|
6720
|
-
/**
|
|
6721
|
-
* Derive the compression config PDA address
|
|
6722
|
-
*/
|
|
6723
|
-
declare function deriveCompressionConfigAddress(programId: PublicKey, configIndex?: number): [PublicKey, number];
|
|
6724
|
-
/**
|
|
6725
|
-
* Get the program data account address and its raw data for a given program.
|
|
6726
|
-
*/
|
|
6727
|
-
declare function getProgramDataAccount(programId: PublicKey, connection: Connection): Promise<{
|
|
6728
|
-
programDataAddress: PublicKey;
|
|
6729
|
-
programDataAccountInfo: AccountInfo<Buffer>;
|
|
6730
|
-
}>;
|
|
6731
|
-
/**
|
|
6732
|
-
* Check that the provided authority matches the program's upgrade authority.
|
|
6733
|
-
*/
|
|
6734
|
-
declare function checkProgramUpdateAuthority(programDataAccountInfo: AccountInfo<Buffer>, providedAuthority: PublicKey): void;
|
|
6735
|
-
|
|
6736
|
-
/**
|
|
6737
|
-
* Convert a compressed account to the format expected by instruction builders
|
|
6738
|
-
*/
|
|
6739
|
-
declare function createCompressedAccountData<T>(compressedAccount: CompressedAccount, data: T, seeds: Uint8Array[], outputStateTreeIndex: number): CompressedAccountData<T>;
|
|
6740
|
-
|
|
6741
|
-
export { ADDRESS_QUEUE_ROLLOVER_FEE, ADDRESS_TREE_NETWORK_FEE, ALICE, type AccountProofInput, type AccountProofInputs, AccountProofResult, type ActiveTreeBundle, type AddressProofInputs, type AddressTreeInfo, type AddressWithTree, type AddressWithTreeInfo, AppendLeavesInputLayout, AppendNullifyCreateAddressInputsMetaLayout, type BN254, BOB, BalanceResult, CHARLIE, COMPRESSED_TOKEN_PROGRAM_ID, COMPRESSIBLE_DISCRIMINATORS, COMPUTE_BUDGET_PATTERN, type ClientSubscriptionId, type CompressedAccount, type CompressedAccountData$1 as CompressedAccountData, CompressedAccountLayout, type CompressedAccountLegacy, type CompressedAccountMeta, CompressedAccountMetaSchema, CompressedAccountResult, CompressedAccountResultV2, type CompressedAccountWithMerkleContext, type CompressedAccountWithMerkleContextLegacy, CompressedAccountsByOwnerResult, CompressedAccountsByOwnerResultV2, type CompressedCpiContext, CompressedCpiContextLayout, type CompressedMintTokenHolders, CompressedMintTokenHoldersResult, type CompressedProof, CompressedProofLayout, type CompressedProofWithContext, CompressedTokenAccountResult, CompressedTokenAccountResultV2, CompressedTokenAccountsByOwnerOrDelegateResult, CompressedTokenAccountsByOwnerOrDelegateResultV2, type CompressedTransaction, CompressedTransactionResult, CompressedTransactionResultV2, CompressibleInstruction, type CompressionApiInterface, CreateUtxoError, CreateUtxoErrorCode, DAVE, DEFAULT_MERKLE_TREE_HEIGHT, DEFAULT_MERKLE_TREE_ROOTS, DEFAULT_ZERO, type DecompressMultipleAccountsIdempotentData, type EventWithParsedTokenTlvData, FIELD_SIZE, type GenericCompressAccountInstruction, GenericCompressAccountInstructionSchema, type GetCompressedAccountConfig, type GetCompressedAccountsByOwnerConfig, type GetCompressedAccountsConfig, type GetCompressedAccountsFilter, type GetCompressedTokenAccountsByOwnerOrDelegateOptions, HIGHEST_ADDRESS_PLUS_ONE, HashError, HashErrorCode, type HashWithTree, type HashWithTreeInfo, HealthResult, type HexBatchInputsForProver, type HexInputsForProver, IDL, INSERT_INTO_QUEUES_DISCRIMINATOR, INVOKE_CPI_DISCRIMINATOR, INVOKE_CPI_WITH_ACCOUNT_INFO_DISCRIMINATOR, INVOKE_CPI_WITH_READ_ONLY_DISCRIMINATOR, INVOKE_DISCRIMINATOR, InAccountLayout, IndexedArray, IndexedElement, IndexedElementBundle, type InputTokenDataWithContext, InsertAddressInputLayout, InsertNullifierInputLayout, type InstructionDataInvoke, type InstructionDataInvokeCpi, InstructionDataInvokeCpiLayout, InstructionDataInvokeCpiWithReadOnlyLayout, InstructionDataInvokeLayout, type LatestNonVotingSignatures, type LatestNonVotingSignaturesPaginated, LatestNonVotingSignaturesResult, LatestNonVotingSignaturesResultPaginated, LightSystemProgram, type LightSystemProgram$1 as LightSystemProgramIDL, type LightWasm, LookupTableError, LookupTableErrorCode, type MerkleContext, MerkleContextLayout, type MerkleContextLegacy, type MerkleContextWithMerkleProof, type MerkleContextWithNewAddressProof, MerkleProofResult, MerkleProofResultV2, MerkleTree, MerkleTreeError, MerkleTreeErrorCode, type MerkleTreeSequenceNumber, MerkleTreeSequenceNumberLayout, MultipleCompressedAccountsResult, MultipleCompressedAccountsResultV2, MultipleMerkleProofsResult, MultipleMerkleProofsResultV2, NativeBalanceResult, type NewAddressParams, NewAddressParamsAssignedPackedLayout, NewAddressParamsLayout, type NewAddressParamsPacked, type NewAddressProofInput, NewAddressProofResult, type NonInclusionJsonStruct, type NonInclusionMerkleProofInputs, type NullifierMetadata, type OutputCompressedAccountWithPackedContext, PackedAccounts, PackedAccountsSmall, type PackedAddressTreeInfo, type PackedCompressedAccountWithMerkleContext, PackedMerkleContextLayout, type PackedMerkleContextLegacy, PackedReadOnlyAddressLayout, PackedReadOnlyCompressedAccountLayout, type PackedStateTreeInfo, PackedStateTreeInfoSchema, type PackedStateTreeInfos, type PackedTreeInfos, type PaginatedOptions, type ParsedTokenAccount, ProofError, ProofErrorCode, type PublicTransactionEvent, PublicTransactionEventLayout, type RootIndex, RootIndexResultV2, Rpc, RpcError, RpcErrorCode, type RpcResult, type RpcResultError, type RpcResultSuccess, STATE_MERKLE_TREE_NETWORK_FEE, STATE_MERKLE_TREE_ROLLOVER_FEE, SelectInUtxosError, SelectInUtxosErrorCode, SignatureListResult, SignatureListWithCursorResult, type SignatureWithMetadata, SlotResult, type StateTreeInfo, type StateTreeLUTPair, SystemAccountMetaConfig, SystemAccountPubkeys, TRANSACTION_MERKLE_TREE_ROLLOVER_THRESHOLD, TestRpc, type TestRpcConfig, type TokenBalance, TokenBalanceListResult, TokenBalanceListResultV2, TokenBalanceResult, type TokenData$1 as TokenData, TokenDataLayout, TokenDataResult, type TreeInfo, TreeType, UTXO_MERGE_MAXIMUM, UTXO_MERGE_THRESHOLD, type UpdateCompressionConfigData, UpdateCompressionConfigSchema, UtilsError, UtilsErrorCode, UtxoError, UtxoErrorCode, VERSION, type ValidityProof, ValidityProofResult, ValidityProofResultV2, ValidityProofSchema, type ValidityProofWithContext, type ValidityProofWithContextV2, type WithContext, type WithCursor, type WithRpcContext, accountCompressionProgram, addressQueue, addressTree, addressTreeV2, airdropSol, batchCpiContext, batchMerkleTree, batchQueue, bn, bufToDecStr, buildAndSignTx, buildTx, byteArrayToKeypair, calculateComputeUnitPrice, checkProgramUpdateAuthority, checkValidityProofShape, compress, compressAccount, CompressibleInstruction as compressibleInstruction, confirmConfig, confirmTransaction, confirmTx, convertInvokeCpiWithReadOnlyToInvoke, convertMerkleProofsWithContextToHex, convertNonInclusionMerkleProofInputsToHex, convertToPublicTransactionEvent, cpiContext2Pubkey, cpiContextPubkey, createAccount, createAccountWithLamports, createBN254, createCompressAccountInstruction, createCompressedAccountData, createCompressedAccountDataSchema, createCompressedAccountLegacy, createCompressedAccountMeta, createCompressedAccountWithMerkleContextLegacy, createDecompressAccountsIdempotentInstruction, createDecompressMultipleAccountsIdempotentDataSchema, createInitializeCompressionConfigInstruction, createMerkleContextLegacy, createPackedAccounts, createPackedAccountsSmall, createPackedAccountsSmallWithCpiContext, createPackedAccountsWithCpiContext, createRootIndex, createRootIndexByIndex, createRpc, createRpcResult, createStateTreeLookupTable, createUpdateCompressionConfigInstruction, decodeInstructionDataInvoke, decodeInstructionDataInvokeCpi, decodeInstructionDataInvokeCpiWithReadOnly, decodePublicTransactionEvent, decompress, decompressAccountsIdempotent, dedupeSigner, deepEqual, defaultStateTreeLookupTables, defaultStaticAccounts, defaultStaticAccountsStruct, defaultTestStateTreeAccounts, defaultTestStateTreeAccounts2, deriveAddress, deriveAddressSeed, deriveAddressV2, deriveCompressionConfigAddress, deserializeAppendNullifyCreateAddressInputsIndexer, encodeBN254toBase58, encodeInstructionDataInvoke, encodePublicTransactionEvent, extendStateTreeLookupTable, featureFlags, getAccountCompressionAuthority, getAllStateTreeInfos, getCompressedTokenAccountByHashTest, getCompressedTokenAccounts, getCompressedTokenAccountsByDelegateTest, getCompressedTokenAccountsByOwnerTest, getConnection, getDefaultAddressTreeInfo, getIndexOrAdd, getLightSystemAccountMetas, getLightSystemAccountMetasSmall, getParsedEvents, getProgramDataAccount, getPublicInputHash, getRegisteredProgramPda, getStateTreeInfoByPubkey, getTestKeypair, getTestRpc, getTreeInfoByPubkey, hashToBn254FieldSizeBe, hashVWithBumpSeed, hashvToBn254FieldSizeBe, initializeCompressionConfig, invokeAccountsLayout, type invokeAccountsLayoutParams, isLocalTest, isSmallerThanBn254FieldSizeBe, jsonRpcResult, jsonRpcResultAndContext, lightSystemProgram, localTestActiveStateTreeInfos, merkleTree2Pubkey, merkletreePubkey, negateAndCompressProof, newAccountWithLamports, noopProgram, nullifiedStateTreeLookupTableDevnet, nullifiedStateTreeLookupTableMainnet, nullifierQueue2Pubkey, nullifierQueuePubkey, nullifyLookupTable, packCompressedAccounts, packNewAddressParams, packTreeInfos, packTreeInfosWithPubkeys, padOutputStateMerkleTrees, parseAccountData, parseEvents, parseLightTransaction, parsePublicTransactionEventWithIdl, parseTokenLayoutWithIdl, pickRandomTreeAndQueue, pipe, placeholderValidityProof, proofFromJsonStruct, proverRequest, pushUniqueItems, rpcRequest, selectMinCompressedSolAccountsForTransfer, selectStateTreeInfo, sendAndConfirmTx, serializeInitializeCompressionConfigData, serializeInstructionData, sleep, stateTreeLookupTableDevnet, stateTreeLookupTableMainnet, sumUpLamports, toAccountMetas, toArray, toCamelCase, toHex, toUnixTimestamp, transfer, updateCompressionConfig, validateNumbers, validateNumbersForInclusionProof, validateNumbersForNonInclusionProof, validateNumbersForProof, validateSameOwner, validateSufficientBalance, versionedEndpoint, wrapBigNumbersAsStrings };
|
|
6183
|
+
export { ADDRESS_QUEUE_ROLLOVER_FEE, ADDRESS_TREE_NETWORK_FEE, ALICE, type AccountProofInput, AccountProofResult, type ActiveTreeBundle, type AddressTreeInfo, type AddressWithTree, type AddressWithTreeInfo, AppendLeavesInputLayout, AppendNullifyCreateAddressInputsMetaLayout, type BN254, BOB, BalanceResult, CHARLIE, COMPRESSED_TOKEN_PROGRAM_ID, COMPUTE_BUDGET_PATTERN, type ClientSubscriptionId, type CompressedAccount, type CompressedAccountData, CompressedAccountLayout, type CompressedAccountLegacy, type CompressedAccountMeta, CompressedAccountResult, CompressedAccountResultV2, type CompressedAccountWithMerkleContext, type CompressedAccountWithMerkleContextLegacy, CompressedAccountsByOwnerResult, CompressedAccountsByOwnerResultV2, type CompressedCpiContext, CompressedCpiContextLayout, type CompressedMintTokenHolders, CompressedMintTokenHoldersResult, type CompressedProof, CompressedProofLayout, type CompressedProofWithContext, CompressedTokenAccountResult, CompressedTokenAccountResultV2, CompressedTokenAccountsByOwnerOrDelegateResult, CompressedTokenAccountsByOwnerOrDelegateResultV2, type CompressedTransaction, CompressedTransactionResult, CompressedTransactionResultV2, type CompressionApiInterface, CreateUtxoError, CreateUtxoErrorCode, DAVE, DEFAULT_MERKLE_TREE_HEIGHT, DEFAULT_MERKLE_TREE_ROOTS, DEFAULT_ZERO, type EventWithParsedTokenTlvData, FIELD_SIZE, type GetCompressedAccountConfig, type GetCompressedAccountsByOwnerConfig, type GetCompressedAccountsConfig, type GetCompressedAccountsFilter, type GetCompressedTokenAccountsByOwnerOrDelegateOptions, HIGHEST_ADDRESS_PLUS_ONE, HashError, HashErrorCode, type HashWithTree, type HashWithTreeInfo, HealthResult, type HexBatchInputsForProver, type HexInputsForProver, IDL, INSERT_INTO_QUEUES_DISCRIMINATOR, INVOKE_CPI_DISCRIMINATOR, INVOKE_CPI_WITH_ACCOUNT_INFO_DISCRIMINATOR, INVOKE_CPI_WITH_READ_ONLY_DISCRIMINATOR, INVOKE_DISCRIMINATOR, InAccountLayout, IndexedArray, IndexedElement, IndexedElementBundle, type InputTokenDataWithContext, InsertAddressInputLayout, InsertNullifierInputLayout, type InstructionDataInvoke, type InstructionDataInvokeCpi, InstructionDataInvokeCpiLayout, InstructionDataInvokeCpiWithReadOnlyLayout, InstructionDataInvokeLayout, type LatestNonVotingSignatures, type LatestNonVotingSignaturesPaginated, LatestNonVotingSignaturesResult, LatestNonVotingSignaturesResultPaginated, LightSystemProgram, type LightSystemProgram$1 as LightSystemProgramIDL, type LightWasm, LookupTableError, LookupTableErrorCode, type MerkleContext, MerkleContextLayout, type MerkleContextLegacy, type MerkleContextWithMerkleProof, type MerkleContextWithNewAddressProof, MerkleProofResult, MerkleProofResultV2, MerkleTree, MerkleTreeError, MerkleTreeErrorCode, type MerkleTreeSequenceNumber, MerkleTreeSequenceNumberLayout, MultipleCompressedAccountsResult, MultipleCompressedAccountsResultV2, MultipleMerkleProofsResult, MultipleMerkleProofsResultV2, NativeBalanceResult, type NewAddressParams, NewAddressParamsAssignedPackedLayout, NewAddressParamsLayout, type NewAddressParamsPacked, type NewAddressProofInput, NewAddressProofResult, type NonInclusionJsonStruct, type NonInclusionMerkleProofInputs, type NullifierMetadata, type OutputCompressedAccountWithPackedContext, PackedAccounts, type PackedAddressTreeInfo, type PackedCompressedAccountWithMerkleContext, PackedMerkleContextLayout, type PackedMerkleContextLegacy, PackedReadOnlyAddressLayout, PackedReadOnlyCompressedAccountLayout, type PackedStateTreeInfo, type PackedStateTreeInfos, type PackedTreeInfos, type PaginatedOptions, type ParsedTokenAccount, ProofError, ProofErrorCode, type PublicTransactionEvent, PublicTransactionEventLayout, RootIndexResultV2, Rpc, RpcError, RpcErrorCode, type RpcResult, type RpcResultError, type RpcResultSuccess, STATE_MERKLE_TREE_NETWORK_FEE, STATE_MERKLE_TREE_ROLLOVER_FEE, SelectInUtxosError, SelectInUtxosErrorCode, SignatureListResult, SignatureListWithCursorResult, type SignatureWithMetadata, SlotResult, type StateTreeInfo, type StateTreeLUTPair, SystemAccountMetaConfig, TRANSACTION_MERKLE_TREE_ROLLOVER_THRESHOLD, TestRpc, type TestRpcConfig, type TokenBalance, TokenBalanceListResult, TokenBalanceListResultV2, TokenBalanceResult, type TokenData$1 as TokenData, TokenDataLayout, TokenDataResult, type TreeInfo, TreeType, UTXO_MERGE_MAXIMUM, UTXO_MERGE_THRESHOLD, UtilsError, UtilsErrorCode, UtxoError, UtxoErrorCode, VERSION, type ValidityProof, ValidityProofResult, ValidityProofResultV2, type ValidityProofWithContext, type WithContext, type WithCursor, type WithRpcContext, accountCompressionProgram, addressQueue, addressTree, airdropSol, batchAddressTree, batchCpiContext1, batchCpiContext2, batchCpiContext3, batchCpiContext4, batchCpiContext5, batchMerkleTree, batchMerkleTree1, batchMerkleTree2, batchMerkleTree3, batchMerkleTree4, batchMerkleTree5, batchQueue, batchQueue1, batchQueue2, batchQueue3, batchQueue4, batchQueue5, bn, bufToDecStr, buildAndSignTx, buildTx, byteArrayToKeypair, calculateComputeUnitPrice, checkValidityProofShape, compress, confirmConfig, confirmTransaction, confirmTx, convertInvokeCpiWithReadOnlyToInvoke, convertMerkleProofsWithContextToHex, convertNonInclusionMerkleProofInputsToHex, convertToPublicTransactionEvent, cpiContext2Pubkey, cpiContextPubkey, createAccount, createAccountWithLamports, createBN254, createCompressedAccountLegacy, createCompressedAccountMeta, createCompressedAccountWithMerkleContextLegacy, createMerkleContextLegacy, createRpc, createRpcResult, createStateTreeLookupTable, decodeInstructionDataInvoke, decodeInstructionDataInvokeCpi, decodeInstructionDataInvokeCpiWithReadOnly, decodePublicTransactionEvent, decompress, dedupeSigner, deepEqual, defaultStateTreeLookupTables, defaultStaticAccounts, defaultStaticAccountsStruct, defaultTestStateTreeAccounts, defaultTestStateTreeAccounts2, deriveAddress, deriveAddressSeed, deriveAddressSeedV2, deriveAddressV2, deserializeAppendNullifyCreateAddressInputsIndexer, encodeBN254toBase58, encodeInstructionDataInvoke, encodePublicTransactionEvent, extendStateTreeLookupTable, featureFlags, getAccountCompressionAuthority, getAllStateTreeInfos, getCompressedTokenAccountByHashTest, getCompressedTokenAccounts, getCompressedTokenAccountsByDelegateTest, getCompressedTokenAccountsByOwnerTest, getConnection, getDefaultAddressTreeInfo, getIndexOrAdd, getLightSystemAccountMetas, getLightSystemAccountMetasV2, getParsedEvents, getPublicInputHash, getRegisteredProgramPda, getStateTreeInfoByPubkey, getTestKeypair, getTestRpc, getTreeInfoByPubkey, hashToBn254FieldSizeBe, hashvToBn254FieldSizeBe, hashvToBn254FieldSizeBeU8Array, invokeAccountsLayout, type invokeAccountsLayoutParams, isLocalTest, isSmallerThanBn254FieldSizeBe, jsonRpcResult, jsonRpcResultAndContext, lightSystemProgram, localTestActiveStateTreeInfos, merkleTree2Pubkey, merkletreePubkey, negateAndCompressProof, newAccountWithLamports, noopProgram, nullifiedStateTreeLookupTableDevnet, nullifiedStateTreeLookupTableMainnet, nullifierQueue2Pubkey, nullifierQueuePubkey, nullifyLookupTable, packCompressedAccounts, packNewAddressParams, packTreeInfos, padOutputStateMerkleTrees, parseAccountData, parseEvents, parseLightTransaction, parsePublicTransactionEventWithIdl, parseTokenLayoutWithIdl, pickRandomTreeAndQueue, pipe, placeholderValidityProof, proofFromJsonStruct, proverRequest, pushUniqueItems, rpcRequest, selectMinCompressedSolAccountsForTransfer, selectStateTreeInfo, sendAndConfirmTx, sleep, stateTreeLookupTableDevnet, stateTreeLookupTableMainnet, sumUpLamports, testBatchAddressTree, toAccountMetas, toArray, toCamelCase, toHex, toUnixTimestamp, transfer, validateNumbers, validateNumbersForInclusionProof, validateNumbersForNonInclusionProof, validateNumbersForProof, validateSameOwner, validateSufficientBalance, versionedEndpoint, wrapBigNumbersAsStrings };
|