@lightprotocol/stateless.js 0.20.3 → 0.20.4
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/actions/common.d.ts +1 -4
- package/dist/cjs/browser/actions/compress.d.ts +2 -14
- package/dist/cjs/browser/actions/create-account.d.ts +3 -27
- package/dist/cjs/browser/actions/decompress.d.ts +2 -14
- package/dist/cjs/browser/actions/transfer.d.ts +2 -15
- package/dist/cjs/browser/constants.d.ts +15 -30
- package/dist/cjs/browser/errors.d.ts +49 -40
- package/dist/cjs/browser/idl.d.ts +45 -45
- package/dist/cjs/browser/index.cjs +1 -9611
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/browser/instruction/pack-compressed-accounts.d.ts +5 -24
- package/dist/cjs/browser/programs/layout.d.ts +17 -39
- package/dist/cjs/browser/programs/system.d.ts +10 -61
- package/dist/cjs/browser/rpc-interface.d.ts +871 -1127
- package/dist/cjs/browser/rpc.d.ts +34 -158
- package/dist/cjs/browser/state/BN254.d.ts +2 -9
- package/dist/cjs/browser/state/compressed-account.d.ts +6 -23
- package/dist/cjs/browser/state/types.d.ts +1 -1
- package/dist/cjs/browser/test-helpers/merkle-tree/indexed-array.d.ts +4 -18
- package/dist/cjs/browser/test-helpers/merkle-tree/merkle-tree.d.ts +6 -19
- package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-accounts.d.ts +3 -12
- package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +5 -21
- package/dist/cjs/browser/test-helpers/test-rpc/get-parsed-events.d.ts +4 -14
- package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +31 -135
- package/dist/cjs/browser/test-helpers/test-utils.d.ts +1 -5
- package/dist/cjs/browser/utils/address.d.ts +3 -12
- package/dist/cjs/browser/utils/airdrop.d.ts +2 -14
- package/dist/cjs/browser/utils/calculate-compute-unit-price.d.ts +1 -4
- package/dist/cjs/browser/utils/conversion.d.ts +5 -9
- package/dist/cjs/browser/utils/get-light-state-tree-info.d.ts +4 -28
- package/dist/cjs/browser/utils/parse-validity-proof.d.ts +1 -3
- package/dist/cjs/browser/utils/pipe.d.ts +1 -4
- package/dist/cjs/browser/utils/send-and-confirm.d.ts +11 -42
- package/dist/cjs/browser/utils/validation.d.ts +6 -9
- package/dist/cjs/node/actions/common.d.ts +1 -4
- package/dist/cjs/node/actions/compress.d.ts +2 -14
- package/dist/cjs/node/actions/create-account.d.ts +3 -27
- package/dist/cjs/node/actions/decompress.d.ts +2 -14
- package/dist/cjs/node/actions/transfer.d.ts +2 -15
- package/dist/cjs/node/constants.d.ts +15 -30
- package/dist/cjs/node/errors.d.ts +49 -40
- package/dist/cjs/node/idl.d.ts +45 -45
- package/dist/cjs/node/index.cjs +1 -8310
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/node/instruction/pack-compressed-accounts.d.ts +5 -24
- package/dist/cjs/node/programs/layout.d.ts +17 -39
- package/dist/cjs/node/programs/system.d.ts +10 -61
- package/dist/cjs/node/rpc-interface.d.ts +871 -1127
- package/dist/cjs/node/rpc.d.ts +34 -158
- package/dist/cjs/node/state/BN254.d.ts +2 -9
- package/dist/cjs/node/state/compressed-account.d.ts +6 -23
- package/dist/cjs/node/state/types.d.ts +1 -1
- package/dist/cjs/node/test-helpers/merkle-tree/indexed-array.d.ts +4 -18
- package/dist/cjs/node/test-helpers/merkle-tree/merkle-tree.d.ts +6 -19
- package/dist/cjs/node/test-helpers/test-rpc/get-compressed-accounts.d.ts +3 -12
- package/dist/cjs/node/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +5 -21
- package/dist/cjs/node/test-helpers/test-rpc/get-parsed-events.d.ts +4 -14
- package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +31 -135
- package/dist/cjs/node/test-helpers/test-utils.d.ts +1 -5
- package/dist/cjs/node/utils/address.d.ts +3 -12
- package/dist/cjs/node/utils/airdrop.d.ts +2 -14
- package/dist/cjs/node/utils/calculate-compute-unit-price.d.ts +1 -4
- package/dist/cjs/node/utils/conversion.d.ts +5 -9
- package/dist/cjs/node/utils/get-light-state-tree-info.d.ts +4 -28
- package/dist/cjs/node/utils/parse-validity-proof.d.ts +1 -3
- package/dist/cjs/node/utils/pipe.d.ts +1 -4
- package/dist/cjs/node/utils/send-and-confirm.d.ts +11 -42
- package/dist/cjs/node/utils/validation.d.ts +6 -9
- package/dist/types/index.d.ts +1131 -2097
- package/package.json +2 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,23 +1,5 @@
|
|
|
1
1
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
|
-
import {
|
|
3
|
-
PublicKey,
|
|
4
|
-
Connection,
|
|
5
|
-
Commitment,
|
|
6
|
-
Keypair,
|
|
7
|
-
TransactionInstruction,
|
|
8
|
-
AddressLookupTableAccount,
|
|
9
|
-
VersionedTransaction,
|
|
10
|
-
ConfirmOptions,
|
|
11
|
-
TransactionSignature,
|
|
12
|
-
RpcResponseAndContext,
|
|
13
|
-
SignatureResult,
|
|
14
|
-
Signer,
|
|
15
|
-
DataSlice,
|
|
16
|
-
MemcmpFilter,
|
|
17
|
-
ConnectionConfig,
|
|
18
|
-
ParsedTransactionWithMeta,
|
|
19
|
-
AccountMeta,
|
|
20
|
-
} from '@solana/web3.js';
|
|
2
|
+
import { PublicKey, Connection, Commitment, Keypair, TransactionInstruction, AddressLookupTableAccount, VersionedTransaction, ConfirmOptions, TransactionSignature, RpcResponseAndContext, SignatureResult, Signer, DataSlice, MemcmpFilter, ConnectionConfig, ParsedTransactionWithMeta, AccountMeta } from '@solana/web3.js';
|
|
21
3
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
22
4
|
import { Struct } from 'superstruct';
|
|
23
5
|
import BN from 'bn.js';
|
|
@@ -31,23 +13,13 @@ import { Layout } from '@coral-xyz/borsh';
|
|
|
31
13
|
* are used to from working with the web3.js PublicKey type.
|
|
32
14
|
*/
|
|
33
15
|
type BN254 = BN;
|
|
34
|
-
declare const bn: (
|
|
35
|
-
number: string | number | BN | Buffer$1 | Uint8Array | number[],
|
|
36
|
-
base?: number | 'hex' | undefined,
|
|
37
|
-
endian?: BN.Endianness | undefined,
|
|
38
|
-
) => BN;
|
|
16
|
+
declare const bn: (number: string | number | BN | Buffer$1 | Uint8Array | number[], base?: number | "hex" | undefined, endian?: BN.Endianness | undefined) => BN;
|
|
39
17
|
/** Create a bigint instance with <254-bit max size and base58 capabilities */
|
|
40
|
-
declare const createBN254: (
|
|
41
|
-
number: string | number | BN | Buffer$1 | Uint8Array | number[],
|
|
42
|
-
base?: number | 'hex' | 'base58' | undefined,
|
|
43
|
-
) => BN254;
|
|
18
|
+
declare const createBN254: (number: string | number | BN | Buffer$1 | Uint8Array | number[], base?: number | "hex" | "base58" | undefined) => BN254;
|
|
44
19
|
/** Convert <254-bit bigint to Base58 string. */
|
|
45
20
|
declare function encodeBN254toBase58(bigintNumber: BN): string;
|
|
46
21
|
|
|
47
|
-
declare function deriveAddressSeed(
|
|
48
|
-
seeds: Uint8Array[],
|
|
49
|
-
programId: PublicKey,
|
|
50
|
-
): Uint8Array;
|
|
22
|
+
declare function deriveAddressSeed(seeds: Uint8Array[], programId: PublicKey): Uint8Array;
|
|
51
23
|
/**
|
|
52
24
|
* Derive an address for a compressed account from a seed and an address Merkle
|
|
53
25
|
* tree public key.
|
|
@@ -57,10 +29,7 @@ declare function deriveAddressSeed(
|
|
|
57
29
|
* defaultTestStateTreeAccounts().addressTree
|
|
58
30
|
* @returns Derived address
|
|
59
31
|
*/
|
|
60
|
-
declare function deriveAddress(
|
|
61
|
-
seed: Uint8Array,
|
|
62
|
-
addressMerkleTreePubkey?: PublicKey,
|
|
63
|
-
): PublicKey;
|
|
32
|
+
declare function deriveAddress(seed: Uint8Array, addressMerkleTreePubkey?: PublicKey): PublicKey;
|
|
64
33
|
interface NewAddressParams {
|
|
65
34
|
/**
|
|
66
35
|
* Seed for the compressed account. Must be seed used to derive
|
|
@@ -108,30 +77,17 @@ interface NewAddressParamsPacked {
|
|
|
108
77
|
* @param remainingAccounts Remaining accounts
|
|
109
78
|
* @returns Packed new address params
|
|
110
79
|
*/
|
|
111
|
-
declare function packNewAddressParams(
|
|
112
|
-
newAddressParams: NewAddressParams[],
|
|
113
|
-
remainingAccounts: PublicKey[],
|
|
114
|
-
): {
|
|
80
|
+
declare function packNewAddressParams(newAddressParams: NewAddressParams[], remainingAccounts: PublicKey[]): {
|
|
115
81
|
newAddressParamsPacked: NewAddressParamsPacked[];
|
|
116
82
|
remainingAccounts: PublicKey[];
|
|
117
83
|
};
|
|
118
84
|
|
|
119
|
-
declare function airdropSol({
|
|
120
|
-
connection,
|
|
121
|
-
lamports,
|
|
122
|
-
recipientPublicKey,
|
|
123
|
-
}: {
|
|
85
|
+
declare function airdropSol({ connection, lamports, recipientPublicKey, }: {
|
|
124
86
|
connection: Connection;
|
|
125
87
|
lamports: number;
|
|
126
88
|
recipientPublicKey: PublicKey;
|
|
127
89
|
}): Promise<string>;
|
|
128
|
-
declare function confirmTransaction(
|
|
129
|
-
connection: Connection,
|
|
130
|
-
signature: string,
|
|
131
|
-
confirmation?: Commitment,
|
|
132
|
-
): Promise<
|
|
133
|
-
_solana_web3_js.RpcResponseAndContext<_solana_web3_js.SignatureResult>
|
|
134
|
-
>;
|
|
90
|
+
declare function confirmTransaction(connection: Connection, signature: string, confirmation?: Commitment): Promise<_solana_web3_js.RpcResponseAndContext<_solana_web3_js.SignatureResult>>;
|
|
135
91
|
|
|
136
92
|
declare function byteArrayToKeypair(byteArray: number[]): Keypair;
|
|
137
93
|
/**
|
|
@@ -141,6 +97,9 @@ declare function byteArrayToKeypair(byteArray: number[]): Keypair;
|
|
|
141
97
|
declare function toHex(bn: BN): string;
|
|
142
98
|
declare const toArray: <T>(value: T | T[]) => T[];
|
|
143
99
|
declare const bufToDecStr: (buf: Buffer$1) => string;
|
|
100
|
+
declare function isSmallerThanBn254FieldSizeBe(bytes: Buffer$1): boolean;
|
|
101
|
+
declare const toCamelCase: (object: any) => any;
|
|
102
|
+
/**
|
|
144
103
|
/**
|
|
145
104
|
* Hash the provided `bytes` with Keccak256 and ensure the result fits in the
|
|
146
105
|
* BN254 prime field by repeatedly hashing the inputs with various "bump seeds"
|
|
@@ -148,9 +107,7 @@ declare const bufToDecStr: (buf: Buffer$1) => string;
|
|
|
148
107
|
*
|
|
149
108
|
* @deprecated Use `hashvToBn254FieldSizeBe` instead.
|
|
150
109
|
*/
|
|
151
|
-
declare function hashToBn254FieldSizeBe(
|
|
152
|
-
bytes: Buffer$1,
|
|
153
|
-
): [Buffer$1, number] | null;
|
|
110
|
+
declare function hashToBn254FieldSizeBe(bytes: Buffer$1): [Buffer$1, number] | null;
|
|
154
111
|
/**
|
|
155
112
|
* Hash the provided `bytes` with Keccak256 and ensure that the result fits in
|
|
156
113
|
* the BN254 prime field by truncating the resulting hash to 31 bytes.
|
|
@@ -162,9 +119,6 @@ declare function hashToBn254FieldSizeBe(
|
|
|
162
119
|
declare function hashvToBn254FieldSizeBe(bytes: Uint8Array[]): Uint8Array;
|
|
163
120
|
/** Mutates array in place */
|
|
164
121
|
declare function pushUniqueItems<T>(items: T[], map: T[]): void;
|
|
165
|
-
declare function toCamelCase(
|
|
166
|
-
obj: Array<any> | unknown | any,
|
|
167
|
-
): Array<any> | unknown | any;
|
|
168
122
|
|
|
169
123
|
interface GnarkProofJson {
|
|
170
124
|
ar: string[];
|
|
@@ -186,10 +140,7 @@ declare function proofFromJsonStruct(json: GnarkProofJson): ProofABC;
|
|
|
186
140
|
declare function negateAndCompressProof(proof: ProofABC): CompressedProof;
|
|
187
141
|
|
|
188
142
|
/** pipe function */
|
|
189
|
-
declare function pipe<T, R>(
|
|
190
|
-
initialFunction: (arg: T) => R,
|
|
191
|
-
...functions: ((arg: R) => R)[]
|
|
192
|
-
): (initialValue: T) => R;
|
|
143
|
+
declare function pipe<T, R>(initialFunction: (arg: T) => R, ...functions: ((arg: R) => R)[]): (initialValue: T) => R;
|
|
193
144
|
|
|
194
145
|
/**
|
|
195
146
|
* Builds a versioned Transaction from instructions.
|
|
@@ -201,12 +152,7 @@ declare function pipe<T, R>(
|
|
|
201
152
|
*
|
|
202
153
|
* @return VersionedTransaction
|
|
203
154
|
*/
|
|
204
|
-
declare function buildTx(
|
|
205
|
-
instructions: TransactionInstruction[],
|
|
206
|
-
payerPublicKey: PublicKey,
|
|
207
|
-
blockhash: string,
|
|
208
|
-
lookupTableAccounts?: AddressLookupTableAccount[],
|
|
209
|
-
): VersionedTransaction;
|
|
155
|
+
declare function buildTx(instructions: TransactionInstruction[], payerPublicKey: PublicKey, blockhash: string, lookupTableAccounts?: AddressLookupTableAccount[]): VersionedTransaction;
|
|
210
156
|
/**
|
|
211
157
|
* Sends a versioned transaction and confirms it.
|
|
212
158
|
*
|
|
@@ -217,15 +163,10 @@ declare function buildTx(
|
|
|
217
163
|
*
|
|
218
164
|
* @return TransactionSignature
|
|
219
165
|
*/
|
|
220
|
-
declare function sendAndConfirmTx(
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
blockHashCtx?: {
|
|
225
|
-
blockhash: string;
|
|
226
|
-
lastValidBlockHeight: number;
|
|
227
|
-
},
|
|
228
|
-
): Promise<TransactionSignature>;
|
|
166
|
+
declare function sendAndConfirmTx(rpc: Rpc, tx: VersionedTransaction, confirmOptions?: ConfirmOptions, blockHashCtx?: {
|
|
167
|
+
blockhash: string;
|
|
168
|
+
lastValidBlockHeight: number;
|
|
169
|
+
}): Promise<TransactionSignature>;
|
|
229
170
|
/**
|
|
230
171
|
* Confirms a transaction with a given txId.
|
|
231
172
|
*
|
|
@@ -235,15 +176,10 @@ declare function sendAndConfirmTx(
|
|
|
235
176
|
* @param blockHashCtx blockhash context for confirmation
|
|
236
177
|
* @return SignatureResult
|
|
237
178
|
*/
|
|
238
|
-
declare function confirmTx(
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
blockHashCtx?: {
|
|
243
|
-
blockhash: string;
|
|
244
|
-
lastValidBlockHeight: number;
|
|
245
|
-
},
|
|
246
|
-
): Promise<RpcResponseAndContext<SignatureResult>>;
|
|
179
|
+
declare function confirmTx(rpc: Rpc, txId: string, confirmOptions?: ConfirmOptions, blockHashCtx?: {
|
|
180
|
+
blockhash: string;
|
|
181
|
+
lastValidBlockHeight: number;
|
|
182
|
+
}): Promise<RpcResponseAndContext<SignatureResult>>;
|
|
247
183
|
/**
|
|
248
184
|
* Builds a versioned Transaction from instructions and signs it.
|
|
249
185
|
*
|
|
@@ -255,22 +191,16 @@ declare function confirmTx(
|
|
|
255
191
|
* @param lookupTableAccounts lookup table accounts to include in the
|
|
256
192
|
* transaction
|
|
257
193
|
*/
|
|
258
|
-
declare function buildAndSignTx(
|
|
259
|
-
instructions: TransactionInstruction[],
|
|
260
|
-
payer: Signer,
|
|
261
|
-
blockhash: string,
|
|
262
|
-
additionalSigners?: Signer[],
|
|
263
|
-
lookupTableAccounts?: AddressLookupTableAccount[],
|
|
264
|
-
): VersionedTransaction;
|
|
194
|
+
declare function buildAndSignTx(instructions: TransactionInstruction[], payer: Signer, blockhash: string, additionalSigners?: Signer[], lookupTableAccounts?: AddressLookupTableAccount[]): VersionedTransaction;
|
|
265
195
|
|
|
266
196
|
declare function sleep(ms: number): Promise<void>;
|
|
267
197
|
|
|
268
198
|
declare const validateSufficientBalance: (balance: BN) => void;
|
|
269
|
-
declare const validateSameOwner: (
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
) => void;
|
|
199
|
+
declare const validateSameOwner: (compressedAccounts: CompressedAccount[] | CompressedAccountWithMerkleContext[]) => void;
|
|
200
|
+
declare const validateNumbersForProof: (hashesLength: number, newAddressesLength: number) => void;
|
|
201
|
+
declare const validateNumbersForInclusionProof: (hashesLength: number) => void;
|
|
202
|
+
declare const validateNumbersForNonInclusionProof: (newAddressesLength: number) => void;
|
|
203
|
+
declare const validateNumbers: (length: number, allowedNumbers: number[], type: string) => void;
|
|
274
204
|
|
|
275
205
|
/**
|
|
276
206
|
* @param targetLamports - Target priority fee in lamports
|
|
@@ -278,10 +208,7 @@ declare const validateSameOwner: (
|
|
|
278
208
|
* @returns microLamports per compute unit (use in
|
|
279
209
|
* `ComputeBudgetProgram.setComputeUnitPrice`)
|
|
280
210
|
*/
|
|
281
|
-
declare function calculateComputeUnitPrice(
|
|
282
|
-
targetLamports: number,
|
|
283
|
-
computeUnits: number,
|
|
284
|
-
): number;
|
|
211
|
+
declare function calculateComputeUnitPrice(targetLamports: number, computeUnits: number): number;
|
|
285
212
|
|
|
286
213
|
/**
|
|
287
214
|
* Create two lookup tables storing all public state tree and queue addresses
|
|
@@ -293,12 +220,7 @@ declare function calculateComputeUnitPrice(
|
|
|
293
220
|
* @param authority - Keypair of the authority
|
|
294
221
|
* @param recentSlot - Slot of the recent block
|
|
295
222
|
*/
|
|
296
|
-
declare function createStateTreeLookupTable({
|
|
297
|
-
connection,
|
|
298
|
-
payer,
|
|
299
|
-
authority,
|
|
300
|
-
recentSlot,
|
|
301
|
-
}: {
|
|
223
|
+
declare function createStateTreeLookupTable({ connection, payer, authority, recentSlot, }: {
|
|
302
224
|
connection: Connection;
|
|
303
225
|
payer: Keypair;
|
|
304
226
|
authority: Keypair;
|
|
@@ -318,15 +240,7 @@ declare function createStateTreeLookupTable({
|
|
|
318
240
|
* @param payer - Keypair of the payer
|
|
319
241
|
* @param authority - Keypair of the authority
|
|
320
242
|
*/
|
|
321
|
-
declare function extendStateTreeLookupTable({
|
|
322
|
-
connection,
|
|
323
|
-
tableAddress,
|
|
324
|
-
newStateTreeAddresses,
|
|
325
|
-
newQueueAddresses,
|
|
326
|
-
newCpiContextAddresses,
|
|
327
|
-
payer,
|
|
328
|
-
authority,
|
|
329
|
-
}: {
|
|
243
|
+
declare function extendStateTreeLookupTable({ connection, tableAddress, newStateTreeAddresses, newQueueAddresses, newCpiContextAddresses, payer, authority, }: {
|
|
330
244
|
connection: Connection;
|
|
331
245
|
tableAddress: PublicKey;
|
|
332
246
|
newStateTreeAddresses: PublicKey[];
|
|
@@ -351,14 +265,7 @@ declare function extendStateTreeLookupTable({
|
|
|
351
265
|
* @param payer - Keypair of the payer
|
|
352
266
|
* @param authority - Keypair of the authority
|
|
353
267
|
*/
|
|
354
|
-
declare function nullifyLookupTable({
|
|
355
|
-
connection,
|
|
356
|
-
fullStateTreeAddress,
|
|
357
|
-
nullifyTableAddress,
|
|
358
|
-
stateTreeLookupTableAddress,
|
|
359
|
-
payer,
|
|
360
|
-
authority,
|
|
361
|
-
}: {
|
|
268
|
+
declare function nullifyLookupTable({ connection, fullStateTreeAddress, nullifyTableAddress, stateTreeLookupTableAddress, payer, authority, }: {
|
|
362
269
|
connection: Connection;
|
|
363
270
|
fullStateTreeAddress: PublicKey;
|
|
364
271
|
nullifyTableAddress: PublicKey;
|
|
@@ -372,11 +279,7 @@ declare function nullifyLookupTable({
|
|
|
372
279
|
* Get most recent , active state tree data
|
|
373
280
|
* we store in lookup table for each public state tree
|
|
374
281
|
*/
|
|
375
|
-
declare function getLightStateTreeInfo({
|
|
376
|
-
connection,
|
|
377
|
-
stateTreeLookupTableAddress,
|
|
378
|
-
nullifyTableAddress,
|
|
379
|
-
}: {
|
|
282
|
+
declare function getLightStateTreeInfo({ connection, stateTreeLookupTableAddress, nullifyTableAddress, }: {
|
|
380
283
|
connection: Connection;
|
|
381
284
|
stateTreeLookupTableAddress: PublicKey;
|
|
382
285
|
nullifyTableAddress: PublicKey;
|
|
@@ -398,7 +301,7 @@ declare enum TreeType {
|
|
|
398
301
|
/**
|
|
399
302
|
* v2 address merkle tree
|
|
400
303
|
*/
|
|
401
|
-
BatchedAddress = 3
|
|
304
|
+
BatchedAddress = 3
|
|
402
305
|
}
|
|
403
306
|
type ActiveTreeBundle = {
|
|
404
307
|
tree: PublicKey;
|
|
@@ -514,10 +417,9 @@ type TokenData$1 = {
|
|
|
514
417
|
tlv: Buffer$1 | null;
|
|
515
418
|
};
|
|
516
419
|
|
|
517
|
-
type CompressedAccountWithMerkleContext = CompressedAccount &
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
};
|
|
420
|
+
type CompressedAccountWithMerkleContext = CompressedAccount & MerkleContext & {
|
|
421
|
+
readOnly: boolean;
|
|
422
|
+
};
|
|
521
423
|
/**
|
|
522
424
|
* Context for compressed account inserted into a state Merkle tree
|
|
523
425
|
* */
|
|
@@ -539,25 +441,9 @@ type MerkleContextWithMerkleProof = MerkleContext & {
|
|
|
539
441
|
/** Current root */
|
|
540
442
|
root: BN254;
|
|
541
443
|
};
|
|
542
|
-
declare const createCompressedAccount: (
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
data?: CompressedAccountData,
|
|
546
|
-
address?: number[],
|
|
547
|
-
) => CompressedAccount;
|
|
548
|
-
declare const createCompressedAccountWithMerkleContext: (
|
|
549
|
-
merkleContext: MerkleContext,
|
|
550
|
-
owner: PublicKey,
|
|
551
|
-
lamports?: BN,
|
|
552
|
-
data?: CompressedAccountData,
|
|
553
|
-
address?: number[],
|
|
554
|
-
) => CompressedAccountWithMerkleContext;
|
|
555
|
-
declare const createMerkleContext: (
|
|
556
|
-
merkleTree: PublicKey,
|
|
557
|
-
nullifierQueue: PublicKey,
|
|
558
|
-
hash: number[],
|
|
559
|
-
leafIndex: number,
|
|
560
|
-
) => MerkleContext;
|
|
444
|
+
declare const createCompressedAccount: (owner: PublicKey, lamports?: BN, data?: CompressedAccountData, address?: number[]) => CompressedAccount;
|
|
445
|
+
declare const createCompressedAccountWithMerkleContext: (merkleContext: MerkleContext, owner: PublicKey, lamports?: BN, data?: CompressedAccountData, address?: number[]) => CompressedAccountWithMerkleContext;
|
|
446
|
+
declare const createMerkleContext: (merkleTree: PublicKey, nullifierQueue: PublicKey, hash: number[], leafIndex: number) => MerkleContext;
|
|
561
447
|
|
|
562
448
|
interface LatestNonVotingSignatures {
|
|
563
449
|
context: {
|
|
@@ -701,15 +587,11 @@ type WithCursor<T> = {
|
|
|
701
587
|
/**
|
|
702
588
|
* @internal
|
|
703
589
|
*/
|
|
704
|
-
declare function createRpcResult<T, U>(
|
|
705
|
-
result: Struct<T, U>,
|
|
706
|
-
): Struct<RpcResult<T>, null>;
|
|
590
|
+
declare function createRpcResult<T, U>(result: Struct<T, U>): Struct<RpcResult<T>, null>;
|
|
707
591
|
/**
|
|
708
592
|
* @internal
|
|
709
593
|
*/
|
|
710
|
-
declare function jsonRpcResult<T, U>(
|
|
711
|
-
schema: Struct<T, U>,
|
|
712
|
-
): Struct<RpcResult<T>, null>;
|
|
594
|
+
declare function jsonRpcResult<T, U>(schema: Struct<T, U>): Struct<RpcResult<T>, null>;
|
|
713
595
|
type WithRpcContext<T> = {
|
|
714
596
|
context: {
|
|
715
597
|
slot: number;
|
|
@@ -719,14 +601,68 @@ type WithRpcContext<T> = {
|
|
|
719
601
|
/**
|
|
720
602
|
* @internal
|
|
721
603
|
*/
|
|
722
|
-
declare function jsonRpcResultAndContext<T, U>(
|
|
723
|
-
|
|
724
|
-
|
|
604
|
+
declare function jsonRpcResultAndContext<T, U>(value: Struct<T, U>): Struct<RpcResult<WithRpcContext<T>>, null>;
|
|
605
|
+
/**
|
|
606
|
+
* @internal
|
|
607
|
+
*/
|
|
608
|
+
declare const CompressedAccountResult: Struct<{
|
|
609
|
+
lamports: BN;
|
|
610
|
+
data: {
|
|
611
|
+
data: string;
|
|
612
|
+
dataHash: BN;
|
|
613
|
+
discriminator: BN;
|
|
614
|
+
} | null;
|
|
615
|
+
address: number[] | null;
|
|
616
|
+
hash: BN;
|
|
617
|
+
owner: PublicKey;
|
|
618
|
+
leafIndex: number;
|
|
619
|
+
tree: PublicKey;
|
|
620
|
+
seq: BN | null;
|
|
621
|
+
slotCreated: BN;
|
|
622
|
+
}, {
|
|
623
|
+
address: Struct<number[] | null, null>;
|
|
624
|
+
hash: Struct<BN, null>;
|
|
625
|
+
data: Struct<{
|
|
626
|
+
data: string;
|
|
627
|
+
dataHash: BN;
|
|
628
|
+
discriminator: BN;
|
|
629
|
+
} | null, {
|
|
630
|
+
data: Struct<string, null>;
|
|
631
|
+
dataHash: Struct<BN, null>;
|
|
632
|
+
discriminator: Struct<BN, null>;
|
|
633
|
+
}>;
|
|
634
|
+
lamports: Struct<BN, null>;
|
|
635
|
+
owner: Struct<PublicKey, null>;
|
|
636
|
+
leafIndex: Struct<number, null>;
|
|
637
|
+
tree: Struct<PublicKey, null>;
|
|
638
|
+
seq: Struct<BN | null, null>;
|
|
639
|
+
slotCreated: Struct<BN, null>;
|
|
640
|
+
}>;
|
|
641
|
+
declare const TokenDataResult: Struct<{
|
|
642
|
+
owner: PublicKey;
|
|
643
|
+
mint: PublicKey;
|
|
644
|
+
amount: BN;
|
|
645
|
+
delegate: PublicKey | null;
|
|
646
|
+
state: string;
|
|
647
|
+
}, {
|
|
648
|
+
mint: Struct<PublicKey, null>;
|
|
649
|
+
owner: Struct<PublicKey, null>;
|
|
650
|
+
amount: Struct<BN, null>;
|
|
651
|
+
delegate: Struct<PublicKey | null, null>;
|
|
652
|
+
state: Struct<string, null>;
|
|
653
|
+
}>;
|
|
725
654
|
/**
|
|
726
655
|
* @internal
|
|
727
656
|
*/
|
|
728
|
-
declare const
|
|
729
|
-
{
|
|
657
|
+
declare const CompressedTokenAccountResult: Struct<{
|
|
658
|
+
tokenData: {
|
|
659
|
+
owner: PublicKey;
|
|
660
|
+
mint: PublicKey;
|
|
661
|
+
amount: BN;
|
|
662
|
+
delegate: PublicKey | null;
|
|
663
|
+
state: string;
|
|
664
|
+
};
|
|
665
|
+
account: {
|
|
730
666
|
lamports: BN;
|
|
731
667
|
data: {
|
|
732
668
|
data: string;
|
|
@@ -740,51 +676,198 @@ declare const CompressedAccountResult: Struct<
|
|
|
740
676
|
tree: PublicKey;
|
|
741
677
|
seq: BN | null;
|
|
742
678
|
slotCreated: BN;
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
hash: Struct<BN, null>;
|
|
747
|
-
data: Struct<
|
|
748
|
-
{
|
|
749
|
-
data: string;
|
|
750
|
-
dataHash: BN;
|
|
751
|
-
discriminator: BN;
|
|
752
|
-
} | null,
|
|
753
|
-
{
|
|
754
|
-
data: Struct<string, null>;
|
|
755
|
-
dataHash: Struct<BN, null>;
|
|
756
|
-
discriminator: Struct<BN, null>;
|
|
757
|
-
}
|
|
758
|
-
>;
|
|
759
|
-
lamports: Struct<BN, null>;
|
|
760
|
-
owner: Struct<PublicKey, null>;
|
|
761
|
-
leafIndex: Struct<number, null>;
|
|
762
|
-
tree: Struct<PublicKey, null>;
|
|
763
|
-
seq: Struct<BN | null, null>;
|
|
764
|
-
slotCreated: Struct<BN, null>;
|
|
765
|
-
}
|
|
766
|
-
>;
|
|
767
|
-
declare const TokenDataResult: Struct<
|
|
768
|
-
{
|
|
679
|
+
};
|
|
680
|
+
}, {
|
|
681
|
+
tokenData: Struct<{
|
|
769
682
|
owner: PublicKey;
|
|
770
683
|
mint: PublicKey;
|
|
771
684
|
amount: BN;
|
|
772
685
|
delegate: PublicKey | null;
|
|
773
686
|
state: string;
|
|
774
|
-
},
|
|
775
|
-
{
|
|
687
|
+
}, {
|
|
776
688
|
mint: Struct<PublicKey, null>;
|
|
777
689
|
owner: Struct<PublicKey, null>;
|
|
778
690
|
amount: Struct<BN, null>;
|
|
779
691
|
delegate: Struct<PublicKey | null, null>;
|
|
780
692
|
state: Struct<string, null>;
|
|
781
|
-
}
|
|
782
|
-
|
|
693
|
+
}>;
|
|
694
|
+
account: Struct<{
|
|
695
|
+
lamports: BN;
|
|
696
|
+
data: {
|
|
697
|
+
data: string;
|
|
698
|
+
dataHash: BN;
|
|
699
|
+
discriminator: BN;
|
|
700
|
+
} | null;
|
|
701
|
+
address: number[] | null;
|
|
702
|
+
hash: BN;
|
|
703
|
+
owner: PublicKey;
|
|
704
|
+
leafIndex: number;
|
|
705
|
+
tree: PublicKey;
|
|
706
|
+
seq: BN | null;
|
|
707
|
+
slotCreated: BN;
|
|
708
|
+
}, {
|
|
709
|
+
address: Struct<number[] | null, null>;
|
|
710
|
+
hash: Struct<BN, null>;
|
|
711
|
+
data: Struct<{
|
|
712
|
+
data: string;
|
|
713
|
+
dataHash: BN;
|
|
714
|
+
discriminator: BN;
|
|
715
|
+
} | null, {
|
|
716
|
+
data: Struct<string, null>;
|
|
717
|
+
dataHash: Struct<BN, null>;
|
|
718
|
+
discriminator: Struct<BN, null>;
|
|
719
|
+
}>;
|
|
720
|
+
lamports: Struct<BN, null>;
|
|
721
|
+
owner: Struct<PublicKey, null>;
|
|
722
|
+
leafIndex: Struct<number, null>;
|
|
723
|
+
tree: Struct<PublicKey, null>;
|
|
724
|
+
seq: Struct<BN | null, null>;
|
|
725
|
+
slotCreated: Struct<BN, null>;
|
|
726
|
+
}>;
|
|
727
|
+
}>;
|
|
728
|
+
/**
|
|
729
|
+
* @internal
|
|
730
|
+
*/
|
|
731
|
+
declare const MultipleCompressedAccountsResult: Struct<{
|
|
732
|
+
items: {
|
|
733
|
+
lamports: BN;
|
|
734
|
+
data: {
|
|
735
|
+
data: string;
|
|
736
|
+
dataHash: BN;
|
|
737
|
+
discriminator: BN;
|
|
738
|
+
} | null;
|
|
739
|
+
address: number[] | null;
|
|
740
|
+
hash: BN;
|
|
741
|
+
owner: PublicKey;
|
|
742
|
+
leafIndex: number;
|
|
743
|
+
tree: PublicKey;
|
|
744
|
+
seq: BN | null;
|
|
745
|
+
slotCreated: BN;
|
|
746
|
+
}[];
|
|
747
|
+
}, {
|
|
748
|
+
items: Struct<{
|
|
749
|
+
lamports: BN;
|
|
750
|
+
data: {
|
|
751
|
+
data: string;
|
|
752
|
+
dataHash: BN;
|
|
753
|
+
discriminator: BN;
|
|
754
|
+
} | null;
|
|
755
|
+
address: number[] | null;
|
|
756
|
+
hash: BN;
|
|
757
|
+
owner: PublicKey;
|
|
758
|
+
leafIndex: number;
|
|
759
|
+
tree: PublicKey;
|
|
760
|
+
seq: BN | null;
|
|
761
|
+
slotCreated: BN;
|
|
762
|
+
}[], Struct<{
|
|
763
|
+
lamports: BN;
|
|
764
|
+
data: {
|
|
765
|
+
data: string;
|
|
766
|
+
dataHash: BN;
|
|
767
|
+
discriminator: BN;
|
|
768
|
+
} | null;
|
|
769
|
+
address: number[] | null;
|
|
770
|
+
hash: BN;
|
|
771
|
+
owner: PublicKey;
|
|
772
|
+
leafIndex: number;
|
|
773
|
+
tree: PublicKey;
|
|
774
|
+
seq: BN | null;
|
|
775
|
+
slotCreated: BN;
|
|
776
|
+
}, {
|
|
777
|
+
address: Struct<number[] | null, null>;
|
|
778
|
+
hash: Struct<BN, null>;
|
|
779
|
+
data: Struct<{
|
|
780
|
+
data: string;
|
|
781
|
+
dataHash: BN;
|
|
782
|
+
discriminator: BN;
|
|
783
|
+
} | null, {
|
|
784
|
+
data: Struct<string, null>;
|
|
785
|
+
dataHash: Struct<BN, null>;
|
|
786
|
+
discriminator: Struct<BN, null>;
|
|
787
|
+
}>;
|
|
788
|
+
lamports: Struct<BN, null>;
|
|
789
|
+
owner: Struct<PublicKey, null>;
|
|
790
|
+
leafIndex: Struct<number, null>;
|
|
791
|
+
tree: Struct<PublicKey, null>;
|
|
792
|
+
seq: Struct<BN | null, null>;
|
|
793
|
+
slotCreated: Struct<BN, null>;
|
|
794
|
+
}>>;
|
|
795
|
+
}>;
|
|
796
|
+
/**
|
|
797
|
+
* @internal
|
|
798
|
+
*/
|
|
799
|
+
declare const CompressedAccountsByOwnerResult: Struct<{
|
|
800
|
+
items: {
|
|
801
|
+
lamports: BN;
|
|
802
|
+
data: {
|
|
803
|
+
data: string;
|
|
804
|
+
dataHash: BN;
|
|
805
|
+
discriminator: BN;
|
|
806
|
+
} | null;
|
|
807
|
+
address: number[] | null;
|
|
808
|
+
hash: BN;
|
|
809
|
+
owner: PublicKey;
|
|
810
|
+
leafIndex: number;
|
|
811
|
+
tree: PublicKey;
|
|
812
|
+
seq: BN | null;
|
|
813
|
+
slotCreated: BN;
|
|
814
|
+
}[];
|
|
815
|
+
cursor: string | null;
|
|
816
|
+
}, {
|
|
817
|
+
items: Struct<{
|
|
818
|
+
lamports: BN;
|
|
819
|
+
data: {
|
|
820
|
+
data: string;
|
|
821
|
+
dataHash: BN;
|
|
822
|
+
discriminator: BN;
|
|
823
|
+
} | null;
|
|
824
|
+
address: number[] | null;
|
|
825
|
+
hash: BN;
|
|
826
|
+
owner: PublicKey;
|
|
827
|
+
leafIndex: number;
|
|
828
|
+
tree: PublicKey;
|
|
829
|
+
seq: BN | null;
|
|
830
|
+
slotCreated: BN;
|
|
831
|
+
}[], Struct<{
|
|
832
|
+
lamports: BN;
|
|
833
|
+
data: {
|
|
834
|
+
data: string;
|
|
835
|
+
dataHash: BN;
|
|
836
|
+
discriminator: BN;
|
|
837
|
+
} | null;
|
|
838
|
+
address: number[] | null;
|
|
839
|
+
hash: BN;
|
|
840
|
+
owner: PublicKey;
|
|
841
|
+
leafIndex: number;
|
|
842
|
+
tree: PublicKey;
|
|
843
|
+
seq: BN | null;
|
|
844
|
+
slotCreated: BN;
|
|
845
|
+
}, {
|
|
846
|
+
address: Struct<number[] | null, null>;
|
|
847
|
+
hash: Struct<BN, null>;
|
|
848
|
+
data: Struct<{
|
|
849
|
+
data: string;
|
|
850
|
+
dataHash: BN;
|
|
851
|
+
discriminator: BN;
|
|
852
|
+
} | null, {
|
|
853
|
+
data: Struct<string, null>;
|
|
854
|
+
dataHash: Struct<BN, null>;
|
|
855
|
+
discriminator: Struct<BN, null>;
|
|
856
|
+
}>;
|
|
857
|
+
lamports: Struct<BN, null>;
|
|
858
|
+
owner: Struct<PublicKey, null>;
|
|
859
|
+
leafIndex: Struct<number, null>;
|
|
860
|
+
tree: Struct<PublicKey, null>;
|
|
861
|
+
seq: Struct<BN | null, null>;
|
|
862
|
+
slotCreated: Struct<BN, null>;
|
|
863
|
+
}>>;
|
|
864
|
+
cursor: Struct<string | null, null>;
|
|
865
|
+
}>;
|
|
783
866
|
/**
|
|
784
867
|
* @internal
|
|
785
868
|
*/
|
|
786
|
-
declare const
|
|
787
|
-
{
|
|
869
|
+
declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<{
|
|
870
|
+
items: {
|
|
788
871
|
tokenData: {
|
|
789
872
|
owner: PublicKey;
|
|
790
873
|
mint: PublicKey;
|
|
@@ -807,71 +890,18 @@ declare const CompressedTokenAccountResult: Struct<
|
|
|
807
890
|
seq: BN | null;
|
|
808
891
|
slotCreated: BN;
|
|
809
892
|
};
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
owner: Struct<PublicKey, null>;
|
|
823
|
-
amount: Struct<BN, null>;
|
|
824
|
-
delegate: Struct<PublicKey | null, null>;
|
|
825
|
-
state: Struct<string, null>;
|
|
826
|
-
}
|
|
827
|
-
>;
|
|
828
|
-
account: Struct<
|
|
829
|
-
{
|
|
830
|
-
lamports: BN;
|
|
831
|
-
data: {
|
|
832
|
-
data: string;
|
|
833
|
-
dataHash: BN;
|
|
834
|
-
discriminator: BN;
|
|
835
|
-
} | null;
|
|
836
|
-
address: number[] | null;
|
|
837
|
-
hash: BN;
|
|
838
|
-
owner: PublicKey;
|
|
839
|
-
leafIndex: number;
|
|
840
|
-
tree: PublicKey;
|
|
841
|
-
seq: BN | null;
|
|
842
|
-
slotCreated: BN;
|
|
843
|
-
},
|
|
844
|
-
{
|
|
845
|
-
address: Struct<number[] | null, null>;
|
|
846
|
-
hash: Struct<BN, null>;
|
|
847
|
-
data: Struct<
|
|
848
|
-
{
|
|
849
|
-
data: string;
|
|
850
|
-
dataHash: BN;
|
|
851
|
-
discriminator: BN;
|
|
852
|
-
} | null,
|
|
853
|
-
{
|
|
854
|
-
data: Struct<string, null>;
|
|
855
|
-
dataHash: Struct<BN, null>;
|
|
856
|
-
discriminator: Struct<BN, null>;
|
|
857
|
-
}
|
|
858
|
-
>;
|
|
859
|
-
lamports: Struct<BN, null>;
|
|
860
|
-
owner: Struct<PublicKey, null>;
|
|
861
|
-
leafIndex: Struct<number, null>;
|
|
862
|
-
tree: Struct<PublicKey, null>;
|
|
863
|
-
seq: Struct<BN | null, null>;
|
|
864
|
-
slotCreated: Struct<BN, null>;
|
|
865
|
-
}
|
|
866
|
-
>;
|
|
867
|
-
}
|
|
868
|
-
>;
|
|
869
|
-
/**
|
|
870
|
-
* @internal
|
|
871
|
-
*/
|
|
872
|
-
declare const MultipleCompressedAccountsResult: Struct<
|
|
873
|
-
{
|
|
874
|
-
items: {
|
|
893
|
+
}[];
|
|
894
|
+
cursor: string | null;
|
|
895
|
+
}, {
|
|
896
|
+
items: Struct<{
|
|
897
|
+
tokenData: {
|
|
898
|
+
owner: PublicKey;
|
|
899
|
+
mint: PublicKey;
|
|
900
|
+
amount: BN;
|
|
901
|
+
delegate: PublicKey | null;
|
|
902
|
+
state: string;
|
|
903
|
+
};
|
|
904
|
+
account: {
|
|
875
905
|
lamports: BN;
|
|
876
906
|
data: {
|
|
877
907
|
data: string;
|
|
@@ -885,73 +915,16 @@ declare const MultipleCompressedAccountsResult: Struct<
|
|
|
885
915
|
tree: PublicKey;
|
|
886
916
|
seq: BN | null;
|
|
887
917
|
slotCreated: BN;
|
|
888
|
-
}
|
|
889
|
-
},
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
} | null;
|
|
899
|
-
address: number[] | null;
|
|
900
|
-
hash: BN;
|
|
901
|
-
owner: PublicKey;
|
|
902
|
-
leafIndex: number;
|
|
903
|
-
tree: PublicKey;
|
|
904
|
-
seq: BN | null;
|
|
905
|
-
slotCreated: BN;
|
|
906
|
-
}[],
|
|
907
|
-
Struct<
|
|
908
|
-
{
|
|
909
|
-
lamports: BN;
|
|
910
|
-
data: {
|
|
911
|
-
data: string;
|
|
912
|
-
dataHash: BN;
|
|
913
|
-
discriminator: BN;
|
|
914
|
-
} | null;
|
|
915
|
-
address: number[] | null;
|
|
916
|
-
hash: BN;
|
|
917
|
-
owner: PublicKey;
|
|
918
|
-
leafIndex: number;
|
|
919
|
-
tree: PublicKey;
|
|
920
|
-
seq: BN | null;
|
|
921
|
-
slotCreated: BN;
|
|
922
|
-
},
|
|
923
|
-
{
|
|
924
|
-
address: Struct<number[] | null, null>;
|
|
925
|
-
hash: Struct<BN, null>;
|
|
926
|
-
data: Struct<
|
|
927
|
-
{
|
|
928
|
-
data: string;
|
|
929
|
-
dataHash: BN;
|
|
930
|
-
discriminator: BN;
|
|
931
|
-
} | null,
|
|
932
|
-
{
|
|
933
|
-
data: Struct<string, null>;
|
|
934
|
-
dataHash: Struct<BN, null>;
|
|
935
|
-
discriminator: Struct<BN, null>;
|
|
936
|
-
}
|
|
937
|
-
>;
|
|
938
|
-
lamports: Struct<BN, null>;
|
|
939
|
-
owner: Struct<PublicKey, null>;
|
|
940
|
-
leafIndex: Struct<number, null>;
|
|
941
|
-
tree: Struct<PublicKey, null>;
|
|
942
|
-
seq: Struct<BN | null, null>;
|
|
943
|
-
slotCreated: Struct<BN, null>;
|
|
944
|
-
}
|
|
945
|
-
>
|
|
946
|
-
>;
|
|
947
|
-
}
|
|
948
|
-
>;
|
|
949
|
-
/**
|
|
950
|
-
* @internal
|
|
951
|
-
*/
|
|
952
|
-
declare const CompressedAccountsByOwnerResult: Struct<
|
|
953
|
-
{
|
|
954
|
-
items: {
|
|
918
|
+
};
|
|
919
|
+
}[], Struct<{
|
|
920
|
+
tokenData: {
|
|
921
|
+
owner: PublicKey;
|
|
922
|
+
mint: PublicKey;
|
|
923
|
+
amount: BN;
|
|
924
|
+
delegate: PublicKey | null;
|
|
925
|
+
state: string;
|
|
926
|
+
};
|
|
927
|
+
account: {
|
|
955
928
|
lamports: BN;
|
|
956
929
|
data: {
|
|
957
930
|
data: string;
|
|
@@ -965,12 +938,542 @@ declare const CompressedAccountsByOwnerResult: Struct<
|
|
|
965
938
|
tree: PublicKey;
|
|
966
939
|
seq: BN | null;
|
|
967
940
|
slotCreated: BN;
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
941
|
+
};
|
|
942
|
+
}, {
|
|
943
|
+
tokenData: Struct<{
|
|
944
|
+
owner: PublicKey;
|
|
945
|
+
mint: PublicKey;
|
|
946
|
+
amount: BN;
|
|
947
|
+
delegate: PublicKey | null;
|
|
948
|
+
state: string;
|
|
949
|
+
}, {
|
|
950
|
+
mint: Struct<PublicKey, null>;
|
|
951
|
+
owner: Struct<PublicKey, null>;
|
|
952
|
+
amount: Struct<BN, null>;
|
|
953
|
+
delegate: Struct<PublicKey | null, null>;
|
|
954
|
+
state: Struct<string, null>;
|
|
955
|
+
}>;
|
|
956
|
+
account: Struct<{
|
|
957
|
+
lamports: BN;
|
|
958
|
+
data: {
|
|
959
|
+
data: string;
|
|
960
|
+
dataHash: BN;
|
|
961
|
+
discriminator: BN;
|
|
962
|
+
} | null;
|
|
963
|
+
address: number[] | null;
|
|
964
|
+
hash: BN;
|
|
965
|
+
owner: PublicKey;
|
|
966
|
+
leafIndex: number;
|
|
967
|
+
tree: PublicKey;
|
|
968
|
+
seq: BN | null;
|
|
969
|
+
slotCreated: BN;
|
|
970
|
+
}, {
|
|
971
|
+
address: Struct<number[] | null, null>;
|
|
972
|
+
hash: Struct<BN, null>;
|
|
973
|
+
data: Struct<{
|
|
974
|
+
data: string;
|
|
975
|
+
dataHash: BN;
|
|
976
|
+
discriminator: BN;
|
|
977
|
+
} | null, {
|
|
978
|
+
data: Struct<string, null>;
|
|
979
|
+
dataHash: Struct<BN, null>;
|
|
980
|
+
discriminator: Struct<BN, null>;
|
|
981
|
+
}>;
|
|
982
|
+
lamports: Struct<BN, null>;
|
|
983
|
+
owner: Struct<PublicKey, null>;
|
|
984
|
+
leafIndex: Struct<number, null>;
|
|
985
|
+
tree: Struct<PublicKey, null>;
|
|
986
|
+
seq: Struct<BN | null, null>;
|
|
987
|
+
slotCreated: Struct<BN, null>;
|
|
988
|
+
}>;
|
|
989
|
+
}>>;
|
|
990
|
+
cursor: Struct<string | null, null>;
|
|
991
|
+
}>;
|
|
992
|
+
/**
|
|
993
|
+
* @internal
|
|
994
|
+
*/
|
|
995
|
+
declare const SlotResult: Struct<number, null>;
|
|
996
|
+
/**
|
|
997
|
+
* @internal
|
|
998
|
+
*/
|
|
999
|
+
declare const HealthResult: Struct<string, null>;
|
|
1000
|
+
/**
|
|
1001
|
+
* @internal
|
|
1002
|
+
*/
|
|
1003
|
+
declare const LatestNonVotingSignaturesResult: Struct<{
|
|
1004
|
+
items: {
|
|
1005
|
+
signature: string;
|
|
1006
|
+
error: string | null;
|
|
1007
|
+
slot: number;
|
|
1008
|
+
blockTime: number;
|
|
1009
|
+
}[];
|
|
1010
|
+
}, {
|
|
1011
|
+
items: Struct<{
|
|
1012
|
+
signature: string;
|
|
1013
|
+
error: string | null;
|
|
1014
|
+
slot: number;
|
|
1015
|
+
blockTime: number;
|
|
1016
|
+
}[], Struct<{
|
|
1017
|
+
signature: string;
|
|
1018
|
+
error: string | null;
|
|
1019
|
+
slot: number;
|
|
1020
|
+
blockTime: number;
|
|
1021
|
+
}, {
|
|
1022
|
+
signature: Struct<string, null>;
|
|
1023
|
+
slot: Struct<number, null>;
|
|
1024
|
+
blockTime: Struct<number, null>;
|
|
1025
|
+
error: Struct<string | null, null>;
|
|
1026
|
+
}>>;
|
|
1027
|
+
}>;
|
|
1028
|
+
/**
|
|
1029
|
+
* @internal
|
|
1030
|
+
*/
|
|
1031
|
+
declare const LatestNonVotingSignaturesResultPaginated: Struct<{
|
|
1032
|
+
items: {
|
|
1033
|
+
signature: string;
|
|
1034
|
+
slot: number;
|
|
1035
|
+
blockTime: number;
|
|
1036
|
+
}[];
|
|
1037
|
+
cursor: string | null;
|
|
1038
|
+
}, {
|
|
1039
|
+
items: Struct<{
|
|
1040
|
+
signature: string;
|
|
1041
|
+
slot: number;
|
|
1042
|
+
blockTime: number;
|
|
1043
|
+
}[], Struct<{
|
|
1044
|
+
signature: string;
|
|
1045
|
+
slot: number;
|
|
1046
|
+
blockTime: number;
|
|
1047
|
+
}, {
|
|
1048
|
+
signature: Struct<string, null>;
|
|
1049
|
+
slot: Struct<number, null>;
|
|
1050
|
+
blockTime: Struct<number, null>;
|
|
1051
|
+
}>>;
|
|
1052
|
+
cursor: Struct<string | null, null>;
|
|
1053
|
+
}>;
|
|
1054
|
+
/**
|
|
1055
|
+
* @internal
|
|
1056
|
+
*/
|
|
1057
|
+
declare const MerkeProofResult: Struct<{
|
|
1058
|
+
root: BN;
|
|
1059
|
+
hash: BN;
|
|
1060
|
+
leafIndex: number;
|
|
1061
|
+
merkleTree: PublicKey;
|
|
1062
|
+
proof: BN[];
|
|
1063
|
+
rootSeq: number;
|
|
1064
|
+
}, {
|
|
1065
|
+
hash: Struct<BN, null>;
|
|
1066
|
+
leafIndex: Struct<number, null>;
|
|
1067
|
+
merkleTree: Struct<PublicKey, null>;
|
|
1068
|
+
proof: Struct<BN[], Struct<BN, null>>;
|
|
1069
|
+
rootSeq: Struct<number, null>;
|
|
1070
|
+
root: Struct<BN, null>;
|
|
1071
|
+
}>;
|
|
1072
|
+
/**
|
|
1073
|
+
* @internal
|
|
1074
|
+
*/
|
|
1075
|
+
declare const NewAddressProofResult: Struct<{
|
|
1076
|
+
root: BN;
|
|
1077
|
+
address: BN;
|
|
1078
|
+
merkleTree: PublicKey;
|
|
1079
|
+
proof: BN[];
|
|
1080
|
+
rootSeq: number;
|
|
1081
|
+
nextIndex: number;
|
|
1082
|
+
lowerRangeAddress: BN;
|
|
1083
|
+
higherRangeAddress: BN;
|
|
1084
|
+
lowElementLeafIndex: number;
|
|
1085
|
+
}, {
|
|
1086
|
+
address: Struct<BN, null>;
|
|
1087
|
+
nextIndex: Struct<number, null>;
|
|
1088
|
+
merkleTree: Struct<PublicKey, null>;
|
|
1089
|
+
proof: Struct<BN[], Struct<BN, null>>;
|
|
1090
|
+
rootSeq: Struct<number, null>;
|
|
1091
|
+
root: Struct<BN, null>;
|
|
1092
|
+
lowerRangeAddress: Struct<BN, null>;
|
|
1093
|
+
higherRangeAddress: Struct<BN, null>;
|
|
1094
|
+
lowElementLeafIndex: Struct<number, null>;
|
|
1095
|
+
}>;
|
|
1096
|
+
/**
|
|
1097
|
+
* @internal
|
|
1098
|
+
*/
|
|
1099
|
+
declare const ValidityProofResult: Struct<{
|
|
1100
|
+
compressedProof: {
|
|
1101
|
+
a: number[];
|
|
1102
|
+
b: number[];
|
|
1103
|
+
c: number[];
|
|
1104
|
+
};
|
|
1105
|
+
leafIndices: number[];
|
|
1106
|
+
leaves: BN[];
|
|
1107
|
+
rootIndices: number[];
|
|
1108
|
+
roots: BN[];
|
|
1109
|
+
merkleTrees: PublicKey[];
|
|
1110
|
+
}, {
|
|
1111
|
+
compressedProof: Struct<{
|
|
1112
|
+
a: number[];
|
|
1113
|
+
b: number[];
|
|
1114
|
+
c: number[];
|
|
1115
|
+
}, {
|
|
1116
|
+
a: Struct<number[], Struct<number, null>>;
|
|
1117
|
+
b: Struct<number[], Struct<number, null>>;
|
|
1118
|
+
c: Struct<number[], Struct<number, null>>;
|
|
1119
|
+
}>;
|
|
1120
|
+
leafIndices: Struct<number[], Struct<number, null>>;
|
|
1121
|
+
leaves: Struct<BN[], Struct<BN, null>>;
|
|
1122
|
+
rootIndices: Struct<number[], Struct<number, null>>;
|
|
1123
|
+
roots: Struct<BN[], Struct<BN, null>>;
|
|
1124
|
+
merkleTrees: Struct<PublicKey[], Struct<PublicKey, null>>;
|
|
1125
|
+
}>;
|
|
1126
|
+
/**
|
|
1127
|
+
* @internal
|
|
1128
|
+
*/
|
|
1129
|
+
declare const MultipleMerkleProofsResult: Struct<{
|
|
1130
|
+
root: BN;
|
|
1131
|
+
hash: BN;
|
|
1132
|
+
leafIndex: number;
|
|
1133
|
+
merkleTree: PublicKey;
|
|
1134
|
+
proof: BN[];
|
|
1135
|
+
rootSeq: number;
|
|
1136
|
+
}[], Struct<{
|
|
1137
|
+
root: BN;
|
|
1138
|
+
hash: BN;
|
|
1139
|
+
leafIndex: number;
|
|
1140
|
+
merkleTree: PublicKey;
|
|
1141
|
+
proof: BN[];
|
|
1142
|
+
rootSeq: number;
|
|
1143
|
+
}, {
|
|
1144
|
+
hash: Struct<BN, null>;
|
|
1145
|
+
leafIndex: Struct<number, null>;
|
|
1146
|
+
merkleTree: Struct<PublicKey, null>;
|
|
1147
|
+
proof: Struct<BN[], Struct<BN, null>>;
|
|
1148
|
+
rootSeq: Struct<number, null>;
|
|
1149
|
+
root: Struct<BN, null>;
|
|
1150
|
+
}>>;
|
|
1151
|
+
/**
|
|
1152
|
+
* @internal
|
|
1153
|
+
*/
|
|
1154
|
+
declare const BalanceResult: Struct<{
|
|
1155
|
+
amount: BN;
|
|
1156
|
+
}, {
|
|
1157
|
+
amount: Struct<BN, null>;
|
|
1158
|
+
}>;
|
|
1159
|
+
declare const NativeBalanceResult: Struct<BN, null>;
|
|
1160
|
+
declare const TokenBalanceResult: Struct<{
|
|
1161
|
+
mint: PublicKey;
|
|
1162
|
+
balance: BN;
|
|
1163
|
+
}, {
|
|
1164
|
+
balance: Struct<BN, null>;
|
|
1165
|
+
mint: Struct<PublicKey, null>;
|
|
1166
|
+
}>;
|
|
1167
|
+
declare const TokenBalanceListResult: Struct<{
|
|
1168
|
+
cursor: string | null;
|
|
1169
|
+
tokenBalances: {
|
|
1170
|
+
mint: PublicKey;
|
|
1171
|
+
balance: BN;
|
|
1172
|
+
}[];
|
|
1173
|
+
}, {
|
|
1174
|
+
tokenBalances: Struct<{
|
|
1175
|
+
mint: PublicKey;
|
|
1176
|
+
balance: BN;
|
|
1177
|
+
}[], Struct<{
|
|
1178
|
+
mint: PublicKey;
|
|
1179
|
+
balance: BN;
|
|
1180
|
+
}, {
|
|
1181
|
+
balance: Struct<BN, null>;
|
|
1182
|
+
mint: Struct<PublicKey, null>;
|
|
1183
|
+
}>>;
|
|
1184
|
+
cursor: Struct<string | null, null>;
|
|
1185
|
+
}>;
|
|
1186
|
+
declare const TokenBalanceListResultV2: Struct<{
|
|
1187
|
+
items: {
|
|
1188
|
+
mint: PublicKey;
|
|
1189
|
+
balance: BN;
|
|
1190
|
+
}[];
|
|
1191
|
+
cursor: string | null;
|
|
1192
|
+
}, {
|
|
1193
|
+
items: Struct<{
|
|
1194
|
+
mint: PublicKey;
|
|
1195
|
+
balance: BN;
|
|
1196
|
+
}[], Struct<{
|
|
1197
|
+
mint: PublicKey;
|
|
1198
|
+
balance: BN;
|
|
1199
|
+
}, {
|
|
1200
|
+
balance: Struct<BN, null>;
|
|
1201
|
+
mint: Struct<PublicKey, null>;
|
|
1202
|
+
}>>;
|
|
1203
|
+
cursor: Struct<string | null, null>;
|
|
1204
|
+
}>;
|
|
1205
|
+
declare const CompressedMintTokenHoldersResult: Struct<{
|
|
1206
|
+
items: {
|
|
1207
|
+
owner: PublicKey;
|
|
1208
|
+
balance: BN;
|
|
1209
|
+
}[];
|
|
1210
|
+
cursor: string | null;
|
|
1211
|
+
}, {
|
|
1212
|
+
cursor: Struct<string | null, null>;
|
|
1213
|
+
items: Struct<{
|
|
1214
|
+
owner: PublicKey;
|
|
1215
|
+
balance: BN;
|
|
1216
|
+
}[], Struct<{
|
|
1217
|
+
owner: PublicKey;
|
|
1218
|
+
balance: BN;
|
|
1219
|
+
}, {
|
|
1220
|
+
balance: Struct<BN, null>;
|
|
1221
|
+
owner: Struct<PublicKey, null>;
|
|
1222
|
+
}>>;
|
|
1223
|
+
}>;
|
|
1224
|
+
declare const AccountProofResult: Struct<{
|
|
1225
|
+
root: number[];
|
|
1226
|
+
hash: number[];
|
|
1227
|
+
proof: number[][];
|
|
1228
|
+
}, {
|
|
1229
|
+
hash: Struct<number[], Struct<number, null>>;
|
|
1230
|
+
root: Struct<number[], Struct<number, null>>;
|
|
1231
|
+
proof: Struct<number[][], Struct<number[], Struct<number, null>>>;
|
|
1232
|
+
}>;
|
|
1233
|
+
declare const toUnixTimestamp: (blockTime: string) => number;
|
|
1234
|
+
declare const SignatureListResult: Struct<{
|
|
1235
|
+
items: {
|
|
1236
|
+
signature: string;
|
|
1237
|
+
slot: number;
|
|
1238
|
+
blockTime: number;
|
|
1239
|
+
}[];
|
|
1240
|
+
}, {
|
|
1241
|
+
items: Struct<{
|
|
1242
|
+
signature: string;
|
|
1243
|
+
slot: number;
|
|
1244
|
+
blockTime: number;
|
|
1245
|
+
}[], Struct<{
|
|
1246
|
+
signature: string;
|
|
1247
|
+
slot: number;
|
|
1248
|
+
blockTime: number;
|
|
1249
|
+
}, {
|
|
1250
|
+
blockTime: Struct<number, null>;
|
|
1251
|
+
signature: Struct<string, null>;
|
|
1252
|
+
slot: Struct<number, null>;
|
|
1253
|
+
}>>;
|
|
1254
|
+
}>;
|
|
1255
|
+
declare const SignatureListWithCursorResult: Struct<{
|
|
1256
|
+
items: {
|
|
1257
|
+
signature: string;
|
|
1258
|
+
slot: number;
|
|
1259
|
+
blockTime: number;
|
|
1260
|
+
}[];
|
|
1261
|
+
cursor: string | null;
|
|
1262
|
+
}, {
|
|
1263
|
+
items: Struct<{
|
|
1264
|
+
signature: string;
|
|
1265
|
+
slot: number;
|
|
1266
|
+
blockTime: number;
|
|
1267
|
+
}[], Struct<{
|
|
1268
|
+
signature: string;
|
|
1269
|
+
slot: number;
|
|
1270
|
+
blockTime: number;
|
|
1271
|
+
}, {
|
|
1272
|
+
blockTime: Struct<number, null>;
|
|
1273
|
+
signature: Struct<string, null>;
|
|
1274
|
+
slot: Struct<number, null>;
|
|
1275
|
+
}>>;
|
|
1276
|
+
cursor: Struct<string | null, null>;
|
|
1277
|
+
}>;
|
|
1278
|
+
declare const CompressedTransactionResult: Struct<{
|
|
1279
|
+
compressionInfo: {
|
|
1280
|
+
closedAccounts: {
|
|
1281
|
+
account: {
|
|
1282
|
+
lamports: BN;
|
|
1283
|
+
data: {
|
|
1284
|
+
data: string;
|
|
1285
|
+
dataHash: BN;
|
|
1286
|
+
discriminator: BN;
|
|
1287
|
+
} | null;
|
|
1288
|
+
address: number[] | null;
|
|
1289
|
+
hash: BN;
|
|
1290
|
+
owner: PublicKey;
|
|
1291
|
+
leafIndex: number;
|
|
1292
|
+
tree: PublicKey;
|
|
1293
|
+
seq: BN | null;
|
|
1294
|
+
slotCreated: BN;
|
|
1295
|
+
};
|
|
1296
|
+
optionalTokenData: {
|
|
1297
|
+
owner: PublicKey;
|
|
1298
|
+
mint: PublicKey;
|
|
1299
|
+
amount: BN;
|
|
1300
|
+
delegate: PublicKey | null;
|
|
1301
|
+
state: string;
|
|
1302
|
+
} | null;
|
|
1303
|
+
}[];
|
|
1304
|
+
openedAccounts: {
|
|
1305
|
+
account: {
|
|
1306
|
+
lamports: BN;
|
|
1307
|
+
data: {
|
|
1308
|
+
data: string;
|
|
1309
|
+
dataHash: BN;
|
|
1310
|
+
discriminator: BN;
|
|
1311
|
+
} | null;
|
|
1312
|
+
address: number[] | null;
|
|
1313
|
+
hash: BN;
|
|
1314
|
+
owner: PublicKey;
|
|
1315
|
+
leafIndex: number;
|
|
1316
|
+
tree: PublicKey;
|
|
1317
|
+
seq: BN | null;
|
|
1318
|
+
slotCreated: BN;
|
|
1319
|
+
};
|
|
1320
|
+
optionalTokenData: {
|
|
1321
|
+
owner: PublicKey;
|
|
1322
|
+
mint: PublicKey;
|
|
1323
|
+
amount: BN;
|
|
1324
|
+
delegate: PublicKey | null;
|
|
1325
|
+
state: string;
|
|
1326
|
+
} | null;
|
|
1327
|
+
}[];
|
|
1328
|
+
};
|
|
1329
|
+
transaction?: any;
|
|
1330
|
+
}, {
|
|
1331
|
+
compressionInfo: Struct<{
|
|
1332
|
+
closedAccounts: {
|
|
1333
|
+
account: {
|
|
1334
|
+
lamports: BN;
|
|
1335
|
+
data: {
|
|
1336
|
+
data: string;
|
|
1337
|
+
dataHash: BN;
|
|
1338
|
+
discriminator: BN;
|
|
1339
|
+
} | null;
|
|
1340
|
+
address: number[] | null;
|
|
1341
|
+
hash: BN;
|
|
1342
|
+
owner: PublicKey;
|
|
1343
|
+
leafIndex: number;
|
|
1344
|
+
tree: PublicKey;
|
|
1345
|
+
seq: BN | null;
|
|
1346
|
+
slotCreated: BN;
|
|
1347
|
+
};
|
|
1348
|
+
optionalTokenData: {
|
|
1349
|
+
owner: PublicKey;
|
|
1350
|
+
mint: PublicKey;
|
|
1351
|
+
amount: BN;
|
|
1352
|
+
delegate: PublicKey | null;
|
|
1353
|
+
state: string;
|
|
1354
|
+
} | null;
|
|
1355
|
+
}[];
|
|
1356
|
+
openedAccounts: {
|
|
1357
|
+
account: {
|
|
1358
|
+
lamports: BN;
|
|
1359
|
+
data: {
|
|
1360
|
+
data: string;
|
|
1361
|
+
dataHash: BN;
|
|
1362
|
+
discriminator: BN;
|
|
1363
|
+
} | null;
|
|
1364
|
+
address: number[] | null;
|
|
1365
|
+
hash: BN;
|
|
1366
|
+
owner: PublicKey;
|
|
1367
|
+
leafIndex: number;
|
|
1368
|
+
tree: PublicKey;
|
|
1369
|
+
seq: BN | null;
|
|
1370
|
+
slotCreated: BN;
|
|
1371
|
+
};
|
|
1372
|
+
optionalTokenData: {
|
|
1373
|
+
owner: PublicKey;
|
|
1374
|
+
mint: PublicKey;
|
|
1375
|
+
amount: BN;
|
|
1376
|
+
delegate: PublicKey | null;
|
|
1377
|
+
state: string;
|
|
1378
|
+
} | null;
|
|
1379
|
+
}[];
|
|
1380
|
+
}, {
|
|
1381
|
+
closedAccounts: Struct<{
|
|
1382
|
+
account: {
|
|
1383
|
+
lamports: BN;
|
|
1384
|
+
data: {
|
|
1385
|
+
data: string;
|
|
1386
|
+
dataHash: BN;
|
|
1387
|
+
discriminator: BN;
|
|
1388
|
+
} | null;
|
|
1389
|
+
address: number[] | null;
|
|
1390
|
+
hash: BN;
|
|
1391
|
+
owner: PublicKey;
|
|
1392
|
+
leafIndex: number;
|
|
1393
|
+
tree: PublicKey;
|
|
1394
|
+
seq: BN | null;
|
|
1395
|
+
slotCreated: BN;
|
|
1396
|
+
};
|
|
1397
|
+
optionalTokenData: {
|
|
1398
|
+
owner: PublicKey;
|
|
1399
|
+
mint: PublicKey;
|
|
1400
|
+
amount: BN;
|
|
1401
|
+
delegate: PublicKey | null;
|
|
1402
|
+
state: string;
|
|
1403
|
+
} | null;
|
|
1404
|
+
}[], Struct<{
|
|
1405
|
+
account: {
|
|
1406
|
+
lamports: BN;
|
|
1407
|
+
data: {
|
|
1408
|
+
data: string;
|
|
1409
|
+
dataHash: BN;
|
|
1410
|
+
discriminator: BN;
|
|
1411
|
+
} | null;
|
|
1412
|
+
address: number[] | null;
|
|
1413
|
+
hash: BN;
|
|
1414
|
+
owner: PublicKey;
|
|
1415
|
+
leafIndex: number;
|
|
1416
|
+
tree: PublicKey;
|
|
1417
|
+
seq: BN | null;
|
|
1418
|
+
slotCreated: BN;
|
|
1419
|
+
};
|
|
1420
|
+
optionalTokenData: {
|
|
1421
|
+
owner: PublicKey;
|
|
1422
|
+
mint: PublicKey;
|
|
1423
|
+
amount: BN;
|
|
1424
|
+
delegate: PublicKey | null;
|
|
1425
|
+
state: string;
|
|
1426
|
+
} | null;
|
|
1427
|
+
}, {
|
|
1428
|
+
account: Struct<{
|
|
1429
|
+
lamports: BN;
|
|
1430
|
+
data: {
|
|
1431
|
+
data: string;
|
|
1432
|
+
dataHash: BN;
|
|
1433
|
+
discriminator: BN;
|
|
1434
|
+
} | null;
|
|
1435
|
+
address: number[] | null;
|
|
1436
|
+
hash: BN;
|
|
1437
|
+
owner: PublicKey;
|
|
1438
|
+
leafIndex: number;
|
|
1439
|
+
tree: PublicKey;
|
|
1440
|
+
seq: BN | null;
|
|
1441
|
+
slotCreated: BN;
|
|
1442
|
+
}, {
|
|
1443
|
+
address: Struct<number[] | null, null>;
|
|
1444
|
+
hash: Struct<BN, null>;
|
|
1445
|
+
data: Struct<{
|
|
1446
|
+
data: string;
|
|
1447
|
+
dataHash: BN;
|
|
1448
|
+
discriminator: BN;
|
|
1449
|
+
} | null, {
|
|
1450
|
+
data: Struct<string, null>;
|
|
1451
|
+
dataHash: Struct<BN, null>;
|
|
1452
|
+
discriminator: Struct<BN, null>;
|
|
1453
|
+
}>;
|
|
1454
|
+
lamports: Struct<BN, null>;
|
|
1455
|
+
owner: Struct<PublicKey, null>;
|
|
1456
|
+
leafIndex: Struct<number, null>;
|
|
1457
|
+
tree: Struct<PublicKey, null>;
|
|
1458
|
+
seq: Struct<BN | null, null>;
|
|
1459
|
+
slotCreated: Struct<BN, null>;
|
|
1460
|
+
}>;
|
|
1461
|
+
optionalTokenData: Struct<{
|
|
1462
|
+
owner: PublicKey;
|
|
1463
|
+
mint: PublicKey;
|
|
1464
|
+
amount: BN;
|
|
1465
|
+
delegate: PublicKey | null;
|
|
1466
|
+
state: string;
|
|
1467
|
+
} | null, {
|
|
1468
|
+
mint: Struct<PublicKey, null>;
|
|
1469
|
+
owner: Struct<PublicKey, null>;
|
|
1470
|
+
amount: Struct<BN, null>;
|
|
1471
|
+
delegate: Struct<PublicKey | null, null>;
|
|
1472
|
+
state: Struct<string, null>;
|
|
1473
|
+
}>;
|
|
1474
|
+
}>>;
|
|
1475
|
+
openedAccounts: Struct<{
|
|
1476
|
+
account: {
|
|
974
1477
|
lamports: BN;
|
|
975
1478
|
data: {
|
|
976
1479
|
data: string;
|
|
@@ -984,63 +1487,15 @@ declare const CompressedAccountsByOwnerResult: Struct<
|
|
|
984
1487
|
tree: PublicKey;
|
|
985
1488
|
seq: BN | null;
|
|
986
1489
|
slotCreated: BN;
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
{
|
|
990
|
-
lamports: BN;
|
|
991
|
-
data: {
|
|
992
|
-
data: string;
|
|
993
|
-
dataHash: BN;
|
|
994
|
-
discriminator: BN;
|
|
995
|
-
} | null;
|
|
996
|
-
address: number[] | null;
|
|
997
|
-
hash: BN;
|
|
998
|
-
owner: PublicKey;
|
|
999
|
-
leafIndex: number;
|
|
1000
|
-
tree: PublicKey;
|
|
1001
|
-
seq: BN | null;
|
|
1002
|
-
slotCreated: BN;
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
address: Struct<number[] | null, null>;
|
|
1006
|
-
hash: Struct<BN, null>;
|
|
1007
|
-
data: Struct<
|
|
1008
|
-
{
|
|
1009
|
-
data: string;
|
|
1010
|
-
dataHash: BN;
|
|
1011
|
-
discriminator: BN;
|
|
1012
|
-
} | null,
|
|
1013
|
-
{
|
|
1014
|
-
data: Struct<string, null>;
|
|
1015
|
-
dataHash: Struct<BN, null>;
|
|
1016
|
-
discriminator: Struct<BN, null>;
|
|
1017
|
-
}
|
|
1018
|
-
>;
|
|
1019
|
-
lamports: Struct<BN, null>;
|
|
1020
|
-
owner: Struct<PublicKey, null>;
|
|
1021
|
-
leafIndex: Struct<number, null>;
|
|
1022
|
-
tree: Struct<PublicKey, null>;
|
|
1023
|
-
seq: Struct<BN | null, null>;
|
|
1024
|
-
slotCreated: Struct<BN, null>;
|
|
1025
|
-
}
|
|
1026
|
-
>
|
|
1027
|
-
>;
|
|
1028
|
-
cursor: Struct<string | null, null>;
|
|
1029
|
-
}
|
|
1030
|
-
>;
|
|
1031
|
-
/**
|
|
1032
|
-
* @internal
|
|
1033
|
-
*/
|
|
1034
|
-
declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<
|
|
1035
|
-
{
|
|
1036
|
-
items: {
|
|
1037
|
-
tokenData: {
|
|
1490
|
+
};
|
|
1491
|
+
optionalTokenData: {
|
|
1038
1492
|
owner: PublicKey;
|
|
1039
1493
|
mint: PublicKey;
|
|
1040
1494
|
amount: BN;
|
|
1041
1495
|
delegate: PublicKey | null;
|
|
1042
1496
|
state: string;
|
|
1043
|
-
};
|
|
1497
|
+
} | null;
|
|
1498
|
+
}[], Struct<{
|
|
1044
1499
|
account: {
|
|
1045
1500
|
lamports: BN;
|
|
1046
1501
|
data: {
|
|
@@ -1056,909 +1511,90 @@ declare const CompressedTokenAccountsByOwnerOrDelegateResult: Struct<
|
|
|
1056
1511
|
seq: BN | null;
|
|
1057
1512
|
slotCreated: BN;
|
|
1058
1513
|
};
|
|
1059
|
-
|
|
1060
|
-
cursor: string | null;
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
items: Struct<
|
|
1064
|
-
{
|
|
1065
|
-
tokenData: {
|
|
1066
|
-
owner: PublicKey;
|
|
1067
|
-
mint: PublicKey;
|
|
1068
|
-
amount: BN;
|
|
1069
|
-
delegate: PublicKey | null;
|
|
1070
|
-
state: string;
|
|
1071
|
-
};
|
|
1072
|
-
account: {
|
|
1073
|
-
lamports: BN;
|
|
1074
|
-
data: {
|
|
1075
|
-
data: string;
|
|
1076
|
-
dataHash: BN;
|
|
1077
|
-
discriminator: BN;
|
|
1078
|
-
} | null;
|
|
1079
|
-
address: number[] | null;
|
|
1080
|
-
hash: BN;
|
|
1081
|
-
owner: PublicKey;
|
|
1082
|
-
leafIndex: number;
|
|
1083
|
-
tree: PublicKey;
|
|
1084
|
-
seq: BN | null;
|
|
1085
|
-
slotCreated: BN;
|
|
1086
|
-
};
|
|
1087
|
-
}[],
|
|
1088
|
-
Struct<
|
|
1089
|
-
{
|
|
1090
|
-
tokenData: {
|
|
1091
|
-
owner: PublicKey;
|
|
1092
|
-
mint: PublicKey;
|
|
1093
|
-
amount: BN;
|
|
1094
|
-
delegate: PublicKey | null;
|
|
1095
|
-
state: string;
|
|
1096
|
-
};
|
|
1097
|
-
account: {
|
|
1098
|
-
lamports: BN;
|
|
1099
|
-
data: {
|
|
1100
|
-
data: string;
|
|
1101
|
-
dataHash: BN;
|
|
1102
|
-
discriminator: BN;
|
|
1103
|
-
} | null;
|
|
1104
|
-
address: number[] | null;
|
|
1105
|
-
hash: BN;
|
|
1106
|
-
owner: PublicKey;
|
|
1107
|
-
leafIndex: number;
|
|
1108
|
-
tree: PublicKey;
|
|
1109
|
-
seq: BN | null;
|
|
1110
|
-
slotCreated: BN;
|
|
1111
|
-
};
|
|
1112
|
-
},
|
|
1113
|
-
{
|
|
1114
|
-
tokenData: Struct<
|
|
1115
|
-
{
|
|
1116
|
-
owner: PublicKey;
|
|
1117
|
-
mint: PublicKey;
|
|
1118
|
-
amount: BN;
|
|
1119
|
-
delegate: PublicKey | null;
|
|
1120
|
-
state: string;
|
|
1121
|
-
},
|
|
1122
|
-
{
|
|
1123
|
-
mint: Struct<PublicKey, null>;
|
|
1124
|
-
owner: Struct<PublicKey, null>;
|
|
1125
|
-
amount: Struct<BN, null>;
|
|
1126
|
-
delegate: Struct<PublicKey | null, null>;
|
|
1127
|
-
state: Struct<string, null>;
|
|
1128
|
-
}
|
|
1129
|
-
>;
|
|
1130
|
-
account: Struct<
|
|
1131
|
-
{
|
|
1132
|
-
lamports: BN;
|
|
1133
|
-
data: {
|
|
1134
|
-
data: string;
|
|
1135
|
-
dataHash: BN;
|
|
1136
|
-
discriminator: BN;
|
|
1137
|
-
} | null;
|
|
1138
|
-
address: number[] | null;
|
|
1139
|
-
hash: BN;
|
|
1140
|
-
owner: PublicKey;
|
|
1141
|
-
leafIndex: number;
|
|
1142
|
-
tree: PublicKey;
|
|
1143
|
-
seq: BN | null;
|
|
1144
|
-
slotCreated: BN;
|
|
1145
|
-
},
|
|
1146
|
-
{
|
|
1147
|
-
address: Struct<number[] | null, null>;
|
|
1148
|
-
hash: Struct<BN, null>;
|
|
1149
|
-
data: Struct<
|
|
1150
|
-
{
|
|
1151
|
-
data: string;
|
|
1152
|
-
dataHash: BN;
|
|
1153
|
-
discriminator: BN;
|
|
1154
|
-
} | null,
|
|
1155
|
-
{
|
|
1156
|
-
data: Struct<string, null>;
|
|
1157
|
-
dataHash: Struct<BN, null>;
|
|
1158
|
-
discriminator: Struct<BN, null>;
|
|
1159
|
-
}
|
|
1160
|
-
>;
|
|
1161
|
-
lamports: Struct<BN, null>;
|
|
1162
|
-
owner: Struct<PublicKey, null>;
|
|
1163
|
-
leafIndex: Struct<number, null>;
|
|
1164
|
-
tree: Struct<PublicKey, null>;
|
|
1165
|
-
seq: Struct<BN | null, null>;
|
|
1166
|
-
slotCreated: Struct<BN, null>;
|
|
1167
|
-
}
|
|
1168
|
-
>;
|
|
1169
|
-
}
|
|
1170
|
-
>
|
|
1171
|
-
>;
|
|
1172
|
-
cursor: Struct<string | null, null>;
|
|
1173
|
-
}
|
|
1174
|
-
>;
|
|
1175
|
-
/**
|
|
1176
|
-
* @internal
|
|
1177
|
-
*/
|
|
1178
|
-
declare const SlotResult: Struct<number, null>;
|
|
1179
|
-
/**
|
|
1180
|
-
* @internal
|
|
1181
|
-
*/
|
|
1182
|
-
declare const HealthResult: Struct<string, null>;
|
|
1183
|
-
/**
|
|
1184
|
-
* @internal
|
|
1185
|
-
*/
|
|
1186
|
-
declare const LatestNonVotingSignaturesResult: Struct<
|
|
1187
|
-
{
|
|
1188
|
-
items: {
|
|
1189
|
-
signature: string;
|
|
1190
|
-
error: string | null;
|
|
1191
|
-
slot: number;
|
|
1192
|
-
blockTime: number;
|
|
1193
|
-
}[];
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
items: Struct<
|
|
1197
|
-
{
|
|
1198
|
-
signature: string;
|
|
1199
|
-
error: string | null;
|
|
1200
|
-
slot: number;
|
|
1201
|
-
blockTime: number;
|
|
1202
|
-
}[],
|
|
1203
|
-
Struct<
|
|
1204
|
-
{
|
|
1205
|
-
signature: string;
|
|
1206
|
-
error: string | null;
|
|
1207
|
-
slot: number;
|
|
1208
|
-
blockTime: number;
|
|
1209
|
-
},
|
|
1210
|
-
{
|
|
1211
|
-
signature: Struct<string, null>;
|
|
1212
|
-
slot: Struct<number, null>;
|
|
1213
|
-
blockTime: Struct<number, null>;
|
|
1214
|
-
error: Struct<string | null, null>;
|
|
1215
|
-
}
|
|
1216
|
-
>
|
|
1217
|
-
>;
|
|
1218
|
-
}
|
|
1219
|
-
>;
|
|
1220
|
-
/**
|
|
1221
|
-
* @internal
|
|
1222
|
-
*/
|
|
1223
|
-
declare const LatestNonVotingSignaturesResultPaginated: Struct<
|
|
1224
|
-
{
|
|
1225
|
-
items: {
|
|
1226
|
-
signature: string;
|
|
1227
|
-
slot: number;
|
|
1228
|
-
blockTime: number;
|
|
1229
|
-
}[];
|
|
1230
|
-
cursor: string | null;
|
|
1231
|
-
},
|
|
1232
|
-
{
|
|
1233
|
-
items: Struct<
|
|
1234
|
-
{
|
|
1235
|
-
signature: string;
|
|
1236
|
-
slot: number;
|
|
1237
|
-
blockTime: number;
|
|
1238
|
-
}[],
|
|
1239
|
-
Struct<
|
|
1240
|
-
{
|
|
1241
|
-
signature: string;
|
|
1242
|
-
slot: number;
|
|
1243
|
-
blockTime: number;
|
|
1244
|
-
},
|
|
1245
|
-
{
|
|
1246
|
-
signature: Struct<string, null>;
|
|
1247
|
-
slot: Struct<number, null>;
|
|
1248
|
-
blockTime: Struct<number, null>;
|
|
1249
|
-
}
|
|
1250
|
-
>
|
|
1251
|
-
>;
|
|
1252
|
-
cursor: Struct<string | null, null>;
|
|
1253
|
-
}
|
|
1254
|
-
>;
|
|
1255
|
-
/**
|
|
1256
|
-
* @internal
|
|
1257
|
-
*/
|
|
1258
|
-
declare const MerkeProofResult: Struct<
|
|
1259
|
-
{
|
|
1260
|
-
root: BN;
|
|
1261
|
-
hash: BN;
|
|
1262
|
-
leafIndex: number;
|
|
1263
|
-
merkleTree: PublicKey;
|
|
1264
|
-
proof: BN[];
|
|
1265
|
-
rootSeq: number;
|
|
1266
|
-
},
|
|
1267
|
-
{
|
|
1268
|
-
hash: Struct<BN, null>;
|
|
1269
|
-
leafIndex: Struct<number, null>;
|
|
1270
|
-
merkleTree: Struct<PublicKey, null>;
|
|
1271
|
-
proof: Struct<BN[], Struct<BN, null>>;
|
|
1272
|
-
rootSeq: Struct<number, null>;
|
|
1273
|
-
root: Struct<BN, null>;
|
|
1274
|
-
}
|
|
1275
|
-
>;
|
|
1276
|
-
/**
|
|
1277
|
-
* @internal
|
|
1278
|
-
*/
|
|
1279
|
-
declare const NewAddressProofResult: Struct<
|
|
1280
|
-
{
|
|
1281
|
-
root: BN;
|
|
1282
|
-
address: BN;
|
|
1283
|
-
merkleTree: PublicKey;
|
|
1284
|
-
proof: BN[];
|
|
1285
|
-
rootSeq: number;
|
|
1286
|
-
nextIndex: number;
|
|
1287
|
-
lowerRangeAddress: BN;
|
|
1288
|
-
higherRangeAddress: BN;
|
|
1289
|
-
lowElementLeafIndex: number;
|
|
1290
|
-
},
|
|
1291
|
-
{
|
|
1292
|
-
address: Struct<BN, null>;
|
|
1293
|
-
nextIndex: Struct<number, null>;
|
|
1294
|
-
merkleTree: Struct<PublicKey, null>;
|
|
1295
|
-
proof: Struct<BN[], Struct<BN, null>>;
|
|
1296
|
-
rootSeq: Struct<number, null>;
|
|
1297
|
-
root: Struct<BN, null>;
|
|
1298
|
-
lowerRangeAddress: Struct<BN, null>;
|
|
1299
|
-
higherRangeAddress: Struct<BN, null>;
|
|
1300
|
-
lowElementLeafIndex: Struct<number, null>;
|
|
1301
|
-
}
|
|
1302
|
-
>;
|
|
1303
|
-
/**
|
|
1304
|
-
* @internal
|
|
1305
|
-
*/
|
|
1306
|
-
declare const ValidityProofResult: Struct<
|
|
1307
|
-
{
|
|
1308
|
-
compressedProof: {
|
|
1309
|
-
a: number[];
|
|
1310
|
-
b: number[];
|
|
1311
|
-
c: number[];
|
|
1312
|
-
};
|
|
1313
|
-
leafIndices: number[];
|
|
1314
|
-
leaves: BN[];
|
|
1315
|
-
rootIndices: number[];
|
|
1316
|
-
roots: BN[];
|
|
1317
|
-
merkleTrees: PublicKey[];
|
|
1318
|
-
},
|
|
1319
|
-
{
|
|
1320
|
-
compressedProof: Struct<
|
|
1321
|
-
{
|
|
1322
|
-
a: number[];
|
|
1323
|
-
b: number[];
|
|
1324
|
-
c: number[];
|
|
1325
|
-
},
|
|
1326
|
-
{
|
|
1327
|
-
a: Struct<number[], Struct<number, null>>;
|
|
1328
|
-
b: Struct<number[], Struct<number, null>>;
|
|
1329
|
-
c: Struct<number[], Struct<number, null>>;
|
|
1330
|
-
}
|
|
1331
|
-
>;
|
|
1332
|
-
leafIndices: Struct<number[], Struct<number, null>>;
|
|
1333
|
-
leaves: Struct<BN[], Struct<BN, null>>;
|
|
1334
|
-
rootIndices: Struct<number[], Struct<number, null>>;
|
|
1335
|
-
roots: Struct<BN[], Struct<BN, null>>;
|
|
1336
|
-
merkleTrees: Struct<PublicKey[], Struct<PublicKey, null>>;
|
|
1337
|
-
}
|
|
1338
|
-
>;
|
|
1339
|
-
/**
|
|
1340
|
-
* @internal
|
|
1341
|
-
*/
|
|
1342
|
-
declare const MultipleMerkleProofsResult: Struct<
|
|
1343
|
-
{
|
|
1344
|
-
root: BN;
|
|
1345
|
-
hash: BN;
|
|
1346
|
-
leafIndex: number;
|
|
1347
|
-
merkleTree: PublicKey;
|
|
1348
|
-
proof: BN[];
|
|
1349
|
-
rootSeq: number;
|
|
1350
|
-
}[],
|
|
1351
|
-
Struct<
|
|
1352
|
-
{
|
|
1353
|
-
root: BN;
|
|
1354
|
-
hash: BN;
|
|
1355
|
-
leafIndex: number;
|
|
1356
|
-
merkleTree: PublicKey;
|
|
1357
|
-
proof: BN[];
|
|
1358
|
-
rootSeq: number;
|
|
1359
|
-
},
|
|
1360
|
-
{
|
|
1361
|
-
hash: Struct<BN, null>;
|
|
1362
|
-
leafIndex: Struct<number, null>;
|
|
1363
|
-
merkleTree: Struct<PublicKey, null>;
|
|
1364
|
-
proof: Struct<BN[], Struct<BN, null>>;
|
|
1365
|
-
rootSeq: Struct<number, null>;
|
|
1366
|
-
root: Struct<BN, null>;
|
|
1367
|
-
}
|
|
1368
|
-
>
|
|
1369
|
-
>;
|
|
1370
|
-
/**
|
|
1371
|
-
* @internal
|
|
1372
|
-
*/
|
|
1373
|
-
declare const BalanceResult: Struct<
|
|
1374
|
-
{
|
|
1375
|
-
amount: BN;
|
|
1376
|
-
},
|
|
1377
|
-
{
|
|
1378
|
-
amount: Struct<BN, null>;
|
|
1379
|
-
}
|
|
1380
|
-
>;
|
|
1381
|
-
declare const NativeBalanceResult: Struct<BN, null>;
|
|
1382
|
-
declare const TokenBalanceResult: Struct<
|
|
1383
|
-
{
|
|
1384
|
-
mint: PublicKey;
|
|
1385
|
-
balance: BN;
|
|
1386
|
-
},
|
|
1387
|
-
{
|
|
1388
|
-
balance: Struct<BN, null>;
|
|
1389
|
-
mint: Struct<PublicKey, null>;
|
|
1390
|
-
}
|
|
1391
|
-
>;
|
|
1392
|
-
declare const TokenBalanceListResult: Struct<
|
|
1393
|
-
{
|
|
1394
|
-
cursor: string | null;
|
|
1395
|
-
tokenBalances: {
|
|
1396
|
-
mint: PublicKey;
|
|
1397
|
-
balance: BN;
|
|
1398
|
-
}[];
|
|
1399
|
-
},
|
|
1400
|
-
{
|
|
1401
|
-
tokenBalances: Struct<
|
|
1402
|
-
{
|
|
1403
|
-
mint: PublicKey;
|
|
1404
|
-
balance: BN;
|
|
1405
|
-
}[],
|
|
1406
|
-
Struct<
|
|
1407
|
-
{
|
|
1408
|
-
mint: PublicKey;
|
|
1409
|
-
balance: BN;
|
|
1410
|
-
},
|
|
1411
|
-
{
|
|
1412
|
-
balance: Struct<BN, null>;
|
|
1413
|
-
mint: Struct<PublicKey, null>;
|
|
1414
|
-
}
|
|
1415
|
-
>
|
|
1416
|
-
>;
|
|
1417
|
-
cursor: Struct<string | null, null>;
|
|
1418
|
-
}
|
|
1419
|
-
>;
|
|
1420
|
-
declare const TokenBalanceListResultV2: Struct<
|
|
1421
|
-
{
|
|
1422
|
-
items: {
|
|
1423
|
-
mint: PublicKey;
|
|
1424
|
-
balance: BN;
|
|
1425
|
-
}[];
|
|
1426
|
-
cursor: string | null;
|
|
1427
|
-
},
|
|
1428
|
-
{
|
|
1429
|
-
items: Struct<
|
|
1430
|
-
{
|
|
1431
|
-
mint: PublicKey;
|
|
1432
|
-
balance: BN;
|
|
1433
|
-
}[],
|
|
1434
|
-
Struct<
|
|
1435
|
-
{
|
|
1436
|
-
mint: PublicKey;
|
|
1437
|
-
balance: BN;
|
|
1438
|
-
},
|
|
1439
|
-
{
|
|
1440
|
-
balance: Struct<BN, null>;
|
|
1441
|
-
mint: Struct<PublicKey, null>;
|
|
1442
|
-
}
|
|
1443
|
-
>
|
|
1444
|
-
>;
|
|
1445
|
-
cursor: Struct<string | null, null>;
|
|
1446
|
-
}
|
|
1447
|
-
>;
|
|
1448
|
-
declare const CompressedMintTokenHoldersResult: Struct<
|
|
1449
|
-
{
|
|
1450
|
-
items: {
|
|
1451
|
-
owner: PublicKey;
|
|
1452
|
-
balance: BN;
|
|
1453
|
-
}[];
|
|
1454
|
-
cursor: string | null;
|
|
1455
|
-
},
|
|
1456
|
-
{
|
|
1457
|
-
cursor: Struct<string | null, null>;
|
|
1458
|
-
items: Struct<
|
|
1459
|
-
{
|
|
1514
|
+
optionalTokenData: {
|
|
1460
1515
|
owner: PublicKey;
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
>;
|
|
1474
|
-
}
|
|
1475
|
-
>;
|
|
1476
|
-
declare const AccountProofResult: Struct<
|
|
1477
|
-
{
|
|
1478
|
-
root: number[];
|
|
1479
|
-
hash: number[];
|
|
1480
|
-
proof: number[][];
|
|
1481
|
-
},
|
|
1482
|
-
{
|
|
1483
|
-
hash: Struct<number[], Struct<number, null>>;
|
|
1484
|
-
root: Struct<number[], Struct<number, null>>;
|
|
1485
|
-
proof: Struct<number[][], Struct<number[], Struct<number, null>>>;
|
|
1486
|
-
}
|
|
1487
|
-
>;
|
|
1488
|
-
declare const toUnixTimestamp: (blockTime: string) => number;
|
|
1489
|
-
declare const SignatureListResult: Struct<
|
|
1490
|
-
{
|
|
1491
|
-
items: {
|
|
1492
|
-
signature: string;
|
|
1493
|
-
slot: number;
|
|
1494
|
-
blockTime: number;
|
|
1495
|
-
}[];
|
|
1496
|
-
},
|
|
1497
|
-
{
|
|
1498
|
-
items: Struct<
|
|
1499
|
-
{
|
|
1500
|
-
signature: string;
|
|
1501
|
-
slot: number;
|
|
1502
|
-
blockTime: number;
|
|
1503
|
-
}[],
|
|
1504
|
-
Struct<
|
|
1505
|
-
{
|
|
1506
|
-
signature: string;
|
|
1507
|
-
slot: number;
|
|
1508
|
-
blockTime: number;
|
|
1509
|
-
},
|
|
1510
|
-
{
|
|
1511
|
-
blockTime: Struct<number, null>;
|
|
1512
|
-
signature: Struct<string, null>;
|
|
1513
|
-
slot: Struct<number, null>;
|
|
1514
|
-
}
|
|
1515
|
-
>
|
|
1516
|
-
>;
|
|
1517
|
-
}
|
|
1518
|
-
>;
|
|
1519
|
-
declare const SignatureListWithCursorResult: Struct<
|
|
1520
|
-
{
|
|
1521
|
-
items: {
|
|
1522
|
-
signature: string;
|
|
1523
|
-
slot: number;
|
|
1524
|
-
blockTime: number;
|
|
1525
|
-
}[];
|
|
1526
|
-
cursor: string | null;
|
|
1527
|
-
},
|
|
1528
|
-
{
|
|
1529
|
-
items: Struct<
|
|
1530
|
-
{
|
|
1531
|
-
signature: string;
|
|
1532
|
-
slot: number;
|
|
1533
|
-
blockTime: number;
|
|
1534
|
-
}[],
|
|
1535
|
-
Struct<
|
|
1536
|
-
{
|
|
1537
|
-
signature: string;
|
|
1538
|
-
slot: number;
|
|
1539
|
-
blockTime: number;
|
|
1540
|
-
},
|
|
1541
|
-
{
|
|
1542
|
-
blockTime: Struct<number, null>;
|
|
1543
|
-
signature: Struct<string, null>;
|
|
1544
|
-
slot: Struct<number, null>;
|
|
1545
|
-
}
|
|
1546
|
-
>
|
|
1547
|
-
>;
|
|
1548
|
-
cursor: Struct<string | null, null>;
|
|
1549
|
-
}
|
|
1550
|
-
>;
|
|
1551
|
-
declare const CompressedTransactionResult: Struct<
|
|
1552
|
-
{
|
|
1553
|
-
compressionInfo: {
|
|
1554
|
-
closedAccounts: {
|
|
1555
|
-
account: {
|
|
1556
|
-
lamports: BN;
|
|
1557
|
-
data: {
|
|
1558
|
-
data: string;
|
|
1559
|
-
dataHash: BN;
|
|
1560
|
-
discriminator: BN;
|
|
1561
|
-
} | null;
|
|
1562
|
-
address: number[] | null;
|
|
1563
|
-
hash: BN;
|
|
1564
|
-
owner: PublicKey;
|
|
1565
|
-
leafIndex: number;
|
|
1566
|
-
tree: PublicKey;
|
|
1567
|
-
seq: BN | null;
|
|
1568
|
-
slotCreated: BN;
|
|
1569
|
-
};
|
|
1570
|
-
optionalTokenData: {
|
|
1571
|
-
owner: PublicKey;
|
|
1572
|
-
mint: PublicKey;
|
|
1573
|
-
amount: BN;
|
|
1574
|
-
delegate: PublicKey | null;
|
|
1575
|
-
state: string;
|
|
1576
|
-
} | null;
|
|
1577
|
-
}[];
|
|
1578
|
-
openedAccounts: {
|
|
1579
|
-
account: {
|
|
1580
|
-
lamports: BN;
|
|
1581
|
-
data: {
|
|
1582
|
-
data: string;
|
|
1583
|
-
dataHash: BN;
|
|
1584
|
-
discriminator: BN;
|
|
1585
|
-
} | null;
|
|
1586
|
-
address: number[] | null;
|
|
1587
|
-
hash: BN;
|
|
1588
|
-
owner: PublicKey;
|
|
1589
|
-
leafIndex: number;
|
|
1590
|
-
tree: PublicKey;
|
|
1591
|
-
seq: BN | null;
|
|
1592
|
-
slotCreated: BN;
|
|
1593
|
-
};
|
|
1594
|
-
optionalTokenData: {
|
|
1595
|
-
owner: PublicKey;
|
|
1596
|
-
mint: PublicKey;
|
|
1597
|
-
amount: BN;
|
|
1598
|
-
delegate: PublicKey | null;
|
|
1599
|
-
state: string;
|
|
1516
|
+
mint: PublicKey;
|
|
1517
|
+
amount: BN;
|
|
1518
|
+
delegate: PublicKey | null;
|
|
1519
|
+
state: string;
|
|
1520
|
+
} | null;
|
|
1521
|
+
}, {
|
|
1522
|
+
account: Struct<{
|
|
1523
|
+
lamports: BN;
|
|
1524
|
+
data: {
|
|
1525
|
+
data: string;
|
|
1526
|
+
dataHash: BN;
|
|
1527
|
+
discriminator: BN;
|
|
1600
1528
|
} | null;
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
tree: PublicKey;
|
|
1645
|
-
seq: BN | null;
|
|
1646
|
-
slotCreated: BN;
|
|
1647
|
-
};
|
|
1648
|
-
optionalTokenData: {
|
|
1649
|
-
owner: PublicKey;
|
|
1650
|
-
mint: PublicKey;
|
|
1651
|
-
amount: BN;
|
|
1652
|
-
delegate: PublicKey | null;
|
|
1653
|
-
state: string;
|
|
1654
|
-
} | null;
|
|
1655
|
-
}[];
|
|
1656
|
-
},
|
|
1657
|
-
{
|
|
1658
|
-
closedAccounts: Struct<
|
|
1659
|
-
{
|
|
1660
|
-
account: {
|
|
1661
|
-
lamports: BN;
|
|
1662
|
-
data: {
|
|
1663
|
-
data: string;
|
|
1664
|
-
dataHash: BN;
|
|
1665
|
-
discriminator: BN;
|
|
1666
|
-
} | null;
|
|
1667
|
-
address: number[] | null;
|
|
1668
|
-
hash: BN;
|
|
1669
|
-
owner: PublicKey;
|
|
1670
|
-
leafIndex: number;
|
|
1671
|
-
tree: PublicKey;
|
|
1672
|
-
seq: BN | null;
|
|
1673
|
-
slotCreated: BN;
|
|
1674
|
-
};
|
|
1675
|
-
optionalTokenData: {
|
|
1676
|
-
owner: PublicKey;
|
|
1677
|
-
mint: PublicKey;
|
|
1678
|
-
amount: BN;
|
|
1679
|
-
delegate: PublicKey | null;
|
|
1680
|
-
state: string;
|
|
1681
|
-
} | null;
|
|
1682
|
-
}[],
|
|
1683
|
-
Struct<
|
|
1684
|
-
{
|
|
1685
|
-
account: {
|
|
1686
|
-
lamports: BN;
|
|
1687
|
-
data: {
|
|
1688
|
-
data: string;
|
|
1689
|
-
dataHash: BN;
|
|
1690
|
-
discriminator: BN;
|
|
1691
|
-
} | null;
|
|
1692
|
-
address: number[] | null;
|
|
1693
|
-
hash: BN;
|
|
1694
|
-
owner: PublicKey;
|
|
1695
|
-
leafIndex: number;
|
|
1696
|
-
tree: PublicKey;
|
|
1697
|
-
seq: BN | null;
|
|
1698
|
-
slotCreated: BN;
|
|
1699
|
-
};
|
|
1700
|
-
optionalTokenData: {
|
|
1701
|
-
owner: PublicKey;
|
|
1702
|
-
mint: PublicKey;
|
|
1703
|
-
amount: BN;
|
|
1704
|
-
delegate: PublicKey | null;
|
|
1705
|
-
state: string;
|
|
1706
|
-
} | null;
|
|
1707
|
-
},
|
|
1708
|
-
{
|
|
1709
|
-
account: Struct<
|
|
1710
|
-
{
|
|
1711
|
-
lamports: BN;
|
|
1712
|
-
data: {
|
|
1713
|
-
data: string;
|
|
1714
|
-
dataHash: BN;
|
|
1715
|
-
discriminator: BN;
|
|
1716
|
-
} | null;
|
|
1717
|
-
address: number[] | null;
|
|
1718
|
-
hash: BN;
|
|
1719
|
-
owner: PublicKey;
|
|
1720
|
-
leafIndex: number;
|
|
1721
|
-
tree: PublicKey;
|
|
1722
|
-
seq: BN | null;
|
|
1723
|
-
slotCreated: BN;
|
|
1724
|
-
},
|
|
1725
|
-
{
|
|
1726
|
-
address: Struct<number[] | null, null>;
|
|
1727
|
-
hash: Struct<BN, null>;
|
|
1728
|
-
data: Struct<
|
|
1729
|
-
{
|
|
1730
|
-
data: string;
|
|
1731
|
-
dataHash: BN;
|
|
1732
|
-
discriminator: BN;
|
|
1733
|
-
} | null,
|
|
1734
|
-
{
|
|
1735
|
-
data: Struct<string, null>;
|
|
1736
|
-
dataHash: Struct<BN, null>;
|
|
1737
|
-
discriminator: Struct<BN, null>;
|
|
1738
|
-
}
|
|
1739
|
-
>;
|
|
1740
|
-
lamports: Struct<BN, null>;
|
|
1741
|
-
owner: Struct<PublicKey, null>;
|
|
1742
|
-
leafIndex: Struct<number, null>;
|
|
1743
|
-
tree: Struct<PublicKey, null>;
|
|
1744
|
-
seq: Struct<BN | null, null>;
|
|
1745
|
-
slotCreated: Struct<BN, null>;
|
|
1746
|
-
}
|
|
1747
|
-
>;
|
|
1748
|
-
optionalTokenData: Struct<
|
|
1749
|
-
{
|
|
1750
|
-
owner: PublicKey;
|
|
1751
|
-
mint: PublicKey;
|
|
1752
|
-
amount: BN;
|
|
1753
|
-
delegate: PublicKey | null;
|
|
1754
|
-
state: string;
|
|
1755
|
-
} | null,
|
|
1756
|
-
{
|
|
1757
|
-
mint: Struct<PublicKey, null>;
|
|
1758
|
-
owner: Struct<PublicKey, null>;
|
|
1759
|
-
amount: Struct<BN, null>;
|
|
1760
|
-
delegate: Struct<PublicKey | null, null>;
|
|
1761
|
-
state: Struct<string, null>;
|
|
1762
|
-
}
|
|
1763
|
-
>;
|
|
1764
|
-
}
|
|
1765
|
-
>
|
|
1766
|
-
>;
|
|
1767
|
-
openedAccounts: Struct<
|
|
1768
|
-
{
|
|
1769
|
-
account: {
|
|
1770
|
-
lamports: BN;
|
|
1771
|
-
data: {
|
|
1772
|
-
data: string;
|
|
1773
|
-
dataHash: BN;
|
|
1774
|
-
discriminator: BN;
|
|
1775
|
-
} | null;
|
|
1776
|
-
address: number[] | null;
|
|
1777
|
-
hash: BN;
|
|
1778
|
-
owner: PublicKey;
|
|
1779
|
-
leafIndex: number;
|
|
1780
|
-
tree: PublicKey;
|
|
1781
|
-
seq: BN | null;
|
|
1782
|
-
slotCreated: BN;
|
|
1783
|
-
};
|
|
1784
|
-
optionalTokenData: {
|
|
1785
|
-
owner: PublicKey;
|
|
1786
|
-
mint: PublicKey;
|
|
1787
|
-
amount: BN;
|
|
1788
|
-
delegate: PublicKey | null;
|
|
1789
|
-
state: string;
|
|
1790
|
-
} | null;
|
|
1791
|
-
}[],
|
|
1792
|
-
Struct<
|
|
1793
|
-
{
|
|
1794
|
-
account: {
|
|
1795
|
-
lamports: BN;
|
|
1796
|
-
data: {
|
|
1797
|
-
data: string;
|
|
1798
|
-
dataHash: BN;
|
|
1799
|
-
discriminator: BN;
|
|
1800
|
-
} | null;
|
|
1801
|
-
address: number[] | null;
|
|
1802
|
-
hash: BN;
|
|
1803
|
-
owner: PublicKey;
|
|
1804
|
-
leafIndex: number;
|
|
1805
|
-
tree: PublicKey;
|
|
1806
|
-
seq: BN | null;
|
|
1807
|
-
slotCreated: BN;
|
|
1808
|
-
};
|
|
1809
|
-
optionalTokenData: {
|
|
1810
|
-
owner: PublicKey;
|
|
1811
|
-
mint: PublicKey;
|
|
1812
|
-
amount: BN;
|
|
1813
|
-
delegate: PublicKey | null;
|
|
1814
|
-
state: string;
|
|
1815
|
-
} | null;
|
|
1816
|
-
},
|
|
1817
|
-
{
|
|
1818
|
-
account: Struct<
|
|
1819
|
-
{
|
|
1820
|
-
lamports: BN;
|
|
1821
|
-
data: {
|
|
1822
|
-
data: string;
|
|
1823
|
-
dataHash: BN;
|
|
1824
|
-
discriminator: BN;
|
|
1825
|
-
} | null;
|
|
1826
|
-
address: number[] | null;
|
|
1827
|
-
hash: BN;
|
|
1828
|
-
owner: PublicKey;
|
|
1829
|
-
leafIndex: number;
|
|
1830
|
-
tree: PublicKey;
|
|
1831
|
-
seq: BN | null;
|
|
1832
|
-
slotCreated: BN;
|
|
1833
|
-
},
|
|
1834
|
-
{
|
|
1835
|
-
address: Struct<number[] | null, null>;
|
|
1836
|
-
hash: Struct<BN, null>;
|
|
1837
|
-
data: Struct<
|
|
1838
|
-
{
|
|
1839
|
-
data: string;
|
|
1840
|
-
dataHash: BN;
|
|
1841
|
-
discriminator: BN;
|
|
1842
|
-
} | null,
|
|
1843
|
-
{
|
|
1844
|
-
data: Struct<string, null>;
|
|
1845
|
-
dataHash: Struct<BN, null>;
|
|
1846
|
-
discriminator: Struct<BN, null>;
|
|
1847
|
-
}
|
|
1848
|
-
>;
|
|
1849
|
-
lamports: Struct<BN, null>;
|
|
1850
|
-
owner: Struct<PublicKey, null>;
|
|
1851
|
-
leafIndex: Struct<number, null>;
|
|
1852
|
-
tree: Struct<PublicKey, null>;
|
|
1853
|
-
seq: Struct<BN | null, null>;
|
|
1854
|
-
slotCreated: Struct<BN, null>;
|
|
1855
|
-
}
|
|
1856
|
-
>;
|
|
1857
|
-
optionalTokenData: Struct<
|
|
1858
|
-
{
|
|
1859
|
-
owner: PublicKey;
|
|
1860
|
-
mint: PublicKey;
|
|
1861
|
-
amount: BN;
|
|
1862
|
-
delegate: PublicKey | null;
|
|
1863
|
-
state: string;
|
|
1864
|
-
} | null,
|
|
1865
|
-
{
|
|
1866
|
-
mint: Struct<PublicKey, null>;
|
|
1867
|
-
owner: Struct<PublicKey, null>;
|
|
1868
|
-
amount: Struct<BN, null>;
|
|
1869
|
-
delegate: Struct<PublicKey | null, null>;
|
|
1870
|
-
state: Struct<string, null>;
|
|
1871
|
-
}
|
|
1872
|
-
>;
|
|
1873
|
-
}
|
|
1874
|
-
>
|
|
1875
|
-
>;
|
|
1876
|
-
}
|
|
1877
|
-
>;
|
|
1878
|
-
transaction: Struct<any, null>;
|
|
1879
|
-
}
|
|
1880
|
-
>;
|
|
1529
|
+
address: number[] | null;
|
|
1530
|
+
hash: BN;
|
|
1531
|
+
owner: PublicKey;
|
|
1532
|
+
leafIndex: number;
|
|
1533
|
+
tree: PublicKey;
|
|
1534
|
+
seq: BN | null;
|
|
1535
|
+
slotCreated: BN;
|
|
1536
|
+
}, {
|
|
1537
|
+
address: Struct<number[] | null, null>;
|
|
1538
|
+
hash: Struct<BN, null>;
|
|
1539
|
+
data: Struct<{
|
|
1540
|
+
data: string;
|
|
1541
|
+
dataHash: BN;
|
|
1542
|
+
discriminator: BN;
|
|
1543
|
+
} | null, {
|
|
1544
|
+
data: Struct<string, null>;
|
|
1545
|
+
dataHash: Struct<BN, null>;
|
|
1546
|
+
discriminator: Struct<BN, null>;
|
|
1547
|
+
}>;
|
|
1548
|
+
lamports: Struct<BN, null>;
|
|
1549
|
+
owner: Struct<PublicKey, null>;
|
|
1550
|
+
leafIndex: Struct<number, null>;
|
|
1551
|
+
tree: Struct<PublicKey, null>;
|
|
1552
|
+
seq: Struct<BN | null, null>;
|
|
1553
|
+
slotCreated: Struct<BN, null>;
|
|
1554
|
+
}>;
|
|
1555
|
+
optionalTokenData: Struct<{
|
|
1556
|
+
owner: PublicKey;
|
|
1557
|
+
mint: PublicKey;
|
|
1558
|
+
amount: BN;
|
|
1559
|
+
delegate: PublicKey | null;
|
|
1560
|
+
state: string;
|
|
1561
|
+
} | null, {
|
|
1562
|
+
mint: Struct<PublicKey, null>;
|
|
1563
|
+
owner: Struct<PublicKey, null>;
|
|
1564
|
+
amount: Struct<BN, null>;
|
|
1565
|
+
delegate: Struct<PublicKey | null, null>;
|
|
1566
|
+
state: Struct<string, null>;
|
|
1567
|
+
}>;
|
|
1568
|
+
}>>;
|
|
1569
|
+
}>;
|
|
1570
|
+
transaction: Struct<any, null>;
|
|
1571
|
+
}>;
|
|
1881
1572
|
interface CompressionApiInterface {
|
|
1882
|
-
getCompressedAccount(
|
|
1883
|
-
address?: BN254,
|
|
1884
|
-
hash?: BN254,
|
|
1885
|
-
): Promise<CompressedAccountWithMerkleContext | null>;
|
|
1573
|
+
getCompressedAccount(address?: BN254, hash?: BN254): Promise<CompressedAccountWithMerkleContext | null>;
|
|
1886
1574
|
getCompressedBalance(address?: BN254, hash?: BN254): Promise<BN | null>;
|
|
1887
1575
|
getCompressedBalanceByOwner(owner: PublicKey): Promise<BN>;
|
|
1888
|
-
getCompressedAccountProof(
|
|
1889
|
-
|
|
1890
|
-
): Promise<MerkleContextWithMerkleProof>;
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
): Promise<
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
): Promise<
|
|
1897
|
-
|
|
1898
|
-
hashes: BN254[],
|
|
1899
|
-
newAddresses: BN254[],
|
|
1900
|
-
): Promise<CompressedProofWithContext>;
|
|
1901
|
-
getValidityProofV0(
|
|
1902
|
-
hashes: HashWithTree[],
|
|
1903
|
-
newAddresses: AddressWithTree[],
|
|
1904
|
-
): Promise<CompressedProofWithContext>;
|
|
1905
|
-
getValidityProofAndRpcContext(
|
|
1906
|
-
hashes: HashWithTree[],
|
|
1907
|
-
newAddresses: AddressWithTree[],
|
|
1908
|
-
): Promise<WithContext<CompressedProofWithContext>>;
|
|
1909
|
-
getCompressedAccountsByOwner(
|
|
1910
|
-
owner: PublicKey,
|
|
1911
|
-
config?: GetCompressedAccountsByOwnerConfig,
|
|
1912
|
-
): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
|
|
1913
|
-
getCompressedMintTokenHolders(
|
|
1914
|
-
mint: PublicKey,
|
|
1915
|
-
options?: PaginatedOptions,
|
|
1916
|
-
): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
|
|
1917
|
-
getCompressedTokenAccountsByOwner(
|
|
1918
|
-
publicKey: PublicKey,
|
|
1919
|
-
options: GetCompressedTokenAccountsByOwnerOrDelegateOptions,
|
|
1920
|
-
): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
1921
|
-
getCompressedTokenAccountsByDelegate(
|
|
1922
|
-
delegate: PublicKey,
|
|
1923
|
-
options: GetCompressedTokenAccountsByOwnerOrDelegateOptions,
|
|
1924
|
-
): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
1576
|
+
getCompressedAccountProof(hash: BN254): Promise<MerkleContextWithMerkleProof>;
|
|
1577
|
+
getMultipleCompressedAccounts(hashes: BN254[]): Promise<CompressedAccountWithMerkleContext[]>;
|
|
1578
|
+
getMultipleCompressedAccountProofs(hashes: BN254[]): Promise<MerkleContextWithMerkleProof[]>;
|
|
1579
|
+
getValidityProof(hashes: BN254[], newAddresses: BN254[]): Promise<CompressedProofWithContext>;
|
|
1580
|
+
getValidityProofV0(hashes: HashWithTree[], newAddresses: AddressWithTree[]): Promise<CompressedProofWithContext>;
|
|
1581
|
+
getValidityProofAndRpcContext(hashes: HashWithTree[], newAddresses: AddressWithTree[]): Promise<WithContext<CompressedProofWithContext>>;
|
|
1582
|
+
getCompressedAccountsByOwner(owner: PublicKey, config?: GetCompressedAccountsByOwnerConfig): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
|
|
1583
|
+
getCompressedMintTokenHolders(mint: PublicKey, options?: PaginatedOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
|
|
1584
|
+
getCompressedTokenAccountsByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
1585
|
+
getCompressedTokenAccountsByDelegate(delegate: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
1925
1586
|
getCompressedTokenAccountBalance(hash: BN254): Promise<{
|
|
1926
1587
|
amount: BN;
|
|
1927
1588
|
}>;
|
|
1928
|
-
getCompressedTokenBalancesByOwner(
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
): Promise<
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
): Promise<
|
|
1936
|
-
|
|
1937
|
-
signature: string,
|
|
1938
|
-
): Promise<CompressedTransaction | null>;
|
|
1939
|
-
getCompressionSignaturesForAccount(
|
|
1940
|
-
hash: BN254,
|
|
1941
|
-
): Promise<SignatureWithMetadata[]>;
|
|
1942
|
-
getCompressionSignaturesForAddress(
|
|
1943
|
-
address: PublicKey,
|
|
1944
|
-
options?: PaginatedOptions,
|
|
1945
|
-
): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1946
|
-
getCompressionSignaturesForOwner(
|
|
1947
|
-
owner: PublicKey,
|
|
1948
|
-
options?: PaginatedOptions,
|
|
1949
|
-
): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1950
|
-
getCompressionSignaturesForTokenOwner(
|
|
1951
|
-
owner: PublicKey,
|
|
1952
|
-
options?: PaginatedOptions,
|
|
1953
|
-
): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1954
|
-
getLatestNonVotingSignatures(
|
|
1955
|
-
limit?: number,
|
|
1956
|
-
cursor?: string,
|
|
1957
|
-
): Promise<LatestNonVotingSignatures>;
|
|
1958
|
-
getLatestCompressionSignatures(
|
|
1959
|
-
cursor?: string,
|
|
1960
|
-
limit?: number,
|
|
1961
|
-
): Promise<LatestNonVotingSignaturesPaginated>;
|
|
1589
|
+
getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<TokenBalance[]>>;
|
|
1590
|
+
getCompressedTokenBalancesByOwnerV2(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithContext<WithCursor<TokenBalance[]>>>;
|
|
1591
|
+
getTransactionWithCompressionInfo(signature: string): Promise<CompressedTransaction | null>;
|
|
1592
|
+
getCompressionSignaturesForAccount(hash: BN254): Promise<SignatureWithMetadata[]>;
|
|
1593
|
+
getCompressionSignaturesForAddress(address: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1594
|
+
getCompressionSignaturesForOwner(owner: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1595
|
+
getCompressionSignaturesForTokenOwner(owner: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1596
|
+
getLatestNonVotingSignatures(limit?: number, cursor?: string): Promise<LatestNonVotingSignatures>;
|
|
1597
|
+
getLatestCompressionSignatures(cursor?: string, limit?: number): Promise<LatestNonVotingSignaturesPaginated>;
|
|
1962
1598
|
getIndexerHealth(): Promise<string>;
|
|
1963
1599
|
getIndexerSlot(): Promise<number>;
|
|
1964
1600
|
}
|
|
@@ -2028,16 +1664,7 @@ interface LightWasm {
|
|
|
2028
1664
|
* @param depth Depth of the merkle tree.
|
|
2029
1665
|
* @param log Log proof generation time.
|
|
2030
1666
|
*/
|
|
2031
|
-
declare function getTestRpc(
|
|
2032
|
-
lightWasm: LightWasm,
|
|
2033
|
-
endpoint?: string,
|
|
2034
|
-
compressionApiEndpoint?: string,
|
|
2035
|
-
proverEndpoint?: string,
|
|
2036
|
-
merkleTreeAddress?: PublicKey,
|
|
2037
|
-
nullifierQueueAddress?: PublicKey,
|
|
2038
|
-
depth?: number,
|
|
2039
|
-
log?: boolean,
|
|
2040
|
-
): Promise<TestRpc>;
|
|
1667
|
+
declare function getTestRpc(lightWasm: LightWasm, endpoint?: string, compressionApiEndpoint?: string, proverEndpoint?: string, merkleTreeAddress?: PublicKey, nullifierQueueAddress?: PublicKey, depth?: number, log?: boolean): Promise<TestRpc>;
|
|
2041
1668
|
/**
|
|
2042
1669
|
* Simple mock rpc for unit tests that simulates the compression rpc interface.
|
|
2043
1670
|
* Fetches, parses events and builds merkletree on-demand, i.e. it does not persist state.
|
|
@@ -2070,14 +1697,7 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
2070
1697
|
* @param connectionConfig Optional connection config
|
|
2071
1698
|
* @param testRpcConfig Config for the mock rpc
|
|
2072
1699
|
*/
|
|
2073
|
-
constructor(
|
|
2074
|
-
endpoint: string,
|
|
2075
|
-
hasher: LightWasm,
|
|
2076
|
-
compressionApiEndpoint: string,
|
|
2077
|
-
proverEndpoint: string,
|
|
2078
|
-
connectionConfig?: ConnectionConfig,
|
|
2079
|
-
testRpcConfig?: TestRpcConfig,
|
|
2080
|
-
);
|
|
1700
|
+
constructor(endpoint: string, hasher: LightWasm, compressionApiEndpoint: string, proverEndpoint: string, connectionConfig?: ConnectionConfig, testRpcConfig?: TestRpcConfig);
|
|
2081
1701
|
/**
|
|
2082
1702
|
* Manually set state tree addresses
|
|
2083
1703
|
*/
|
|
@@ -2093,10 +1713,7 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
2093
1713
|
/**
|
|
2094
1714
|
* Fetch the compressed account for the specified account hash
|
|
2095
1715
|
*/
|
|
2096
|
-
getCompressedAccount(
|
|
2097
|
-
address?: BN254,
|
|
2098
|
-
hash?: BN254,
|
|
2099
|
-
): Promise<CompressedAccountWithMerkleContext | null>;
|
|
1716
|
+
getCompressedAccount(address?: BN254, hash?: BN254): Promise<CompressedAccountWithMerkleContext | null>;
|
|
2100
1717
|
/**
|
|
2101
1718
|
* Fetch the compressed balance for the specified account hash
|
|
2102
1719
|
*/
|
|
@@ -2109,16 +1726,12 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
2109
1726
|
* Fetch the latest merkle proof for the specified account hash from the
|
|
2110
1727
|
* cluster
|
|
2111
1728
|
*/
|
|
2112
|
-
getCompressedAccountProof(
|
|
2113
|
-
hash: BN254,
|
|
2114
|
-
): Promise<MerkleContextWithMerkleProof>;
|
|
1729
|
+
getCompressedAccountProof(hash: BN254): Promise<MerkleContextWithMerkleProof>;
|
|
2115
1730
|
/**
|
|
2116
1731
|
* Fetch all the account info for multiple compressed accounts specified by
|
|
2117
1732
|
* an array of account hashes
|
|
2118
1733
|
*/
|
|
2119
|
-
getMultipleCompressedAccounts(
|
|
2120
|
-
hashes: BN254[],
|
|
2121
|
-
): Promise<CompressedAccountWithMerkleContext[]>;
|
|
1734
|
+
getMultipleCompressedAccounts(hashes: BN254[]): Promise<CompressedAccountWithMerkleContext[]>;
|
|
2122
1735
|
/**
|
|
2123
1736
|
* Ensure that the Compression Indexer has already indexed the transaction
|
|
2124
1737
|
*/
|
|
@@ -2127,47 +1740,31 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
2127
1740
|
* Fetch the latest merkle proofs for multiple compressed accounts specified
|
|
2128
1741
|
* by an array account hashes
|
|
2129
1742
|
*/
|
|
2130
|
-
getMultipleCompressedAccountProofs(
|
|
2131
|
-
hashes: BN254[],
|
|
2132
|
-
): Promise<MerkleContextWithMerkleProof[]>;
|
|
1743
|
+
getMultipleCompressedAccountProofs(hashes: BN254[]): Promise<MerkleContextWithMerkleProof[]>;
|
|
2133
1744
|
/**
|
|
2134
1745
|
* Fetch all the compressed accounts owned by the specified public key.
|
|
2135
1746
|
* Owner can be a program or user account
|
|
2136
1747
|
*/
|
|
2137
|
-
getCompressedAccountsByOwner(
|
|
2138
|
-
owner: PublicKey,
|
|
2139
|
-
_config?: GetCompressedAccountsByOwnerConfig,
|
|
2140
|
-
): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
|
|
1748
|
+
getCompressedAccountsByOwner(owner: PublicKey, _config?: GetCompressedAccountsByOwnerConfig): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
|
|
2141
1749
|
/**
|
|
2142
1750
|
* Fetch the latest compression signatures on the cluster. Results are
|
|
2143
1751
|
* paginated.
|
|
2144
1752
|
*/
|
|
2145
|
-
getLatestCompressionSignatures(
|
|
2146
|
-
_cursor?: string,
|
|
2147
|
-
_limit?: number,
|
|
2148
|
-
): Promise<LatestNonVotingSignaturesPaginated>;
|
|
1753
|
+
getLatestCompressionSignatures(_cursor?: string, _limit?: number): Promise<LatestNonVotingSignaturesPaginated>;
|
|
2149
1754
|
/**
|
|
2150
1755
|
* Fetch the latest non-voting signatures on the cluster. Results are
|
|
2151
1756
|
* not paginated.
|
|
2152
1757
|
*/
|
|
2153
|
-
getLatestNonVotingSignatures(
|
|
2154
|
-
_limit?: number,
|
|
2155
|
-
): Promise<LatestNonVotingSignatures>;
|
|
1758
|
+
getLatestNonVotingSignatures(_limit?: number): Promise<LatestNonVotingSignatures>;
|
|
2156
1759
|
/**
|
|
2157
1760
|
* Fetch all the compressed token accounts owned by the specified public
|
|
2158
1761
|
* key. Owner can be a program or user account
|
|
2159
1762
|
*/
|
|
2160
|
-
getCompressedTokenAccountsByOwner(
|
|
2161
|
-
owner: PublicKey,
|
|
2162
|
-
options: GetCompressedTokenAccountsByOwnerOrDelegateOptions,
|
|
2163
|
-
): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
1763
|
+
getCompressedTokenAccountsByOwner(owner: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
2164
1764
|
/**
|
|
2165
1765
|
* Fetch all the compressed accounts delegated to the specified public key.
|
|
2166
1766
|
*/
|
|
2167
|
-
getCompressedTokenAccountsByDelegate(
|
|
2168
|
-
delegate: PublicKey,
|
|
2169
|
-
options: GetCompressedTokenAccountsByOwnerOrDelegateOptions,
|
|
2170
|
-
): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
1767
|
+
getCompressedTokenAccountsByDelegate(delegate: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
2171
1768
|
/**
|
|
2172
1769
|
* Fetch the compressed token balance for the specified account hash
|
|
2173
1770
|
*/
|
|
@@ -2179,25 +1776,15 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
2179
1776
|
* Fetch all the compressed token balances owned by the specified public
|
|
2180
1777
|
* key. Can filter by mint.
|
|
2181
1778
|
*/
|
|
2182
|
-
getCompressedTokenBalancesByOwner(
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
WithCursor<
|
|
2187
|
-
{
|
|
2188
|
-
balance: BN;
|
|
2189
|
-
mint: PublicKey;
|
|
2190
|
-
}[]
|
|
2191
|
-
>
|
|
2192
|
-
>;
|
|
1779
|
+
getCompressedTokenBalancesByOwner(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<{
|
|
1780
|
+
balance: BN;
|
|
1781
|
+
mint: PublicKey;
|
|
1782
|
+
}[]>>;
|
|
2193
1783
|
/**
|
|
2194
1784
|
* Fetch all the compressed token balances owned by the specified public
|
|
2195
1785
|
* key. Can filter by mint. Uses context.
|
|
2196
1786
|
*/
|
|
2197
|
-
getCompressedTokenBalancesByOwnerV2(
|
|
2198
|
-
publicKey: PublicKey,
|
|
2199
|
-
options: GetCompressedTokenAccountsByOwnerOrDelegateOptions,
|
|
2200
|
-
): Promise<WithContext<WithCursor<TokenBalance[]>>>;
|
|
1787
|
+
getCompressedTokenBalancesByOwnerV2(publicKey: PublicKey, options: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithContext<WithCursor<TokenBalance[]>>>;
|
|
2201
1788
|
/**
|
|
2202
1789
|
* Returns confirmed signatures for transactions involving the specified
|
|
2203
1790
|
* account hash forward in time from genesis to the most recent confirmed
|
|
@@ -2205,16 +1792,12 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
2205
1792
|
*
|
|
2206
1793
|
* @param hash queried account hash
|
|
2207
1794
|
*/
|
|
2208
|
-
getCompressionSignaturesForAccount(
|
|
2209
|
-
_hash: BN254,
|
|
2210
|
-
): Promise<SignatureWithMetadata[]>;
|
|
1795
|
+
getCompressionSignaturesForAccount(_hash: BN254): Promise<SignatureWithMetadata[]>;
|
|
2211
1796
|
/**
|
|
2212
1797
|
* Fetch a confirmed or finalized transaction from the cluster. Return with
|
|
2213
1798
|
* CompressionInfo
|
|
2214
1799
|
*/
|
|
2215
|
-
getTransactionWithCompressionInfo(
|
|
2216
|
-
_signature: string,
|
|
2217
|
-
): Promise<CompressedTransaction | null>;
|
|
1800
|
+
getTransactionWithCompressionInfo(_signature: string): Promise<CompressedTransaction | null>;
|
|
2218
1801
|
/**
|
|
2219
1802
|
* Returns confirmed signatures for transactions involving the specified
|
|
2220
1803
|
* address forward in time from genesis to the most recent confirmed
|
|
@@ -2222,10 +1805,7 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
2222
1805
|
*
|
|
2223
1806
|
* @param address queried compressed account address
|
|
2224
1807
|
*/
|
|
2225
|
-
getCompressionSignaturesForAddress(
|
|
2226
|
-
_address: PublicKey,
|
|
2227
|
-
_options?: PaginatedOptions,
|
|
2228
|
-
): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1808
|
+
getCompressionSignaturesForAddress(_address: PublicKey, _options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
2229
1809
|
/**
|
|
2230
1810
|
* Returns confirmed signatures for compression transactions involving the
|
|
2231
1811
|
* specified account owner forward in time from genesis to the
|
|
@@ -2233,19 +1813,13 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
2233
1813
|
*
|
|
2234
1814
|
* @param owner queried owner public key
|
|
2235
1815
|
*/
|
|
2236
|
-
getCompressionSignaturesForOwner(
|
|
2237
|
-
_owner: PublicKey,
|
|
2238
|
-
_options?: PaginatedOptions,
|
|
2239
|
-
): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1816
|
+
getCompressionSignaturesForOwner(_owner: PublicKey, _options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
2240
1817
|
/**
|
|
2241
1818
|
* Returns confirmed signatures for compression transactions involving the
|
|
2242
1819
|
* specified token account owner forward in time from genesis to the most
|
|
2243
1820
|
* recent confirmed block
|
|
2244
1821
|
*/
|
|
2245
|
-
getCompressionSignaturesForTokenOwner(
|
|
2246
|
-
_owner: PublicKey,
|
|
2247
|
-
_options?: PaginatedOptions,
|
|
2248
|
-
): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
1822
|
+
getCompressionSignaturesForTokenOwner(_owner: PublicKey, _options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
2249
1823
|
/**
|
|
2250
1824
|
* Fetch the current indexer health status
|
|
2251
1825
|
*/
|
|
@@ -2262,13 +1836,8 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
2262
1836
|
* @param addresses Array of BN254 new addresses
|
|
2263
1837
|
* @returns Array of validity proofs for new addresses
|
|
2264
1838
|
*/
|
|
2265
|
-
getMultipleNewAddressProofs(
|
|
2266
|
-
|
|
2267
|
-
): Promise<MerkleContextWithNewAddressProof[]>;
|
|
2268
|
-
getCompressedMintTokenHolders(
|
|
2269
|
-
_mint: PublicKey,
|
|
2270
|
-
_options?: PaginatedOptions,
|
|
2271
|
-
): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
|
|
1839
|
+
getMultipleNewAddressProofs(addresses: BN254[]): Promise<MerkleContextWithNewAddressProof[]>;
|
|
1840
|
+
getCompressedMintTokenHolders(_mint: PublicKey, _options?: PaginatedOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
|
|
2272
1841
|
/**
|
|
2273
1842
|
* Advanced usage of getValidityProof: fetches ZKP directly from a custom
|
|
2274
1843
|
* non-rpcprover. Note: This uses the proverEndpoint specified in the
|
|
@@ -2278,18 +1847,12 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
2278
1847
|
* Note: Use RPC class for forested trees. TestRpc is only for custom
|
|
2279
1848
|
* testing purposes.
|
|
2280
1849
|
*/
|
|
2281
|
-
getValidityProofDirect(
|
|
2282
|
-
hashes?: BN254[],
|
|
2283
|
-
newAddresses?: BN254[],
|
|
2284
|
-
): Promise<CompressedProofWithContext>;
|
|
1850
|
+
getValidityProofDirect(hashes?: BN254[], newAddresses?: BN254[]): Promise<CompressedProofWithContext>;
|
|
2285
1851
|
/**
|
|
2286
1852
|
* @deprecated This method is not available for TestRpc. Please use
|
|
2287
1853
|
* {@link getValidityProof} instead.
|
|
2288
1854
|
*/
|
|
2289
|
-
getValidityProofAndRpcContext(
|
|
2290
|
-
hashes?: HashWithTree[],
|
|
2291
|
-
newAddresses?: AddressWithTree[],
|
|
2292
|
-
): Promise<WithContext<CompressedProofWithContext>>;
|
|
1855
|
+
getValidityProofAndRpcContext(hashes?: HashWithTree[], newAddresses?: AddressWithTree[]): Promise<WithContext<CompressedProofWithContext>>;
|
|
2293
1856
|
/**
|
|
2294
1857
|
* Fetch the latest validity proof for (1) compressed accounts specified by
|
|
2295
1858
|
* an array of account hashes. (2) new unique addresses specified by an
|
|
@@ -2304,14 +1867,8 @@ declare class TestRpc extends Connection implements CompressionApiInterface {
|
|
|
2304
1867
|
* @param newAddresses Array of BN254 new addresses.
|
|
2305
1868
|
* @returns validity proof with context
|
|
2306
1869
|
*/
|
|
2307
|
-
getValidityProof(
|
|
2308
|
-
|
|
2309
|
-
newAddresses?: BN254[],
|
|
2310
|
-
): Promise<CompressedProofWithContext>;
|
|
2311
|
-
getValidityProofV0(
|
|
2312
|
-
hashes?: HashWithTree[],
|
|
2313
|
-
newAddresses?: AddressWithTree[],
|
|
2314
|
-
): Promise<CompressedProofWithContext>;
|
|
1870
|
+
getValidityProof(hashes?: BN254[], newAddresses?: BN254[]): Promise<CompressedProofWithContext>;
|
|
1871
|
+
getValidityProofV0(hashes?: HashWithTree[], newAddresses?: AddressWithTree[]): Promise<CompressedProofWithContext>;
|
|
2315
1872
|
}
|
|
2316
1873
|
|
|
2317
1874
|
declare class IndexedElement {
|
|
@@ -2327,11 +1884,7 @@ declare class IndexedElementBundle {
|
|
|
2327
1884
|
newLowElement: IndexedElement;
|
|
2328
1885
|
newElement: IndexedElement;
|
|
2329
1886
|
newElementNextValue: BN;
|
|
2330
|
-
constructor(
|
|
2331
|
-
newLowElement: IndexedElement,
|
|
2332
|
-
newElement: IndexedElement,
|
|
2333
|
-
newElementNextValue: BN,
|
|
2334
|
-
);
|
|
1887
|
+
constructor(newLowElement: IndexedElement, newElement: IndexedElement, newElementNextValue: BN);
|
|
2335
1888
|
}
|
|
2336
1889
|
/**
|
|
2337
1890
|
* This indexed array implementation mirrors the rust implementation of the
|
|
@@ -2341,11 +1894,7 @@ declare class IndexedArray {
|
|
|
2341
1894
|
elements: Array<IndexedElement>;
|
|
2342
1895
|
currentNodeIndex: number;
|
|
2343
1896
|
highestElementIndex: number;
|
|
2344
|
-
constructor(
|
|
2345
|
-
elements: Array<IndexedElement>,
|
|
2346
|
-
currentNodeIndex: number,
|
|
2347
|
-
highestElementIndex: number,
|
|
2348
|
-
);
|
|
1897
|
+
constructor(elements: Array<IndexedElement>, currentNodeIndex: number, highestElementIndex: number);
|
|
2349
1898
|
static default(): IndexedArray;
|
|
2350
1899
|
get(index: number): IndexedElement | undefined;
|
|
2351
1900
|
length(): number;
|
|
@@ -2385,10 +1934,7 @@ declare class IndexedArray {
|
|
|
2385
1934
|
* @param value The value of the new element to append.
|
|
2386
1935
|
* @returns The new element and its updated low element.
|
|
2387
1936
|
*/
|
|
2388
|
-
appendWithLowElementIndex(
|
|
2389
|
-
lowElementIndex: number,
|
|
2390
|
-
value: BN,
|
|
2391
|
-
): IndexedElementBundle;
|
|
1937
|
+
appendWithLowElementIndex(lowElementIndex: number, value: BN): IndexedElementBundle;
|
|
2392
1938
|
/**
|
|
2393
1939
|
* Finds the lowest element in the array.
|
|
2394
1940
|
* @returns The lowest element or undefined if the array is empty.
|
|
@@ -2400,10 +1946,7 @@ declare class IndexedArray {
|
|
|
2400
1946
|
* @param value The value for the new element.
|
|
2401
1947
|
* @returns A bundle containing the new element, the updated low element, and the value of the next element.
|
|
2402
1948
|
*/
|
|
2403
|
-
newElementWithLowElementIndex(
|
|
2404
|
-
lowElementIndex: number,
|
|
2405
|
-
value: BN,
|
|
2406
|
-
): IndexedElementBundle;
|
|
1949
|
+
newElementWithLowElementIndex(lowElementIndex: number, value: BN): IndexedElementBundle;
|
|
2407
1950
|
/**
|
|
2408
1951
|
* Creates a new element with the specified value by first finding the appropriate low element index.
|
|
2409
1952
|
* @param value The value for the new element.
|
|
@@ -2412,7 +1955,7 @@ declare class IndexedArray {
|
|
|
2412
1955
|
newElement(value: BN): IndexedElementBundle;
|
|
2413
1956
|
}
|
|
2414
1957
|
|
|
2415
|
-
declare const DEFAULT_ZERO =
|
|
1958
|
+
declare const DEFAULT_ZERO = "0";
|
|
2416
1959
|
/**
|
|
2417
1960
|
* @callback hashFunction
|
|
2418
1961
|
* @param left Left leaf
|
|
@@ -2436,16 +1979,9 @@ declare class MerkleTree {
|
|
|
2436
1979
|
_zeros: string[];
|
|
2437
1980
|
_layers: string[][];
|
|
2438
1981
|
_lightWasm: LightWasm;
|
|
2439
|
-
constructor(
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
elements?: string[],
|
|
2443
|
-
{
|
|
2444
|
-
zeroElement,
|
|
2445
|
-
}?: {
|
|
2446
|
-
zeroElement?: string | undefined;
|
|
2447
|
-
},
|
|
2448
|
-
);
|
|
1982
|
+
constructor(levels: number, lightWasm: LightWasm, elements?: string[], { zeroElement }?: {
|
|
1983
|
+
zeroElement?: string | undefined;
|
|
1984
|
+
});
|
|
2449
1985
|
_rebuild(): void;
|
|
2450
1986
|
/**
|
|
2451
1987
|
* Get tree root
|
|
@@ -2483,10 +2019,7 @@ declare class MerkleTree {
|
|
|
2483
2019
|
* @param comparator A function that checks leaf value equality
|
|
2484
2020
|
* @returns {number} Index if element is found, otherwise -1
|
|
2485
2021
|
*/
|
|
2486
|
-
indexOf(
|
|
2487
|
-
element: string,
|
|
2488
|
-
comparator?: ((element: string, el: string) => boolean) | null,
|
|
2489
|
-
): number;
|
|
2022
|
+
indexOf(element: string, comparator?: ((element: string, el: string) => boolean) | null): number;
|
|
2490
2023
|
/**
|
|
2491
2024
|
* Returns a copy of non-zero tree elements
|
|
2492
2025
|
* @returns {Object[]}
|
|
@@ -2511,10 +2044,7 @@ declare class MerkleTree {
|
|
|
2511
2044
|
* @param hashFunction
|
|
2512
2045
|
* @returns {MerkleTree}
|
|
2513
2046
|
*/
|
|
2514
|
-
static deserialize(
|
|
2515
|
-
data: any,
|
|
2516
|
-
hashFunction: (left: string, right: string) => string,
|
|
2517
|
-
): any;
|
|
2047
|
+
static deserialize(data: any, hashFunction: (left: string, right: string) => string): any;
|
|
2518
2048
|
}
|
|
2519
2049
|
|
|
2520
2050
|
type Deserializer<T> = (data: Buffer$1, tx: ParsedTransactionWithMeta) => T;
|
|
@@ -2524,17 +2054,9 @@ type Deserializer<T> = (data: Buffer$1, tx: ParsedTransactionWithMeta) => T;
|
|
|
2524
2054
|
*
|
|
2525
2055
|
* */
|
|
2526
2056
|
declare function getParsedEvents(rpc: Rpc): Promise<PublicTransactionEvent[]>;
|
|
2527
|
-
declare const parseEvents: <T>(
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
) => NonNullable<T>[];
|
|
2531
|
-
declare const parsePublicTransactionEventWithIdl: (
|
|
2532
|
-
data: Buffer$1,
|
|
2533
|
-
) => PublicTransactionEvent | null;
|
|
2534
|
-
declare function parseLightTransaction(
|
|
2535
|
-
dataVec: Uint8Array[],
|
|
2536
|
-
accountKeys: PublicKey[][],
|
|
2537
|
-
): PublicTransactionEvent | null | undefined;
|
|
2057
|
+
declare const parseEvents: <T>(indexerEventsTransactions: (ParsedTransactionWithMeta | null)[], deserializeFn: Deserializer<T>) => NonNullable<T>[];
|
|
2058
|
+
declare const parsePublicTransactionEventWithIdl: (data: Buffer$1) => PublicTransactionEvent | null;
|
|
2059
|
+
declare function parseLightTransaction(dataVec: Uint8Array[], accountKeys: PublicKey[][]): PublicTransactionEvent | null | undefined;
|
|
2538
2060
|
|
|
2539
2061
|
type TokenData = {
|
|
2540
2062
|
mint: PublicKey;
|
|
@@ -2554,10 +2076,7 @@ type EventWithParsedTokenTlvData = {
|
|
|
2554
2076
|
* @param compressedAccount - The compressed account
|
|
2555
2077
|
* @returns The parsed token data
|
|
2556
2078
|
*/
|
|
2557
|
-
declare function parseTokenLayoutWithIdl(
|
|
2558
|
-
compressedAccount: CompressedAccount,
|
|
2559
|
-
programId?: PublicKey,
|
|
2560
|
-
): TokenData | null;
|
|
2079
|
+
declare function parseTokenLayoutWithIdl(compressedAccount: CompressedAccount, programId?: PublicKey): TokenData | null;
|
|
2561
2080
|
/**
|
|
2562
2081
|
* Retrieves all compressed token accounts for a given mint and owner.
|
|
2563
2082
|
*
|
|
@@ -2567,24 +2086,11 @@ declare function parseTokenLayoutWithIdl(
|
|
|
2567
2086
|
* @param owner PublicKey of the token owner
|
|
2568
2087
|
* @param mint PublicKey of the token mint
|
|
2569
2088
|
*/
|
|
2570
|
-
declare function getCompressedTokenAccounts(
|
|
2571
|
-
events: PublicTransactionEvent[],
|
|
2572
|
-
): Promise<ParsedTokenAccount[]>;
|
|
2089
|
+
declare function getCompressedTokenAccounts(events: PublicTransactionEvent[]): Promise<ParsedTokenAccount[]>;
|
|
2573
2090
|
/** @internal */
|
|
2574
|
-
declare function getCompressedTokenAccountsByOwnerTest(
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
mint: PublicKey,
|
|
2578
|
-
): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
2579
|
-
declare function getCompressedTokenAccountsByDelegateTest(
|
|
2580
|
-
rpc: Rpc,
|
|
2581
|
-
delegate: PublicKey,
|
|
2582
|
-
mint: PublicKey,
|
|
2583
|
-
): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
2584
|
-
declare function getCompressedTokenAccountByHashTest(
|
|
2585
|
-
rpc: Rpc,
|
|
2586
|
-
hash: BN,
|
|
2587
|
-
): Promise<ParsedTokenAccount>;
|
|
2091
|
+
declare function getCompressedTokenAccountsByOwnerTest(rpc: Rpc, owner: PublicKey, mint: PublicKey): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
2092
|
+
declare function getCompressedTokenAccountsByDelegateTest(rpc: Rpc, delegate: PublicKey, mint: PublicKey): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
2093
|
+
declare function getCompressedTokenAccountByHashTest(rpc: Rpc, hash: BN): Promise<ParsedTokenAccount>;
|
|
2588
2094
|
|
|
2589
2095
|
declare const ALICE: Keypair;
|
|
2590
2096
|
declare const BOB: Keypair;
|
|
@@ -2606,11 +2112,7 @@ declare function deepEqual(ref: any, val: any): boolean;
|
|
|
2606
2112
|
* @param counter counter to use for generating the keypair.
|
|
2607
2113
|
* If undefined or >255, generates random keypair.
|
|
2608
2114
|
*/
|
|
2609
|
-
declare function newAccountWithLamports(
|
|
2610
|
-
rpc: Rpc,
|
|
2611
|
-
lamports?: number,
|
|
2612
|
-
counter?: number | undefined,
|
|
2613
|
-
): Promise<Signer>;
|
|
2115
|
+
declare function newAccountWithLamports(rpc: Rpc, lamports?: number, counter?: number | undefined): Promise<Signer>;
|
|
2614
2116
|
declare function getConnection(): Connection;
|
|
2615
2117
|
/**
|
|
2616
2118
|
* For use in tests.
|
|
@@ -2621,11 +2123,7 @@ declare function getConnection(): Connection;
|
|
|
2621
2123
|
declare function getTestKeypair(counter?: number | undefined): Keypair;
|
|
2622
2124
|
|
|
2623
2125
|
/** @internal */
|
|
2624
|
-
declare function parseAccountData({
|
|
2625
|
-
discriminator,
|
|
2626
|
-
data,
|
|
2627
|
-
dataHash,
|
|
2628
|
-
}: {
|
|
2126
|
+
declare function parseAccountData({ discriminator, data, dataHash, }: {
|
|
2629
2127
|
discriminator: BN;
|
|
2630
2128
|
data: string;
|
|
2631
2129
|
dataHash: BN;
|
|
@@ -2644,12 +2142,7 @@ declare function parseAccountData({
|
|
|
2644
2142
|
* to endpoint
|
|
2645
2143
|
* @param connectionConfig Optional connection config
|
|
2646
2144
|
*/
|
|
2647
|
-
declare function createRpc(
|
|
2648
|
-
endpointOrWeb3JsConnection?: string | Connection,
|
|
2649
|
-
compressionApiEndpoint?: string,
|
|
2650
|
-
proverEndpoint?: string,
|
|
2651
|
-
config?: ConnectionConfig,
|
|
2652
|
-
): Rpc;
|
|
2145
|
+
declare function createRpc(endpointOrWeb3JsConnection?: string | Connection, compressionApiEndpoint?: string, proverEndpoint?: string, config?: ConnectionConfig): Rpc;
|
|
2653
2146
|
/**
|
|
2654
2147
|
* Helper function to preprocess the response to wrap numbers as strings
|
|
2655
2148
|
* @param {string} text - The JSON string to preprocess
|
|
@@ -2657,21 +2150,9 @@ declare function createRpc(
|
|
|
2657
2150
|
*/
|
|
2658
2151
|
declare function wrapBigNumbersAsStrings(text: string): string;
|
|
2659
2152
|
/** @internal */
|
|
2660
|
-
declare const rpcRequest: (
|
|
2661
|
-
rpcEndpoint: string,
|
|
2662
|
-
method: string,
|
|
2663
|
-
params?: any,
|
|
2664
|
-
convertToCamelCase?: boolean,
|
|
2665
|
-
debug?: boolean,
|
|
2666
|
-
) => Promise<any>;
|
|
2153
|
+
declare const rpcRequest: (rpcEndpoint: string, method: string, params?: any, convertToCamelCase?: boolean, debug?: boolean) => Promise<any>;
|
|
2667
2154
|
/** @internal */
|
|
2668
|
-
declare const proverRequest: (
|
|
2669
|
-
proverEndpoint: string,
|
|
2670
|
-
method: 'inclusion' | 'new-address' | 'combined',
|
|
2671
|
-
params?: any,
|
|
2672
|
-
log?: boolean,
|
|
2673
|
-
publicInputHash?: BN | undefined,
|
|
2674
|
-
) => Promise<CompressedProof>;
|
|
2155
|
+
declare const proverRequest: (proverEndpoint: string, method: "inclusion" | "new-address" | "combined", params?: any, log?: boolean, publicInputHash?: BN | undefined) => Promise<CompressedProof>;
|
|
2675
2156
|
type NonInclusionMerkleProofInputs = {
|
|
2676
2157
|
root: BN;
|
|
2677
2158
|
value: BN;
|
|
@@ -2702,18 +2183,9 @@ type NonInclusionJsonStruct = {
|
|
|
2702
2183
|
leafHigherRangeValue: string;
|
|
2703
2184
|
nextIndex: number;
|
|
2704
2185
|
};
|
|
2705
|
-
declare function convertMerkleProofsWithContextToHex(
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
declare function convertNonInclusionMerkleProofInputsToHex(
|
|
2709
|
-
nonInclusionMerkleProofInputs: MerkleContextWithNewAddressProof[],
|
|
2710
|
-
): NonInclusionJsonStruct[];
|
|
2711
|
-
declare function getPublicInputHash(
|
|
2712
|
-
accountProofs: MerkleContextWithMerkleProof[],
|
|
2713
|
-
accountHashes: BN254[],
|
|
2714
|
-
newAddressProofs: MerkleContextWithNewAddressProof[],
|
|
2715
|
-
lightWasm: LightWasm,
|
|
2716
|
-
): BN;
|
|
2186
|
+
declare function convertMerkleProofsWithContextToHex(merkleProofsWithContext: MerkleContextWithMerkleProof[]): HexInputsForProver[];
|
|
2187
|
+
declare function convertNonInclusionMerkleProofInputsToHex(nonInclusionMerkleProofInputs: MerkleContextWithNewAddressProof[]): NonInclusionJsonStruct[];
|
|
2188
|
+
declare function getPublicInputHash(accountProofs: MerkleContextWithMerkleProof[], accountHashes: BN254[], newAddressProofs: MerkleContextWithNewAddressProof[], lightWasm: LightWasm): BN;
|
|
2717
2189
|
/**
|
|
2718
2190
|
* Get the queue for a given tree
|
|
2719
2191
|
*
|
|
@@ -2721,10 +2193,7 @@ declare function getPublicInputHash(
|
|
|
2721
2193
|
* @param tree - The tree to get the queue for
|
|
2722
2194
|
* @returns The queue for the given tree, or undefined if not found
|
|
2723
2195
|
*/
|
|
2724
|
-
declare function getQueueForTree(
|
|
2725
|
-
info: ActiveTreeBundle[],
|
|
2726
|
-
tree: PublicKey,
|
|
2727
|
-
): PublicKey;
|
|
2196
|
+
declare function getQueueForTree(info: ActiveTreeBundle[], tree: PublicKey): PublicKey;
|
|
2728
2197
|
/**
|
|
2729
2198
|
* Get the tree for a given queue
|
|
2730
2199
|
*
|
|
@@ -2732,10 +2201,7 @@ declare function getQueueForTree(
|
|
|
2732
2201
|
* @param queue - The queue to get the tree for
|
|
2733
2202
|
* @returns The tree for the given queue, or undefined if not found
|
|
2734
2203
|
*/
|
|
2735
|
-
declare function getTreeForQueue(
|
|
2736
|
-
info: ActiveTreeBundle[],
|
|
2737
|
-
queue: PublicKey,
|
|
2738
|
-
): PublicKey;
|
|
2204
|
+
declare function getTreeForQueue(info: ActiveTreeBundle[], queue: PublicKey): PublicKey;
|
|
2739
2205
|
/**
|
|
2740
2206
|
* Get a random tree and queue from the active state tree addresses.
|
|
2741
2207
|
*
|
|
@@ -2755,12 +2221,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
2755
2221
|
compressionApiEndpoint: string;
|
|
2756
2222
|
proverEndpoint: string;
|
|
2757
2223
|
activeStateTreeInfo: ActiveTreeBundle[] | null;
|
|
2758
|
-
constructor(
|
|
2759
|
-
endpoint: string,
|
|
2760
|
-
compressionApiEndpoint: string,
|
|
2761
|
-
proverEndpoint: string,
|
|
2762
|
-
config?: ConnectionConfig,
|
|
2763
|
-
);
|
|
2224
|
+
constructor(endpoint: string, compressionApiEndpoint: string, proverEndpoint: string, config?: ConnectionConfig);
|
|
2764
2225
|
/**
|
|
2765
2226
|
* Manually set state tree addresses
|
|
2766
2227
|
*/
|
|
@@ -2777,10 +2238,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
2777
2238
|
/**
|
|
2778
2239
|
* Fetch the compressed account for the specified account address or hash
|
|
2779
2240
|
*/
|
|
2780
|
-
getCompressedAccount(
|
|
2781
|
-
address?: BN254,
|
|
2782
|
-
hash?: BN254,
|
|
2783
|
-
): Promise<CompressedAccountWithMerkleContext | null>;
|
|
2241
|
+
getCompressedAccount(address?: BN254, hash?: BN254): Promise<CompressedAccountWithMerkleContext | null>;
|
|
2784
2242
|
/**
|
|
2785
2243
|
* Fetch the compressed balance for the specified account address or hash
|
|
2786
2244
|
*/
|
|
@@ -2793,46 +2251,31 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
2793
2251
|
* Fetch the latest merkle proof for the specified account hash from the
|
|
2794
2252
|
* cluster
|
|
2795
2253
|
*/
|
|
2796
|
-
getCompressedAccountProof(
|
|
2797
|
-
hash: BN254,
|
|
2798
|
-
): Promise<MerkleContextWithMerkleProof>;
|
|
2254
|
+
getCompressedAccountProof(hash: BN254): Promise<MerkleContextWithMerkleProof>;
|
|
2799
2255
|
/**
|
|
2800
2256
|
* Fetch all the account info for multiple compressed accounts specified by
|
|
2801
2257
|
* an array of account hashes
|
|
2802
2258
|
*/
|
|
2803
|
-
getMultipleCompressedAccounts(
|
|
2804
|
-
hashes: BN254[],
|
|
2805
|
-
): Promise<CompressedAccountWithMerkleContext[]>;
|
|
2259
|
+
getMultipleCompressedAccounts(hashes: BN254[]): Promise<CompressedAccountWithMerkleContext[]>;
|
|
2806
2260
|
/**
|
|
2807
2261
|
* Fetch the latest merkle proofs for multiple compressed accounts specified
|
|
2808
2262
|
* by an array account hashes
|
|
2809
2263
|
*/
|
|
2810
|
-
getMultipleCompressedAccountProofs(
|
|
2811
|
-
hashes: BN254[],
|
|
2812
|
-
): Promise<MerkleContextWithMerkleProof[]>;
|
|
2264
|
+
getMultipleCompressedAccountProofs(hashes: BN254[]): Promise<MerkleContextWithMerkleProof[]>;
|
|
2813
2265
|
/**
|
|
2814
2266
|
* Fetch all the compressed accounts owned by the specified public key.
|
|
2815
2267
|
* Owner can be a program or user account
|
|
2816
2268
|
*/
|
|
2817
|
-
getCompressedAccountsByOwner(
|
|
2818
|
-
owner: PublicKey,
|
|
2819
|
-
config?: GetCompressedAccountsByOwnerConfig | undefined,
|
|
2820
|
-
): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
|
|
2269
|
+
getCompressedAccountsByOwner(owner: PublicKey, config?: GetCompressedAccountsByOwnerConfig | undefined): Promise<WithCursor<CompressedAccountWithMerkleContext[]>>;
|
|
2821
2270
|
/**
|
|
2822
2271
|
* Fetch all the compressed token accounts owned by the specified public
|
|
2823
2272
|
* key. Owner can be a program or user account
|
|
2824
2273
|
*/
|
|
2825
|
-
getCompressedTokenAccountsByOwner(
|
|
2826
|
-
owner: PublicKey,
|
|
2827
|
-
options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions,
|
|
2828
|
-
): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
2274
|
+
getCompressedTokenAccountsByOwner(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
2829
2275
|
/**
|
|
2830
2276
|
* Fetch all the compressed accounts delegated to the specified public key.
|
|
2831
2277
|
*/
|
|
2832
|
-
getCompressedTokenAccountsByDelegate(
|
|
2833
|
-
delegate: PublicKey,
|
|
2834
|
-
options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions,
|
|
2835
|
-
): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
2278
|
+
getCompressedTokenAccountsByDelegate(delegate: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<ParsedTokenAccount[]>>;
|
|
2836
2279
|
/**
|
|
2837
2280
|
* Fetch the compressed token balance for the specified account hash
|
|
2838
2281
|
*/
|
|
@@ -2845,18 +2288,12 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
2845
2288
|
* Fetch all the compressed token balances owned by the specified public
|
|
2846
2289
|
* key. Can filter by mint. Returns without context.
|
|
2847
2290
|
*/
|
|
2848
|
-
getCompressedTokenBalancesByOwner(
|
|
2849
|
-
owner: PublicKey,
|
|
2850
|
-
options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions,
|
|
2851
|
-
): Promise<WithCursor<TokenBalance[]>>;
|
|
2291
|
+
getCompressedTokenBalancesByOwner(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithCursor<TokenBalance[]>>;
|
|
2852
2292
|
/**
|
|
2853
2293
|
* Fetch the compressed token balances owned by the specified public
|
|
2854
2294
|
* key. Paginated. Can filter by mint. Returns with context.
|
|
2855
2295
|
*/
|
|
2856
|
-
getCompressedTokenBalancesByOwnerV2(
|
|
2857
|
-
owner: PublicKey,
|
|
2858
|
-
options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions,
|
|
2859
|
-
): Promise<WithContext<WithCursor<TokenBalance[]>>>;
|
|
2296
|
+
getCompressedTokenBalancesByOwnerV2(owner: PublicKey, options?: GetCompressedTokenAccountsByOwnerOrDelegateOptions): Promise<WithContext<WithCursor<TokenBalance[]>>>;
|
|
2860
2297
|
/**
|
|
2861
2298
|
* Returns confirmed compression signatures for transactions involving the specified
|
|
2862
2299
|
* account hash forward in time from genesis to the most recent confirmed
|
|
@@ -2864,26 +2301,19 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
2864
2301
|
*
|
|
2865
2302
|
* @param hash queried account hash
|
|
2866
2303
|
*/
|
|
2867
|
-
getCompressionSignaturesForAccount(
|
|
2868
|
-
hash: BN254,
|
|
2869
|
-
): Promise<SignatureWithMetadata[]>;
|
|
2304
|
+
getCompressionSignaturesForAccount(hash: BN254): Promise<SignatureWithMetadata[]>;
|
|
2870
2305
|
/**
|
|
2871
2306
|
* Fetch a confirmed or finalized transaction from the cluster. Return with
|
|
2872
2307
|
* CompressionInfo
|
|
2873
2308
|
*/
|
|
2874
|
-
getTransactionWithCompressionInfo(
|
|
2875
|
-
signature: string,
|
|
2876
|
-
): Promise<CompressedTransaction | null>;
|
|
2309
|
+
getTransactionWithCompressionInfo(signature: string): Promise<CompressedTransaction | null>;
|
|
2877
2310
|
/**
|
|
2878
2311
|
* Returns confirmed signatures for transactions involving the specified
|
|
2879
2312
|
* address forward in time from genesis to the most recent confirmed block
|
|
2880
2313
|
*
|
|
2881
2314
|
* @param address queried compressed account address
|
|
2882
2315
|
*/
|
|
2883
|
-
getCompressionSignaturesForAddress(
|
|
2884
|
-
address: PublicKey,
|
|
2885
|
-
options?: PaginatedOptions,
|
|
2886
|
-
): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
2316
|
+
getCompressionSignaturesForAddress(address: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
2887
2317
|
/**
|
|
2888
2318
|
* Returns confirmed signatures for compression transactions involving the
|
|
2889
2319
|
* specified account owner forward in time from genesis to the
|
|
@@ -2891,19 +2321,13 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
2891
2321
|
*
|
|
2892
2322
|
* @param owner queried owner public key
|
|
2893
2323
|
*/
|
|
2894
|
-
getCompressionSignaturesForOwner(
|
|
2895
|
-
owner: PublicKey,
|
|
2896
|
-
options?: PaginatedOptions,
|
|
2897
|
-
): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
2324
|
+
getCompressionSignaturesForOwner(owner: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
2898
2325
|
/**
|
|
2899
2326
|
* Returns confirmed signatures for compression transactions involving the
|
|
2900
2327
|
* specified token account owner forward in time from genesis to the most
|
|
2901
2328
|
* recent confirmed block
|
|
2902
2329
|
*/
|
|
2903
|
-
getCompressionSignaturesForTokenOwner(
|
|
2904
|
-
owner: PublicKey,
|
|
2905
|
-
options?: PaginatedOptions,
|
|
2906
|
-
): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
2330
|
+
getCompressionSignaturesForTokenOwner(owner: PublicKey, options?: PaginatedOptions): Promise<WithCursor<SignatureWithMetadata[]>>;
|
|
2907
2331
|
/**
|
|
2908
2332
|
* Fetch the current indexer health status
|
|
2909
2333
|
*/
|
|
@@ -2919,25 +2343,16 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
2919
2343
|
/**
|
|
2920
2344
|
* Fetch all the compressed token holders for a given mint. Paginated.
|
|
2921
2345
|
*/
|
|
2922
|
-
getCompressedMintTokenHolders(
|
|
2923
|
-
mint: PublicKey,
|
|
2924
|
-
options?: PaginatedOptions,
|
|
2925
|
-
): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
|
|
2346
|
+
getCompressedMintTokenHolders(mint: PublicKey, options?: PaginatedOptions): Promise<WithContext<WithCursor<CompressedMintTokenHolders[]>>>;
|
|
2926
2347
|
/**
|
|
2927
2348
|
* Fetch the latest compression signatures on the cluster. Results are
|
|
2928
2349
|
* paginated.
|
|
2929
2350
|
*/
|
|
2930
|
-
getLatestCompressionSignatures(
|
|
2931
|
-
cursor?: string,
|
|
2932
|
-
limit?: number,
|
|
2933
|
-
): Promise<LatestNonVotingSignaturesPaginated>;
|
|
2351
|
+
getLatestCompressionSignatures(cursor?: string, limit?: number): Promise<LatestNonVotingSignaturesPaginated>;
|
|
2934
2352
|
/**
|
|
2935
2353
|
* Fetch all non-voting signatures
|
|
2936
2354
|
*/
|
|
2937
|
-
getLatestNonVotingSignatures(
|
|
2938
|
-
limit?: number,
|
|
2939
|
-
cursor?: string,
|
|
2940
|
-
): Promise<LatestNonVotingSignatures>;
|
|
2355
|
+
getLatestNonVotingSignatures(limit?: number, cursor?: string): Promise<LatestNonVotingSignatures>;
|
|
2941
2356
|
/**
|
|
2942
2357
|
* Fetch the latest address proofs for new unique addresses specified by an
|
|
2943
2358
|
* array of addresses.
|
|
@@ -2947,9 +2362,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
2947
2362
|
* @param addresses Array of BN254 new addresses
|
|
2948
2363
|
* @returns Array of validity proofs for new addresses
|
|
2949
2364
|
*/
|
|
2950
|
-
getMultipleNewAddressProofs(
|
|
2951
|
-
addresses: BN254[],
|
|
2952
|
-
): Promise<MerkleContextWithNewAddressProof[]>;
|
|
2365
|
+
getMultipleNewAddressProofs(addresses: BN254[]): Promise<MerkleContextWithNewAddressProof[]>;
|
|
2953
2366
|
/**
|
|
2954
2367
|
* Advanced usage of getValidityProof: fetches ZKP directly from a custom
|
|
2955
2368
|
* non-rpcprover. Note: This uses the proverEndpoint specified in the
|
|
@@ -2969,10 +2382,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
2969
2382
|
* @param newAddresses Array of BN254 new addresses.
|
|
2970
2383
|
* @returns validity proof with context
|
|
2971
2384
|
*/
|
|
2972
|
-
getValidityProofDirect(
|
|
2973
|
-
hashes?: BN254[],
|
|
2974
|
-
newAddresses?: BN254[],
|
|
2975
|
-
): Promise<CompressedProofWithContext>;
|
|
2385
|
+
getValidityProofDirect(hashes?: BN254[], newAddresses?: BN254[]): Promise<CompressedProofWithContext>;
|
|
2976
2386
|
/**
|
|
2977
2387
|
* @deprecated use {@link getValidityProofV0} instead.
|
|
2978
2388
|
*
|
|
@@ -2991,10 +2401,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
2991
2401
|
* @param newAddresses Array of BN254 new addresses.
|
|
2992
2402
|
* @returns validity proof with context
|
|
2993
2403
|
*/
|
|
2994
|
-
getValidityProof(
|
|
2995
|
-
hashes?: BN254[],
|
|
2996
|
-
newAddresses?: BN254[],
|
|
2997
|
-
): Promise<CompressedProofWithContext>;
|
|
2404
|
+
getValidityProof(hashes?: BN254[], newAddresses?: BN254[]): Promise<CompressedProofWithContext>;
|
|
2998
2405
|
/**
|
|
2999
2406
|
* Fetch the latest validity proof for (1) compressed accounts specified by
|
|
3000
2407
|
* an array of account hashes. (2) new unique addresses specified by an
|
|
@@ -3009,10 +2416,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
3009
2416
|
* @param newAddresses Array of { address: BN254, tree: PublicKey, queue: PublicKey }.
|
|
3010
2417
|
* @returns validity proof with context
|
|
3011
2418
|
*/
|
|
3012
|
-
getValidityProofV0(
|
|
3013
|
-
hashes?: HashWithTree[],
|
|
3014
|
-
newAddresses?: AddressWithTree[],
|
|
3015
|
-
): Promise<CompressedProofWithContext>;
|
|
2419
|
+
getValidityProofV0(hashes?: HashWithTree[], newAddresses?: AddressWithTree[]): Promise<CompressedProofWithContext>;
|
|
3016
2420
|
/**
|
|
3017
2421
|
* Fetch the latest validity proof for (1) compressed accounts specified by
|
|
3018
2422
|
* an array of account hashes. (2) new unique addresses specified by an
|
|
@@ -3029,10 +2433,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
3029
2433
|
* state tree/queue.
|
|
3030
2434
|
* @returns validity proof with context
|
|
3031
2435
|
*/
|
|
3032
|
-
getValidityProofAndRpcContext(
|
|
3033
|
-
hashes?: HashWithTree[],
|
|
3034
|
-
newAddresses?: AddressWithTree[],
|
|
3035
|
-
): Promise<WithContext<CompressedProofWithContext>>;
|
|
2436
|
+
getValidityProofAndRpcContext(hashes?: HashWithTree[], newAddresses?: AddressWithTree[]): Promise<WithContext<CompressedProofWithContext>>;
|
|
3036
2437
|
}
|
|
3037
2438
|
|
|
3038
2439
|
/**
|
|
@@ -3047,14 +2448,7 @@ declare class Rpc extends Connection implements CompressionApiInterface {
|
|
|
3047
2448
|
*
|
|
3048
2449
|
* @return Transaction signature
|
|
3049
2450
|
*/
|
|
3050
|
-
declare function compress(
|
|
3051
|
-
rpc: Rpc,
|
|
3052
|
-
payer: Signer,
|
|
3053
|
-
lamports: number | BN,
|
|
3054
|
-
toAddress: PublicKey,
|
|
3055
|
-
outputStateTree?: PublicKey,
|
|
3056
|
-
confirmOptions?: ConfirmOptions,
|
|
3057
|
-
): Promise<TransactionSignature>;
|
|
2451
|
+
declare function compress(rpc: Rpc, payer: Signer, lamports: number | BN, toAddress: PublicKey, outputStateTree?: PublicKey, confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
|
|
3058
2452
|
|
|
3059
2453
|
/**
|
|
3060
2454
|
* Create compressed account with address
|
|
@@ -3073,16 +2467,7 @@ declare function compress(
|
|
|
3073
2467
|
*
|
|
3074
2468
|
* @return Transaction signature
|
|
3075
2469
|
*/
|
|
3076
|
-
declare function createAccount(
|
|
3077
|
-
rpc: Rpc,
|
|
3078
|
-
payer: Signer,
|
|
3079
|
-
seeds: Uint8Array[],
|
|
3080
|
-
programId: PublicKey,
|
|
3081
|
-
addressTree?: PublicKey,
|
|
3082
|
-
addressQueue?: PublicKey,
|
|
3083
|
-
outputStateTree?: PublicKey,
|
|
3084
|
-
confirmOptions?: ConfirmOptions,
|
|
3085
|
-
): Promise<TransactionSignature>;
|
|
2470
|
+
declare function createAccount(rpc: Rpc, payer: Signer, seeds: Uint8Array[], programId: PublicKey, addressTree?: PublicKey, addressQueue?: PublicKey, outputStateTree?: PublicKey, confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
|
|
3086
2471
|
/**
|
|
3087
2472
|
* Create compressed account with address and lamports
|
|
3088
2473
|
*
|
|
@@ -3102,17 +2487,7 @@ declare function createAccount(
|
|
|
3102
2487
|
*
|
|
3103
2488
|
* @return Transaction signature
|
|
3104
2489
|
*/
|
|
3105
|
-
declare function createAccountWithLamports(
|
|
3106
|
-
rpc: Rpc,
|
|
3107
|
-
payer: Signer,
|
|
3108
|
-
seeds: Uint8Array[],
|
|
3109
|
-
lamports: number | BN,
|
|
3110
|
-
programId: PublicKey,
|
|
3111
|
-
addressTree?: PublicKey,
|
|
3112
|
-
addressQueue?: PublicKey,
|
|
3113
|
-
outputStateTree?: PublicKey,
|
|
3114
|
-
confirmOptions?: ConfirmOptions,
|
|
3115
|
-
): Promise<TransactionSignature>;
|
|
2490
|
+
declare function createAccountWithLamports(rpc: Rpc, payer: Signer, seeds: Uint8Array[], lamports: number | BN, programId: PublicKey, addressTree?: PublicKey, addressQueue?: PublicKey, outputStateTree?: PublicKey, confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
|
|
3116
2491
|
|
|
3117
2492
|
/**
|
|
3118
2493
|
* Decompress lamports into a solana account
|
|
@@ -3126,14 +2501,7 @@ declare function createAccountWithLamports(
|
|
|
3126
2501
|
*
|
|
3127
2502
|
* @return Transaction signature
|
|
3128
2503
|
*/
|
|
3129
|
-
declare function decompress(
|
|
3130
|
-
rpc: Rpc,
|
|
3131
|
-
payer: Signer,
|
|
3132
|
-
lamports: number | BN,
|
|
3133
|
-
recipient: PublicKey,
|
|
3134
|
-
outputStateTree?: PublicKey,
|
|
3135
|
-
confirmOptions?: ConfirmOptions,
|
|
3136
|
-
): Promise<TransactionSignature>;
|
|
2504
|
+
declare function decompress(rpc: Rpc, payer: Signer, lamports: number | BN, recipient: PublicKey, outputStateTree?: PublicKey, confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
|
|
3137
2505
|
|
|
3138
2506
|
/** @internal remove signer from signers if part of signers */
|
|
3139
2507
|
declare function dedupeSigner(signer: Signer, signers: Signer[]): Signer[];
|
|
@@ -3154,24 +2522,13 @@ declare function dedupeSigner(signer: Signer, signers: Signer[]): Signer[];
|
|
|
3154
2522
|
*
|
|
3155
2523
|
* @return Signature of the confirmed transaction
|
|
3156
2524
|
*/
|
|
3157
|
-
declare function transfer(
|
|
3158
|
-
rpc: Rpc,
|
|
3159
|
-
payer: Signer,
|
|
3160
|
-
lamports: number | BN,
|
|
3161
|
-
owner: Signer,
|
|
3162
|
-
toAddress: PublicKey,
|
|
3163
|
-
merkleTree?: PublicKey,
|
|
3164
|
-
confirmOptions?: ConfirmOptions,
|
|
3165
|
-
): Promise<TransactionSignature>;
|
|
2525
|
+
declare function transfer(rpc: Rpc, payer: Signer, lamports: number | BN, owner: Signer, toAddress: PublicKey, merkleTree?: PublicKey, confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
|
|
3166
2526
|
|
|
3167
2527
|
/**
|
|
3168
2528
|
* @internal Finds the index of a PublicKey in an array, or adds it if not
|
|
3169
2529
|
* present
|
|
3170
2530
|
* */
|
|
3171
|
-
declare function getIndexOrAdd(
|
|
3172
|
-
accountsArray: PublicKey[],
|
|
3173
|
-
key: PublicKey,
|
|
3174
|
-
): number;
|
|
2531
|
+
declare function getIndexOrAdd(accountsArray: PublicKey[], key: PublicKey): number;
|
|
3175
2532
|
/**
|
|
3176
2533
|
* @internal
|
|
3177
2534
|
* Pads output state trees with the 0th state tree of the input state.
|
|
@@ -3188,11 +2545,7 @@ declare function getIndexOrAdd(
|
|
|
3188
2545
|
*
|
|
3189
2546
|
* @returns Padded output state trees.
|
|
3190
2547
|
*/
|
|
3191
|
-
declare function padOutputStateMerkleTrees(
|
|
3192
|
-
outputStateMerkleTrees: PublicKey[] | PublicKey | undefined,
|
|
3193
|
-
numberOfOutputCompressedAccounts: number,
|
|
3194
|
-
inputCompressedAccountsWithMerkleContext: CompressedAccountWithMerkleContext[],
|
|
3195
|
-
): PublicKey[];
|
|
2548
|
+
declare function padOutputStateMerkleTrees(outputStateMerkleTrees: PublicKey[] | PublicKey | undefined, numberOfOutputCompressedAccounts: number, inputCompressedAccountsWithMerkleContext: CompressedAccountWithMerkleContext[]): PublicKey[];
|
|
3196
2549
|
declare function toAccountMetas(remainingAccounts: PublicKey[]): AccountMeta[];
|
|
3197
2550
|
/**
|
|
3198
2551
|
* Packs Compressed Accounts.
|
|
@@ -3214,21 +2567,13 @@ declare function toAccountMetas(remainingAccounts: PublicKey[]): AccountMeta[];
|
|
|
3214
2567
|
* @param remainingAccounts Optional existing array of accounts
|
|
3215
2568
|
* to append to.
|
|
3216
2569
|
**/
|
|
3217
|
-
declare function packCompressedAccounts(
|
|
3218
|
-
inputCompressedAccounts: CompressedAccountWithMerkleContext[],
|
|
3219
|
-
inputStateRootIndices: number[],
|
|
3220
|
-
outputCompressedAccounts: CompressedAccount[],
|
|
3221
|
-
outputStateMerkleTrees?: PublicKey[] | PublicKey,
|
|
3222
|
-
remainingAccounts?: PublicKey[],
|
|
3223
|
-
): {
|
|
2570
|
+
declare function packCompressedAccounts(inputCompressedAccounts: CompressedAccountWithMerkleContext[], inputStateRootIndices: number[], outputCompressedAccounts: CompressedAccount[], outputStateMerkleTrees?: PublicKey[] | PublicKey, remainingAccounts?: PublicKey[]): {
|
|
3224
2571
|
packedInputCompressedAccounts: PackedCompressedAccountWithMerkleContext[];
|
|
3225
2572
|
packedOutputCompressedAccounts: OutputCompressedAccountWithPackedContext[];
|
|
3226
2573
|
remainingAccounts: PublicKey[];
|
|
3227
2574
|
};
|
|
3228
2575
|
|
|
3229
|
-
declare const sumUpLamports: (
|
|
3230
|
-
accounts: CompressedAccountWithMerkleContext[],
|
|
3231
|
-
) => BN;
|
|
2576
|
+
declare const sumUpLamports: (accounts: CompressedAccountWithMerkleContext[]) => BN;
|
|
3232
2577
|
/**
|
|
3233
2578
|
* Create compressed account system transaction params
|
|
3234
2579
|
*/
|
|
@@ -3385,76 +2730,34 @@ declare class LightSystemProgram$1 {
|
|
|
3385
2730
|
*
|
|
3386
2731
|
*/
|
|
3387
2732
|
static deriveCompressedSolPda(): PublicKey;
|
|
3388
|
-
static createTransferOutputState(
|
|
3389
|
-
|
|
3390
|
-
toAddress: PublicKey,
|
|
3391
|
-
lamports: number | BN,
|
|
3392
|
-
): CompressedAccount[];
|
|
3393
|
-
static createDecompressOutputState(
|
|
3394
|
-
inputCompressedAccounts: CompressedAccountWithMerkleContext[],
|
|
3395
|
-
lamports: number | BN,
|
|
3396
|
-
): CompressedAccount[];
|
|
2733
|
+
static createTransferOutputState(inputCompressedAccounts: CompressedAccountWithMerkleContext[], toAddress: PublicKey, lamports: number | BN): CompressedAccount[];
|
|
2734
|
+
static createDecompressOutputState(inputCompressedAccounts: CompressedAccountWithMerkleContext[], lamports: number | BN): CompressedAccount[];
|
|
3397
2735
|
/**
|
|
3398
2736
|
* No data by default
|
|
3399
2737
|
*/
|
|
3400
|
-
static createNewAddressOutputState(
|
|
3401
|
-
address: number[],
|
|
3402
|
-
owner: PublicKey,
|
|
3403
|
-
lamports?: BN | number,
|
|
3404
|
-
inputCompressedAccounts?: CompressedAccountWithMerkleContext[],
|
|
3405
|
-
): CompressedAccount[];
|
|
2738
|
+
static createNewAddressOutputState(address: number[], owner: PublicKey, lamports?: BN | number, inputCompressedAccounts?: CompressedAccountWithMerkleContext[]): CompressedAccount[];
|
|
3406
2739
|
/**
|
|
3407
2740
|
* Creates instruction to create compressed account with PDA.
|
|
3408
2741
|
* Cannot write data.
|
|
3409
2742
|
*
|
|
3410
2743
|
* TODO: support transfer of lamports to the new account.
|
|
3411
2744
|
*/
|
|
3412
|
-
static createAccount({
|
|
3413
|
-
payer,
|
|
3414
|
-
newAddressParams,
|
|
3415
|
-
newAddress,
|
|
3416
|
-
recentValidityProof,
|
|
3417
|
-
outputStateTree,
|
|
3418
|
-
inputCompressedAccounts,
|
|
3419
|
-
inputStateRootIndices,
|
|
3420
|
-
lamports,
|
|
3421
|
-
}: CreateAccountWithSeedParams): Promise<TransactionInstruction>;
|
|
2745
|
+
static createAccount({ payer, newAddressParams, newAddress, recentValidityProof, outputStateTree, inputCompressedAccounts, inputStateRootIndices, lamports, }: CreateAccountWithSeedParams): Promise<TransactionInstruction>;
|
|
3422
2746
|
/**
|
|
3423
2747
|
* Creates a transaction instruction that transfers compressed lamports from
|
|
3424
2748
|
* one owner to another.
|
|
3425
2749
|
*/
|
|
3426
|
-
static transfer({
|
|
3427
|
-
payer,
|
|
3428
|
-
inputCompressedAccounts,
|
|
3429
|
-
toAddress,
|
|
3430
|
-
lamports,
|
|
3431
|
-
recentInputStateRootIndices,
|
|
3432
|
-
recentValidityProof,
|
|
3433
|
-
outputStateTrees,
|
|
3434
|
-
}: TransferParams): Promise<TransactionInstruction>;
|
|
2750
|
+
static transfer({ payer, inputCompressedAccounts, toAddress, lamports, recentInputStateRootIndices, recentValidityProof, outputStateTrees, }: TransferParams): Promise<TransactionInstruction>;
|
|
3435
2751
|
/**
|
|
3436
2752
|
* Creates a transaction instruction that transfers compressed lamports from
|
|
3437
2753
|
* one owner to another.
|
|
3438
2754
|
*/
|
|
3439
|
-
static compress({
|
|
3440
|
-
payer,
|
|
3441
|
-
toAddress,
|
|
3442
|
-
lamports,
|
|
3443
|
-
outputStateTree,
|
|
3444
|
-
}: CompressParams): Promise<TransactionInstruction>;
|
|
2755
|
+
static compress({ payer, toAddress, lamports, outputStateTree, }: CompressParams): Promise<TransactionInstruction>;
|
|
3445
2756
|
/**
|
|
3446
2757
|
* Creates a transaction instruction that transfers compressed lamports from
|
|
3447
2758
|
* one owner to another.
|
|
3448
2759
|
*/
|
|
3449
|
-
static decompress({
|
|
3450
|
-
payer,
|
|
3451
|
-
inputCompressedAccounts,
|
|
3452
|
-
toAddress,
|
|
3453
|
-
lamports,
|
|
3454
|
-
recentInputStateRootIndices,
|
|
3455
|
-
recentValidityProof,
|
|
3456
|
-
outputStateTree,
|
|
3457
|
-
}: DecompressParams): Promise<TransactionInstruction>;
|
|
2760
|
+
static decompress({ payer, inputCompressedAccounts, toAddress, lamports, recentInputStateRootIndices, recentValidityProof, outputStateTree, }: DecompressParams): Promise<TransactionInstruction>;
|
|
3458
2761
|
}
|
|
3459
2762
|
/**
|
|
3460
2763
|
* Selects the minimal number of compressed SOL accounts for a transfer.
|
|
@@ -3463,25 +2766,16 @@ declare class LightSystemProgram$1 {
|
|
|
3463
2766
|
* 2. Accumulates the amount until it is greater than or equal to the transfer
|
|
3464
2767
|
* amount
|
|
3465
2768
|
*/
|
|
3466
|
-
declare function selectMinCompressedSolAccountsForTransfer(
|
|
3467
|
-
accounts: CompressedAccountWithMerkleContext[],
|
|
3468
|
-
transferLamports: BN | number,
|
|
3469
|
-
): [selectedAccounts: CompressedAccountWithMerkleContext[], total: BN];
|
|
2769
|
+
declare function selectMinCompressedSolAccountsForTransfer(accounts: CompressedAccountWithMerkleContext[], transferLamports: BN | number): [selectedAccounts: CompressedAccountWithMerkleContext[], total: BN];
|
|
3470
2770
|
|
|
3471
2771
|
declare const CompressedAccountLayout: buffer_layout.Layout<unknown>;
|
|
3472
2772
|
declare const MerkleContextLayout: buffer_layout.Layout<unknown>;
|
|
3473
2773
|
declare const NewAddressParamsLayout: buffer_layout.Layout<unknown>;
|
|
3474
2774
|
declare const InstructionDataInvokeLayout: Layout<InstructionDataInvoke>;
|
|
3475
|
-
declare function encodeInstructionDataInvoke(
|
|
3476
|
-
data: InstructionDataInvoke,
|
|
3477
|
-
): Buffer$1;
|
|
2775
|
+
declare function encodeInstructionDataInvoke(data: InstructionDataInvoke): Buffer$1;
|
|
3478
2776
|
declare const InstructionDataInvokeCpiLayout: Layout<InstructionDataInvokeCpi>;
|
|
3479
|
-
declare function decodeInstructionDataInvoke(
|
|
3480
|
-
|
|
3481
|
-
): InstructionDataInvoke;
|
|
3482
|
-
declare function decodeInstructionDataInvokeCpi(
|
|
3483
|
-
buffer: Buffer$1,
|
|
3484
|
-
): InstructionDataInvokeCpi;
|
|
2777
|
+
declare function decodeInstructionDataInvoke(buffer: Buffer$1): InstructionDataInvoke;
|
|
2778
|
+
declare function decodeInstructionDataInvokeCpi(buffer: Buffer$1): InstructionDataInvokeCpi;
|
|
3485
2779
|
type invokeAccountsLayoutParams = {
|
|
3486
2780
|
feePayer: PublicKey;
|
|
3487
2781
|
authority: PublicKey;
|
|
@@ -3493,24 +2787,16 @@ type invokeAccountsLayoutParams = {
|
|
|
3493
2787
|
decompressionRecipient: PublicKey | null;
|
|
3494
2788
|
systemProgram: PublicKey;
|
|
3495
2789
|
};
|
|
3496
|
-
declare const invokeAccountsLayout: (
|
|
3497
|
-
accounts: invokeAccountsLayoutParams,
|
|
3498
|
-
) => AccountMeta[];
|
|
2790
|
+
declare const invokeAccountsLayout: (accounts: invokeAccountsLayoutParams) => AccountMeta[];
|
|
3499
2791
|
declare const PublicTransactionEventLayout: Layout<PublicTransactionEvent>;
|
|
3500
|
-
declare function encodePublicTransactionEvent(
|
|
3501
|
-
|
|
3502
|
-
): Buffer$1;
|
|
3503
|
-
declare function decodePublicTransactionEvent(
|
|
3504
|
-
buffer: Buffer$1,
|
|
3505
|
-
): PublicTransactionEvent;
|
|
2792
|
+
declare function encodePublicTransactionEvent(data: PublicTransactionEvent): Buffer$1;
|
|
2793
|
+
declare function decodePublicTransactionEvent(buffer: Buffer$1): PublicTransactionEvent;
|
|
3506
2794
|
declare const AppendNullifyCreateAddressInputsMetaLayout: buffer_layout.Layout<unknown>;
|
|
3507
2795
|
declare const AppendLeavesInputLayout: buffer_layout.Layout<unknown>;
|
|
3508
2796
|
declare const InsertNullifierInputLayout: buffer_layout.Layout<unknown>;
|
|
3509
2797
|
declare const InsertAddressInputLayout: buffer_layout.Layout<unknown>;
|
|
3510
2798
|
declare const MerkleTreeSequenceNumberLayout: buffer_layout.Layout<unknown>;
|
|
3511
|
-
declare function deserializeAppendNullifyCreateAddressInputsIndexer(
|
|
3512
|
-
buffer: Buffer$1,
|
|
3513
|
-
): {
|
|
2799
|
+
declare function deserializeAppendNullifyCreateAddressInputsIndexer(buffer: Buffer$1): {
|
|
3514
2800
|
meta: unknown;
|
|
3515
2801
|
leaves: unknown[];
|
|
3516
2802
|
nullifiers: unknown[];
|
|
@@ -3518,11 +2804,7 @@ declare function deserializeAppendNullifyCreateAddressInputsIndexer(
|
|
|
3518
2804
|
sequence_numbers: unknown[];
|
|
3519
2805
|
output_leaf_indices: number[];
|
|
3520
2806
|
};
|
|
3521
|
-
declare function convertToPublicTransactionEvent(
|
|
3522
|
-
decoded: any,
|
|
3523
|
-
remainingAccounts: PublicKey[],
|
|
3524
|
-
invokeData: InstructionDataInvoke,
|
|
3525
|
-
): PublicTransactionEvent;
|
|
2807
|
+
declare function convertToPublicTransactionEvent(decoded: any, remainingAccounts: PublicKey[], invokeData: InstructionDataInvoke): PublicTransactionEvent;
|
|
3526
2808
|
|
|
3527
2809
|
declare const FIELD_SIZE: BN;
|
|
3528
2810
|
declare const HIGHEST_ADDRESS_PLUS_ONE: BN;
|
|
@@ -3530,10 +2812,9 @@ declare const COMPUTE_BUDGET_PATTERN: number[];
|
|
|
3530
2812
|
declare const INVOKE_DISCRIMINATOR: Buffer$1;
|
|
3531
2813
|
declare const INVOKE_CPI_DISCRIMINATOR: Buffer$1;
|
|
3532
2814
|
declare const INSERT_INTO_QUEUES_DISCRIMINATOR: Buffer$1;
|
|
3533
|
-
declare const noopProgram =
|
|
3534
|
-
declare const lightProgram =
|
|
3535
|
-
declare const accountCompressionProgram =
|
|
3536
|
-
'compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq';
|
|
2815
|
+
declare const noopProgram = "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV";
|
|
2816
|
+
declare const lightProgram = "SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7";
|
|
2817
|
+
declare const accountCompressionProgram = "compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq";
|
|
3537
2818
|
declare const getRegisteredProgramPda: () => PublicKey;
|
|
3538
2819
|
declare const getAccountCompressionAuthority: () => PublicKey;
|
|
3539
2820
|
declare const defaultStaticAccounts: () => PublicKey[];
|
|
@@ -3581,24 +2862,18 @@ declare const defaultTestStateTreeAccounts2: () => {
|
|
|
3581
2862
|
nullifierQueue2: PublicKey;
|
|
3582
2863
|
merkleTree2: PublicKey;
|
|
3583
2864
|
};
|
|
3584
|
-
declare const stateTreeLookupTableMainnet =
|
|
3585
|
-
|
|
3586
|
-
declare const
|
|
3587
|
-
|
|
3588
|
-
declare const
|
|
3589
|
-
|
|
3590
|
-
declare const
|
|
3591
|
-
|
|
3592
|
-
declare const
|
|
3593
|
-
|
|
3594
|
-
declare const
|
|
3595
|
-
declare const
|
|
3596
|
-
declare const addressTree = 'amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2';
|
|
3597
|
-
declare const addressQueue = 'aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F';
|
|
3598
|
-
declare const merkleTree2Pubkey = 'smt2rJAFdyJJupwMKAqTNAJwvjhmiZ4JYGZmbVRw1Ho';
|
|
3599
|
-
declare const nullifierQueue2Pubkey =
|
|
3600
|
-
'nfq2hgS7NYemXsFaFUCe3EMXSDSfnZnAe27jC6aPP1X';
|
|
3601
|
-
declare const cpiContext2Pubkey = 'cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK';
|
|
2865
|
+
declare const stateTreeLookupTableMainnet = "7i86eQs3GSqHjN47WdWLTCGMW6gde1q96G2EVnUyK2st";
|
|
2866
|
+
declare const nullifiedStateTreeLookupTableMainnet = "H9QD4u1fG7KmkAzn2tDXhheushxFe1EcrjGGyEFXeMqT";
|
|
2867
|
+
declare const stateTreeLookupTableDevnet = "8n8rH2bFRVA6cSGNDpgqcKHCndbFCT1bXxAQG89ejVsh";
|
|
2868
|
+
declare const nullifiedStateTreeLookupTableDevnet = "5dhaJLBjnVBQFErr8oiCJmcVsx3Zj6xDekGB2zULPsnP";
|
|
2869
|
+
declare const nullifierQueuePubkey = "nfq1NvQDJ2GEgnS8zt9prAe8rjjpAW1zFkrvZoBR148";
|
|
2870
|
+
declare const cpiContextPubkey = "cpi1uHzrEhBG733DoEJNgHCyRS3XmmyVNZx5fonubE4";
|
|
2871
|
+
declare const merkletreePubkey = "smt1NamzXdq4AMqS2fS2F1i5KTYPZRhoHgWx38d8WsT";
|
|
2872
|
+
declare const addressTree = "amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2";
|
|
2873
|
+
declare const addressQueue = "aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F";
|
|
2874
|
+
declare const merkleTree2Pubkey = "smt2rJAFdyJJupwMKAqTNAJwvjhmiZ4JYGZmbVRw1Ho";
|
|
2875
|
+
declare const nullifierQueue2Pubkey = "nfq2hgS7NYemXsFaFUCe3EMXSDSfnZnAe27jC6aPP1X";
|
|
2876
|
+
declare const cpiContext2Pubkey = "cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK";
|
|
3602
2877
|
declare const confirmConfig: ConfirmOptions;
|
|
3603
2878
|
declare const DEFAULT_MERKLE_TREE_HEIGHT = 26;
|
|
3604
2879
|
declare const DEFAULT_MERKLE_TREE_ROOTS = 2800;
|
|
@@ -3636,53 +2911,53 @@ declare const STATE_MERKLE_TREE_NETWORK_FEE: BN;
|
|
|
3636
2911
|
declare const ADDRESS_TREE_NETWORK_FEE: BN;
|
|
3637
2912
|
|
|
3638
2913
|
declare enum UtxoErrorCode {
|
|
3639
|
-
NEGATIVE_LAMPORTS =
|
|
3640
|
-
NOT_U64 =
|
|
3641
|
-
BLINDING_EXCEEDS_FIELD_SIZE =
|
|
2914
|
+
NEGATIVE_LAMPORTS = "NEGATIVE_LAMPORTS",
|
|
2915
|
+
NOT_U64 = "NOT_U64",
|
|
2916
|
+
BLINDING_EXCEEDS_FIELD_SIZE = "BLINDING_EXCEEDS_FIELD_SIZE"
|
|
3642
2917
|
}
|
|
3643
2918
|
declare enum SelectInUtxosErrorCode {
|
|
3644
|
-
FAILED_TO_FIND_UTXO_COMBINATION =
|
|
3645
|
-
INVALID_NUMBER_OF_IN_UTXOS =
|
|
2919
|
+
FAILED_TO_FIND_UTXO_COMBINATION = "FAILED_TO_FIND_UTXO_COMBINATION",
|
|
2920
|
+
INVALID_NUMBER_OF_IN_UTXOS = "INVALID_NUMBER_OF_IN_UTXOS"
|
|
3646
2921
|
}
|
|
3647
2922
|
declare enum CreateUtxoErrorCode {
|
|
3648
|
-
OWNER_UNDEFINED =
|
|
3649
|
-
INVALID_OUTPUT_UTXO_LENGTH =
|
|
3650
|
-
UTXO_DATA_UNDEFINED =
|
|
2923
|
+
OWNER_UNDEFINED = "OWNER_UNDEFINED",
|
|
2924
|
+
INVALID_OUTPUT_UTXO_LENGTH = "INVALID_OUTPUT_UTXO_LENGTH",
|
|
2925
|
+
UTXO_DATA_UNDEFINED = "UTXO_DATA_UNDEFINED"
|
|
3651
2926
|
}
|
|
3652
2927
|
declare enum RpcErrorCode {
|
|
3653
|
-
CONNECTION_UNDEFINED =
|
|
3654
|
-
RPC_PUBKEY_UNDEFINED =
|
|
3655
|
-
RPC_METHOD_NOT_IMPLEMENTED =
|
|
3656
|
-
RPC_INVALID =
|
|
2928
|
+
CONNECTION_UNDEFINED = "CONNECTION_UNDEFINED",
|
|
2929
|
+
RPC_PUBKEY_UNDEFINED = "RPC_PUBKEY_UNDEFINED",
|
|
2930
|
+
RPC_METHOD_NOT_IMPLEMENTED = "RPC_METHOD_NOT_IMPLEMENTED",
|
|
2931
|
+
RPC_INVALID = "RPC_INVALID"
|
|
3657
2932
|
}
|
|
3658
2933
|
declare enum LookupTableErrorCode {
|
|
3659
|
-
LOOK_UP_TABLE_UNDEFINED =
|
|
3660
|
-
LOOK_UP_TABLE_NOT_INITIALIZED =
|
|
2934
|
+
LOOK_UP_TABLE_UNDEFINED = "LOOK_UP_TABLE_UNDEFINED",
|
|
2935
|
+
LOOK_UP_TABLE_NOT_INITIALIZED = "LOOK_UP_TABLE_NOT_INITIALIZED"
|
|
3661
2936
|
}
|
|
3662
2937
|
declare enum HashErrorCode {
|
|
3663
|
-
NO_POSEIDON_HASHER_PROVIDED =
|
|
2938
|
+
NO_POSEIDON_HASHER_PROVIDED = "NO_POSEIDON_HASHER_PROVIDED"
|
|
3664
2939
|
}
|
|
3665
2940
|
declare enum ProofErrorCode {
|
|
3666
|
-
INVALID_PROOF =
|
|
3667
|
-
PROOF_INPUT_UNDEFINED =
|
|
3668
|
-
PROOF_GENERATION_FAILED =
|
|
2941
|
+
INVALID_PROOF = "INVALID_PROOF",
|
|
2942
|
+
PROOF_INPUT_UNDEFINED = "PROOF_INPUT_UNDEFINED",
|
|
2943
|
+
PROOF_GENERATION_FAILED = "PROOF_GENERATION_FAILED"
|
|
3669
2944
|
}
|
|
3670
2945
|
declare enum MerkleTreeErrorCode {
|
|
3671
|
-
MERKLE_TREE_NOT_INITIALIZED =
|
|
3672
|
-
SOL_MERKLE_TREE_UNDEFINED =
|
|
3673
|
-
MERKLE_TREE_UNDEFINED =
|
|
3674
|
-
INPUT_UTXO_NOT_INSERTED_IN_MERKLE_TREE =
|
|
3675
|
-
MERKLE_TREE_INDEX_UNDEFINED =
|
|
3676
|
-
MERKLE_TREE_SET_SPACE_UNDEFINED =
|
|
2946
|
+
MERKLE_TREE_NOT_INITIALIZED = "MERKLE_TREE_NOT_INITIALIZED",
|
|
2947
|
+
SOL_MERKLE_TREE_UNDEFINED = "SOL_MERKLE_TREE_UNDEFINED",
|
|
2948
|
+
MERKLE_TREE_UNDEFINED = "MERKLE_TREE_UNDEFINED",
|
|
2949
|
+
INPUT_UTXO_NOT_INSERTED_IN_MERKLE_TREE = "INPUT_UTXO_NOT_INSERTED_IN_MERKLE_TREE",
|
|
2950
|
+
MERKLE_TREE_INDEX_UNDEFINED = "MERKLE_TREE_INDEX_UNDEFINED",
|
|
2951
|
+
MERKLE_TREE_SET_SPACE_UNDEFINED = "MERKLE_TREE_SET_SPACE_UNDEFINED"
|
|
3677
2952
|
}
|
|
3678
2953
|
declare enum UtilsErrorCode {
|
|
3679
|
-
ACCOUNT_NAME_UNDEFINED_IN_IDL =
|
|
3680
|
-
PROPERTY_UNDEFINED =
|
|
3681
|
-
LOOK_UP_TABLE_CREATION_FAILED =
|
|
3682
|
-
UNSUPPORTED_ARCHITECTURE =
|
|
3683
|
-
UNSUPPORTED_PLATFORM =
|
|
3684
|
-
ACCOUNTS_UNDEFINED =
|
|
3685
|
-
INVALID_NUMBER =
|
|
2954
|
+
ACCOUNT_NAME_UNDEFINED_IN_IDL = "ACCOUNT_NAME_UNDEFINED_IN_IDL",
|
|
2955
|
+
PROPERTY_UNDEFINED = "PROPERTY_UNDEFINED",
|
|
2956
|
+
LOOK_UP_TABLE_CREATION_FAILED = "LOOK_UP_TABLE_CREATION_FAILED",
|
|
2957
|
+
UNSUPPORTED_ARCHITECTURE = "UNSUPPORTED_ARCHITECTURE",
|
|
2958
|
+
UNSUPPORTED_PLATFORM = "UNSUPPORTED_PLATFORM",
|
|
2959
|
+
ACCOUNTS_UNDEFINED = "ACCOUNTS_UNDEFINED",
|
|
2960
|
+
INVALID_NUMBER = "INVALID_NUMBER"
|
|
3686
2961
|
}
|
|
3687
2962
|
declare class MetaError extends Error {
|
|
3688
2963
|
code: string;
|
|
@@ -3690,15 +2965,24 @@ declare class MetaError extends Error {
|
|
|
3690
2965
|
codeMessage?: string;
|
|
3691
2966
|
constructor(code: string, functionName: string, codeMessage?: string);
|
|
3692
2967
|
}
|
|
3693
|
-
declare class UtxoError extends MetaError {
|
|
3694
|
-
|
|
3695
|
-
declare class
|
|
3696
|
-
|
|
3697
|
-
declare class
|
|
3698
|
-
|
|
3699
|
-
declare class
|
|
3700
|
-
|
|
3701
|
-
declare class
|
|
2968
|
+
declare class UtxoError extends MetaError {
|
|
2969
|
+
}
|
|
2970
|
+
declare class SelectInUtxosError extends MetaError {
|
|
2971
|
+
}
|
|
2972
|
+
declare class CreateUtxoError extends MetaError {
|
|
2973
|
+
}
|
|
2974
|
+
declare class RpcError extends MetaError {
|
|
2975
|
+
}
|
|
2976
|
+
declare class LookupTableError extends MetaError {
|
|
2977
|
+
}
|
|
2978
|
+
declare class HashError extends MetaError {
|
|
2979
|
+
}
|
|
2980
|
+
declare class ProofError extends MetaError {
|
|
2981
|
+
}
|
|
2982
|
+
declare class MerkleTreeError extends MetaError {
|
|
2983
|
+
}
|
|
2984
|
+
declare class UtilsError extends MetaError {
|
|
2985
|
+
}
|
|
3702
2986
|
|
|
3703
2987
|
type LightSystemProgram = {
|
|
3704
2988
|
version: '1.2.0';
|
|
@@ -3708,7 +2992,7 @@ type LightSystemProgram = {
|
|
|
3708
2992
|
name: 'SOL_POOL_PDA_SEED';
|
|
3709
2993
|
type: 'bytes';
|
|
3710
2994
|
value: '[115, 111, 108, 95, 112, 111, 111, 108, 95, 112, 100, 97]';
|
|
3711
|
-
}
|
|
2995
|
+
}
|
|
3712
2996
|
];
|
|
3713
2997
|
instructions: [
|
|
3714
2998
|
{
|
|
@@ -3728,7 +3012,7 @@ type LightSystemProgram = {
|
|
|
3728
3012
|
name: 'associatedMerkleTree';
|
|
3729
3013
|
isMut: false;
|
|
3730
3014
|
isSigner: false;
|
|
3731
|
-
}
|
|
3015
|
+
}
|
|
3732
3016
|
];
|
|
3733
3017
|
args: [];
|
|
3734
3018
|
},
|
|
@@ -3740,7 +3024,7 @@ type LightSystemProgram = {
|
|
|
3740
3024
|
isMut: true;
|
|
3741
3025
|
isSigner: true;
|
|
3742
3026
|
docs: [
|
|
3743
|
-
'Fee payer needs to be mutable to pay rollover and protocol fees.'
|
|
3027
|
+
'Fee payer needs to be mutable to pay rollover and protocol fees.'
|
|
3744
3028
|
];
|
|
3745
3029
|
},
|
|
3746
3030
|
{
|
|
@@ -3763,7 +3047,7 @@ type LightSystemProgram = {
|
|
|
3763
3047
|
isMut: false;
|
|
3764
3048
|
isSigner: false;
|
|
3765
3049
|
docs: [
|
|
3766
|
-
'This pda is used to invoke the account compression program.'
|
|
3050
|
+
'This pda is used to invoke the account compression program.'
|
|
3767
3051
|
];
|
|
3768
3052
|
},
|
|
3769
3053
|
{
|
|
@@ -3779,7 +3063,7 @@ type LightSystemProgram = {
|
|
|
3779
3063
|
isOptional: true;
|
|
3780
3064
|
docs: [
|
|
3781
3065
|
'Sol pool pda is used to store the native sol that has been compressed.',
|
|
3782
|
-
"It's only required when compressing or decompressing sol."
|
|
3066
|
+
"It's only required when compressing or decompressing sol."
|
|
3783
3067
|
];
|
|
3784
3068
|
},
|
|
3785
3069
|
{
|
|
@@ -3790,20 +3074,20 @@ type LightSystemProgram = {
|
|
|
3790
3074
|
docs: [
|
|
3791
3075
|
'Only needs to be provided for decompression as a recipient for the',
|
|
3792
3076
|
'decompressed sol.',
|
|
3793
|
-
'Compressed sol originate from authority.'
|
|
3077
|
+
'Compressed sol originate from authority.'
|
|
3794
3078
|
];
|
|
3795
3079
|
},
|
|
3796
3080
|
{
|
|
3797
3081
|
name: 'systemProgram';
|
|
3798
3082
|
isMut: false;
|
|
3799
3083
|
isSigner: false;
|
|
3800
|
-
}
|
|
3084
|
+
}
|
|
3801
3085
|
];
|
|
3802
3086
|
args: [
|
|
3803
3087
|
{
|
|
3804
3088
|
name: 'inputs';
|
|
3805
3089
|
type: 'bytes';
|
|
3806
|
-
}
|
|
3090
|
+
}
|
|
3807
3091
|
];
|
|
3808
3092
|
},
|
|
3809
3093
|
{
|
|
@@ -3814,7 +3098,7 @@ type LightSystemProgram = {
|
|
|
3814
3098
|
isMut: true;
|
|
3815
3099
|
isSigner: true;
|
|
3816
3100
|
docs: [
|
|
3817
|
-
'Fee payer needs to be mutable to pay rollover and protocol fees.'
|
|
3101
|
+
'Fee payer needs to be mutable to pay rollover and protocol fees.'
|
|
3818
3102
|
];
|
|
3819
3103
|
},
|
|
3820
3104
|
{
|
|
@@ -3869,13 +3153,13 @@ type LightSystemProgram = {
|
|
|
3869
3153
|
isMut: true;
|
|
3870
3154
|
isSigner: false;
|
|
3871
3155
|
isOptional: true;
|
|
3872
|
-
}
|
|
3156
|
+
}
|
|
3873
3157
|
];
|
|
3874
3158
|
args: [
|
|
3875
3159
|
{
|
|
3876
3160
|
name: 'inputs';
|
|
3877
3161
|
type: 'bytes';
|
|
3878
|
-
}
|
|
3162
|
+
}
|
|
3879
3163
|
];
|
|
3880
3164
|
},
|
|
3881
3165
|
{
|
|
@@ -3886,7 +3170,7 @@ type LightSystemProgram = {
|
|
|
3886
3170
|
isMut: true;
|
|
3887
3171
|
isSigner: true;
|
|
3888
3172
|
docs: [
|
|
3889
|
-
'Fee payer needs to be mutable to pay rollover and protocol fees.'
|
|
3173
|
+
'Fee payer needs to be mutable to pay rollover and protocol fees.'
|
|
3890
3174
|
];
|
|
3891
3175
|
},
|
|
3892
3176
|
{
|
|
@@ -3941,13 +3225,13 @@ type LightSystemProgram = {
|
|
|
3941
3225
|
isMut: true;
|
|
3942
3226
|
isSigner: false;
|
|
3943
3227
|
isOptional: true;
|
|
3944
|
-
}
|
|
3228
|
+
}
|
|
3945
3229
|
];
|
|
3946
3230
|
args: [
|
|
3947
3231
|
{
|
|
3948
3232
|
name: 'inputs';
|
|
3949
3233
|
type: 'bytes';
|
|
3950
|
-
}
|
|
3234
|
+
}
|
|
3951
3235
|
];
|
|
3952
3236
|
},
|
|
3953
3237
|
{
|
|
@@ -3955,7 +3239,7 @@ type LightSystemProgram = {
|
|
|
3955
3239
|
docs: [
|
|
3956
3240
|
'This function is a stub to allow Anchor to include the input types in',
|
|
3957
3241
|
'the IDL. It should not be included in production builds nor be called in',
|
|
3958
|
-
'practice.'
|
|
3242
|
+
'practice.'
|
|
3959
3243
|
];
|
|
3960
3244
|
accounts: [
|
|
3961
3245
|
{
|
|
@@ -3963,7 +3247,7 @@ type LightSystemProgram = {
|
|
|
3963
3247
|
isMut: true;
|
|
3964
3248
|
isSigner: true;
|
|
3965
3249
|
docs: [
|
|
3966
|
-
'Fee payer needs to be mutable to pay rollover and protocol fees.'
|
|
3250
|
+
'Fee payer needs to be mutable to pay rollover and protocol fees.'
|
|
3967
3251
|
];
|
|
3968
3252
|
},
|
|
3969
3253
|
{
|
|
@@ -3986,7 +3270,7 @@ type LightSystemProgram = {
|
|
|
3986
3270
|
isMut: false;
|
|
3987
3271
|
isSigner: false;
|
|
3988
3272
|
docs: [
|
|
3989
|
-
'This pda is used to invoke the account compression program.'
|
|
3273
|
+
'This pda is used to invoke the account compression program.'
|
|
3990
3274
|
];
|
|
3991
3275
|
},
|
|
3992
3276
|
{
|
|
@@ -4002,7 +3286,7 @@ type LightSystemProgram = {
|
|
|
4002
3286
|
isOptional: true;
|
|
4003
3287
|
docs: [
|
|
4004
3288
|
'Sol pool pda is used to store the native sol that has been compressed.',
|
|
4005
|
-
"It's only required when compressing or decompressing sol."
|
|
3289
|
+
"It's only required when compressing or decompressing sol."
|
|
4006
3290
|
];
|
|
4007
3291
|
},
|
|
4008
3292
|
{
|
|
@@ -4013,14 +3297,14 @@ type LightSystemProgram = {
|
|
|
4013
3297
|
docs: [
|
|
4014
3298
|
'Only needs to be provided for decompression as a recipient for the',
|
|
4015
3299
|
'decompressed sol.',
|
|
4016
|
-
'Compressed sol originate from authority.'
|
|
3300
|
+
'Compressed sol originate from authority.'
|
|
4017
3301
|
];
|
|
4018
3302
|
},
|
|
4019
3303
|
{
|
|
4020
3304
|
name: 'systemProgram';
|
|
4021
3305
|
isMut: false;
|
|
4022
3306
|
isSigner: false;
|
|
4023
|
-
}
|
|
3307
|
+
}
|
|
4024
3308
|
];
|
|
4025
3309
|
args: [
|
|
4026
3310
|
{
|
|
@@ -4040,9 +3324,9 @@ type LightSystemProgram = {
|
|
|
4040
3324
|
type: {
|
|
4041
3325
|
defined: 'PublicTransactionEvent';
|
|
4042
3326
|
};
|
|
4043
|
-
}
|
|
3327
|
+
}
|
|
4044
3328
|
];
|
|
4045
|
-
}
|
|
3329
|
+
}
|
|
4046
3330
|
];
|
|
4047
3331
|
accounts: [
|
|
4048
3332
|
{
|
|
@@ -4053,7 +3337,7 @@ type LightSystemProgram = {
|
|
|
4053
3337
|
'Collected instruction data is combined with the instruction data of the executing cpi,',
|
|
4054
3338
|
'and executed as a single transaction.',
|
|
4055
3339
|
'This enables to use input compressed accounts that are owned by multiple programs,',
|
|
4056
|
-
'with one zero-knowledge proof.'
|
|
3340
|
+
'with one zero-knowledge proof.'
|
|
4057
3341
|
];
|
|
4058
3342
|
type: {
|
|
4059
3343
|
kind: 'struct';
|
|
@@ -4073,10 +3357,10 @@ type LightSystemProgram = {
|
|
|
4073
3357
|
defined: 'InstructionDataInvokeCpi';
|
|
4074
3358
|
};
|
|
4075
3359
|
};
|
|
4076
|
-
}
|
|
3360
|
+
}
|
|
4077
3361
|
];
|
|
4078
3362
|
};
|
|
4079
|
-
}
|
|
3363
|
+
}
|
|
4080
3364
|
];
|
|
4081
3365
|
types: [
|
|
4082
3366
|
{
|
|
@@ -4131,7 +3415,7 @@ type LightSystemProgram = {
|
|
|
4131
3415
|
{
|
|
4132
3416
|
name: 'isCompress';
|
|
4133
3417
|
type: 'bool';
|
|
4134
|
-
}
|
|
3418
|
+
}
|
|
4135
3419
|
];
|
|
4136
3420
|
};
|
|
4137
3421
|
},
|
|
@@ -4157,7 +3441,7 @@ type LightSystemProgram = {
|
|
|
4157
3441
|
{
|
|
4158
3442
|
name: 'addressMerkleTreeRootIndex';
|
|
4159
3443
|
type: 'u16';
|
|
4160
|
-
}
|
|
3444
|
+
}
|
|
4161
3445
|
];
|
|
4162
3446
|
};
|
|
4163
3447
|
},
|
|
@@ -4175,7 +3459,7 @@ type LightSystemProgram = {
|
|
|
4175
3459
|
{
|
|
4176
3460
|
name: 'merkleTreeIndex';
|
|
4177
3461
|
type: 'u8';
|
|
4178
|
-
}
|
|
3462
|
+
}
|
|
4179
3463
|
];
|
|
4180
3464
|
};
|
|
4181
3465
|
},
|
|
@@ -4201,7 +3485,7 @@ type LightSystemProgram = {
|
|
|
4201
3485
|
type: {
|
|
4202
3486
|
array: ['u8', 32];
|
|
4203
3487
|
};
|
|
4204
|
-
}
|
|
3488
|
+
}
|
|
4205
3489
|
];
|
|
4206
3490
|
};
|
|
4207
3491
|
},
|
|
@@ -4265,7 +3549,7 @@ type LightSystemProgram = {
|
|
|
4265
3549
|
defined: 'CompressedCpiContext';
|
|
4266
3550
|
};
|
|
4267
3551
|
};
|
|
4268
|
-
}
|
|
3552
|
+
}
|
|
4269
3553
|
];
|
|
4270
3554
|
};
|
|
4271
3555
|
},
|
|
@@ -4278,7 +3562,7 @@ type LightSystemProgram = {
|
|
|
4278
3562
|
name: 'setContext';
|
|
4279
3563
|
docs: [
|
|
4280
3564
|
'Is set by the program that is invoking the CPI to signal that is should',
|
|
4281
|
-
'set the cpi context.'
|
|
3565
|
+
'set the cpi context.'
|
|
4282
3566
|
];
|
|
4283
3567
|
type: 'bool';
|
|
4284
3568
|
},
|
|
@@ -4286,17 +3570,17 @@ type LightSystemProgram = {
|
|
|
4286
3570
|
name: 'firstSetContext';
|
|
4287
3571
|
docs: [
|
|
4288
3572
|
'Is set to wipe the cpi context since someone could have set it before',
|
|
4289
|
-
'with unrelated data.'
|
|
3573
|
+
'with unrelated data.'
|
|
4290
3574
|
];
|
|
4291
3575
|
type: 'bool';
|
|
4292
3576
|
},
|
|
4293
3577
|
{
|
|
4294
3578
|
name: 'cpiContextAccountIndex';
|
|
4295
3579
|
docs: [
|
|
4296
|
-
'Index of cpi context account in remaining accounts.'
|
|
3580
|
+
'Index of cpi context account in remaining accounts.'
|
|
4297
3581
|
];
|
|
4298
3582
|
type: 'u8';
|
|
4299
|
-
}
|
|
3583
|
+
}
|
|
4300
3584
|
];
|
|
4301
3585
|
};
|
|
4302
3586
|
},
|
|
@@ -4328,7 +3612,7 @@ type LightSystemProgram = {
|
|
|
4328
3612
|
defined: 'CompressedAccountData';
|
|
4329
3613
|
};
|
|
4330
3614
|
};
|
|
4331
|
-
}
|
|
3615
|
+
}
|
|
4332
3616
|
];
|
|
4333
3617
|
};
|
|
4334
3618
|
},
|
|
@@ -4352,7 +3636,7 @@ type LightSystemProgram = {
|
|
|
4352
3636
|
type: {
|
|
4353
3637
|
array: ['u8', 32];
|
|
4354
3638
|
};
|
|
4355
|
-
}
|
|
3639
|
+
}
|
|
4356
3640
|
];
|
|
4357
3641
|
};
|
|
4358
3642
|
},
|
|
@@ -4376,17 +3660,17 @@ type LightSystemProgram = {
|
|
|
4376
3660
|
{
|
|
4377
3661
|
name: 'rootIndex';
|
|
4378
3662
|
docs: [
|
|
4379
|
-
'Index of root used in inclusion validity proof.'
|
|
3663
|
+
'Index of root used in inclusion validity proof.'
|
|
4380
3664
|
];
|
|
4381
3665
|
type: 'u16';
|
|
4382
3666
|
},
|
|
4383
3667
|
{
|
|
4384
3668
|
name: 'readOnly';
|
|
4385
3669
|
docs: [
|
|
4386
|
-
'Placeholder to mark accounts read-only unimplemented set to false.'
|
|
3670
|
+
'Placeholder to mark accounts read-only unimplemented set to false.'
|
|
4387
3671
|
];
|
|
4388
3672
|
type: 'bool';
|
|
4389
|
-
}
|
|
3673
|
+
}
|
|
4390
3674
|
];
|
|
4391
3675
|
};
|
|
4392
3676
|
},
|
|
@@ -4414,7 +3698,7 @@ type LightSystemProgram = {
|
|
|
4414
3698
|
defined: 'QueueIndex';
|
|
4415
3699
|
};
|
|
4416
3700
|
};
|
|
4417
|
-
}
|
|
3701
|
+
}
|
|
4418
3702
|
];
|
|
4419
3703
|
};
|
|
4420
3704
|
},
|
|
@@ -4432,7 +3716,7 @@ type LightSystemProgram = {
|
|
|
4432
3716
|
name: 'index';
|
|
4433
3717
|
docs: ['Index of compressed account hash in queue.'];
|
|
4434
3718
|
type: 'u16';
|
|
4435
|
-
}
|
|
3719
|
+
}
|
|
4436
3720
|
];
|
|
4437
3721
|
};
|
|
4438
3722
|
},
|
|
@@ -4448,7 +3732,7 @@ type LightSystemProgram = {
|
|
|
4448
3732
|
{
|
|
4449
3733
|
name: 'seq';
|
|
4450
3734
|
type: 'u64';
|
|
4451
|
-
}
|
|
3735
|
+
}
|
|
4452
3736
|
];
|
|
4453
3737
|
};
|
|
4454
3738
|
},
|
|
@@ -4522,10 +3806,10 @@ type LightSystemProgram = {
|
|
|
4522
3806
|
type: {
|
|
4523
3807
|
option: 'bytes';
|
|
4524
3808
|
};
|
|
4525
|
-
}
|
|
3809
|
+
}
|
|
4526
3810
|
];
|
|
4527
3811
|
};
|
|
4528
|
-
}
|
|
3812
|
+
}
|
|
4529
3813
|
];
|
|
4530
3814
|
errors: [
|
|
4531
3815
|
{
|
|
@@ -4715,259 +3999,9 @@ type LightSystemProgram = {
|
|
|
4715
3999
|
{
|
|
4716
4000
|
code: 6038;
|
|
4717
4001
|
name: 'InvalidStateTreeHeight';
|
|
4718
|
-
}
|
|
4002
|
+
}
|
|
4719
4003
|
];
|
|
4720
4004
|
};
|
|
4721
4005
|
declare const IDL: LightSystemProgram;
|
|
4722
4006
|
|
|
4723
|
-
export {
|
|
4724
|
-
ADDRESS_QUEUE_ROLLOVER_FEE,
|
|
4725
|
-
ADDRESS_TREE_NETWORK_FEE,
|
|
4726
|
-
ALICE,
|
|
4727
|
-
AccountProofResult,
|
|
4728
|
-
type ActiveTreeBundle,
|
|
4729
|
-
type AddressWithTree,
|
|
4730
|
-
AppendLeavesInputLayout,
|
|
4731
|
-
AppendNullifyCreateAddressInputsMetaLayout,
|
|
4732
|
-
type BN254,
|
|
4733
|
-
BOB,
|
|
4734
|
-
BalanceResult,
|
|
4735
|
-
CHARLIE,
|
|
4736
|
-
COMPUTE_BUDGET_PATTERN,
|
|
4737
|
-
type ClientSubscriptionId,
|
|
4738
|
-
type CompressedAccount,
|
|
4739
|
-
type CompressedAccountData,
|
|
4740
|
-
CompressedAccountLayout,
|
|
4741
|
-
CompressedAccountResult,
|
|
4742
|
-
type CompressedAccountWithMerkleContext,
|
|
4743
|
-
CompressedAccountsByOwnerResult,
|
|
4744
|
-
type CompressedCpiContext,
|
|
4745
|
-
type CompressedMintTokenHolders,
|
|
4746
|
-
CompressedMintTokenHoldersResult,
|
|
4747
|
-
type CompressedProof,
|
|
4748
|
-
type CompressedProofWithContext,
|
|
4749
|
-
CompressedTokenAccountResult,
|
|
4750
|
-
CompressedTokenAccountsByOwnerOrDelegateResult,
|
|
4751
|
-
type CompressedTransaction,
|
|
4752
|
-
CompressedTransactionResult,
|
|
4753
|
-
type CompressionApiInterface,
|
|
4754
|
-
CreateUtxoError,
|
|
4755
|
-
CreateUtxoErrorCode,
|
|
4756
|
-
DAVE,
|
|
4757
|
-
DEFAULT_MERKLE_TREE_HEIGHT,
|
|
4758
|
-
DEFAULT_MERKLE_TREE_ROOTS,
|
|
4759
|
-
DEFAULT_ZERO,
|
|
4760
|
-
type EventWithParsedTokenTlvData,
|
|
4761
|
-
FIELD_SIZE,
|
|
4762
|
-
type GetCompressedAccountConfig,
|
|
4763
|
-
type GetCompressedAccountsByOwnerConfig,
|
|
4764
|
-
type GetCompressedAccountsConfig,
|
|
4765
|
-
type GetCompressedAccountsFilter,
|
|
4766
|
-
type GetCompressedTokenAccountsByOwnerOrDelegateOptions,
|
|
4767
|
-
HIGHEST_ADDRESS_PLUS_ONE,
|
|
4768
|
-
HashError,
|
|
4769
|
-
HashErrorCode,
|
|
4770
|
-
type HashWithTree,
|
|
4771
|
-
HealthResult,
|
|
4772
|
-
type HexBatchInputsForProver,
|
|
4773
|
-
type HexInputsForProver,
|
|
4774
|
-
IDL,
|
|
4775
|
-
INSERT_INTO_QUEUES_DISCRIMINATOR,
|
|
4776
|
-
INVOKE_CPI_DISCRIMINATOR,
|
|
4777
|
-
INVOKE_DISCRIMINATOR,
|
|
4778
|
-
IndexedArray,
|
|
4779
|
-
IndexedElement,
|
|
4780
|
-
IndexedElementBundle,
|
|
4781
|
-
type InputTokenDataWithContext,
|
|
4782
|
-
InsertAddressInputLayout,
|
|
4783
|
-
InsertNullifierInputLayout,
|
|
4784
|
-
type InstructionDataInvoke,
|
|
4785
|
-
type InstructionDataInvokeCpi,
|
|
4786
|
-
InstructionDataInvokeCpiLayout,
|
|
4787
|
-
InstructionDataInvokeLayout,
|
|
4788
|
-
type LatestNonVotingSignatures,
|
|
4789
|
-
type LatestNonVotingSignaturesPaginated,
|
|
4790
|
-
LatestNonVotingSignaturesResult,
|
|
4791
|
-
LatestNonVotingSignaturesResultPaginated,
|
|
4792
|
-
LightSystemProgram$1 as LightSystemProgram,
|
|
4793
|
-
type LightSystemProgram as LightSystemProgramIDL,
|
|
4794
|
-
type LightWasm,
|
|
4795
|
-
LookupTableError,
|
|
4796
|
-
LookupTableErrorCode,
|
|
4797
|
-
MerkeProofResult,
|
|
4798
|
-
type MerkleContext,
|
|
4799
|
-
MerkleContextLayout,
|
|
4800
|
-
type MerkleContextWithMerkleProof,
|
|
4801
|
-
type MerkleContextWithNewAddressProof,
|
|
4802
|
-
MerkleTree,
|
|
4803
|
-
MerkleTreeError,
|
|
4804
|
-
MerkleTreeErrorCode,
|
|
4805
|
-
type MerkleTreeSequenceNumber,
|
|
4806
|
-
MerkleTreeSequenceNumberLayout,
|
|
4807
|
-
MultipleCompressedAccountsResult,
|
|
4808
|
-
MultipleMerkleProofsResult,
|
|
4809
|
-
NativeBalanceResult,
|
|
4810
|
-
type NewAddressParams,
|
|
4811
|
-
NewAddressParamsLayout,
|
|
4812
|
-
type NewAddressParamsPacked,
|
|
4813
|
-
NewAddressProofResult,
|
|
4814
|
-
type NonInclusionJsonStruct,
|
|
4815
|
-
type NonInclusionMerkleProofInputs,
|
|
4816
|
-
type OutputCompressedAccountWithPackedContext,
|
|
4817
|
-
type PackedCompressedAccountWithMerkleContext,
|
|
4818
|
-
type PackedMerkleContext,
|
|
4819
|
-
type PaginatedOptions,
|
|
4820
|
-
type ParsedTokenAccount,
|
|
4821
|
-
ProofError,
|
|
4822
|
-
ProofErrorCode,
|
|
4823
|
-
type PublicTransactionEvent,
|
|
4824
|
-
PublicTransactionEventLayout,
|
|
4825
|
-
type QueueIndex,
|
|
4826
|
-
Rpc,
|
|
4827
|
-
RpcError,
|
|
4828
|
-
RpcErrorCode,
|
|
4829
|
-
type RpcResult,
|
|
4830
|
-
type RpcResultError,
|
|
4831
|
-
type RpcResultSuccess,
|
|
4832
|
-
STATE_MERKLE_TREE_NETWORK_FEE,
|
|
4833
|
-
STATE_MERKLE_TREE_ROLLOVER_FEE,
|
|
4834
|
-
SelectInUtxosError,
|
|
4835
|
-
SelectInUtxosErrorCode,
|
|
4836
|
-
SignatureListResult,
|
|
4837
|
-
SignatureListWithCursorResult,
|
|
4838
|
-
type SignatureWithMetadata,
|
|
4839
|
-
SlotResult,
|
|
4840
|
-
type StateTreeLUTPair,
|
|
4841
|
-
TRANSACTION_MERKLE_TREE_ROLLOVER_THRESHOLD,
|
|
4842
|
-
TestRpc,
|
|
4843
|
-
type TestRpcConfig,
|
|
4844
|
-
type TokenBalance,
|
|
4845
|
-
TokenBalanceListResult,
|
|
4846
|
-
TokenBalanceListResultV2,
|
|
4847
|
-
TokenBalanceResult,
|
|
4848
|
-
type TokenData$1 as TokenData,
|
|
4849
|
-
TokenDataLayout,
|
|
4850
|
-
TokenDataResult,
|
|
4851
|
-
TreeType,
|
|
4852
|
-
UTXO_MERGE_MAXIMUM,
|
|
4853
|
-
UTXO_MERGE_THRESHOLD,
|
|
4854
|
-
UtilsError,
|
|
4855
|
-
UtilsErrorCode,
|
|
4856
|
-
UtxoError,
|
|
4857
|
-
UtxoErrorCode,
|
|
4858
|
-
ValidityProofResult,
|
|
4859
|
-
type WithContext,
|
|
4860
|
-
type WithCursor,
|
|
4861
|
-
type WithRpcContext,
|
|
4862
|
-
accountCompressionProgram,
|
|
4863
|
-
addressQueue,
|
|
4864
|
-
addressTree,
|
|
4865
|
-
airdropSol,
|
|
4866
|
-
bn,
|
|
4867
|
-
bufToDecStr,
|
|
4868
|
-
buildAndSignTx,
|
|
4869
|
-
buildTx,
|
|
4870
|
-
byteArrayToKeypair,
|
|
4871
|
-
calculateComputeUnitPrice,
|
|
4872
|
-
checkValidityProofShape,
|
|
4873
|
-
compress,
|
|
4874
|
-
confirmConfig,
|
|
4875
|
-
confirmTransaction,
|
|
4876
|
-
confirmTx,
|
|
4877
|
-
convertMerkleProofsWithContextToHex,
|
|
4878
|
-
convertNonInclusionMerkleProofInputsToHex,
|
|
4879
|
-
convertToPublicTransactionEvent,
|
|
4880
|
-
cpiContext2Pubkey,
|
|
4881
|
-
cpiContextPubkey,
|
|
4882
|
-
createAccount,
|
|
4883
|
-
createAccountWithLamports,
|
|
4884
|
-
createBN254,
|
|
4885
|
-
createCompressedAccount,
|
|
4886
|
-
createCompressedAccountWithMerkleContext,
|
|
4887
|
-
createMerkleContext,
|
|
4888
|
-
createRpc,
|
|
4889
|
-
createRpcResult,
|
|
4890
|
-
createStateTreeLookupTable,
|
|
4891
|
-
decodeInstructionDataInvoke,
|
|
4892
|
-
decodeInstructionDataInvokeCpi,
|
|
4893
|
-
decodePublicTransactionEvent,
|
|
4894
|
-
decompress,
|
|
4895
|
-
dedupeSigner,
|
|
4896
|
-
deepEqual,
|
|
4897
|
-
defaultStateTreeLookupTables,
|
|
4898
|
-
defaultStaticAccounts,
|
|
4899
|
-
defaultStaticAccountsStruct,
|
|
4900
|
-
defaultTestStateTreeAccounts,
|
|
4901
|
-
defaultTestStateTreeAccounts2,
|
|
4902
|
-
deriveAddress,
|
|
4903
|
-
deriveAddressSeed,
|
|
4904
|
-
deserializeAppendNullifyCreateAddressInputsIndexer,
|
|
4905
|
-
encodeBN254toBase58,
|
|
4906
|
-
encodeInstructionDataInvoke,
|
|
4907
|
-
encodePublicTransactionEvent,
|
|
4908
|
-
extendStateTreeLookupTable,
|
|
4909
|
-
getAccountCompressionAuthority,
|
|
4910
|
-
getCompressedTokenAccountByHashTest,
|
|
4911
|
-
getCompressedTokenAccounts,
|
|
4912
|
-
getCompressedTokenAccountsByDelegateTest,
|
|
4913
|
-
getCompressedTokenAccountsByOwnerTest,
|
|
4914
|
-
getConnection,
|
|
4915
|
-
getIndexOrAdd,
|
|
4916
|
-
getLightStateTreeInfo,
|
|
4917
|
-
getParsedEvents,
|
|
4918
|
-
getPublicInputHash,
|
|
4919
|
-
getQueueForTree,
|
|
4920
|
-
getRegisteredProgramPda,
|
|
4921
|
-
getTestKeypair,
|
|
4922
|
-
getTestRpc,
|
|
4923
|
-
getTreeForQueue,
|
|
4924
|
-
hashToBn254FieldSizeBe,
|
|
4925
|
-
hashvToBn254FieldSizeBe,
|
|
4926
|
-
invokeAccountsLayout,
|
|
4927
|
-
type invokeAccountsLayoutParams,
|
|
4928
|
-
isLocalTest,
|
|
4929
|
-
jsonRpcResult,
|
|
4930
|
-
jsonRpcResultAndContext,
|
|
4931
|
-
lightProgram,
|
|
4932
|
-
localTestActiveStateTreeInfo,
|
|
4933
|
-
merkleTree2Pubkey,
|
|
4934
|
-
merkletreePubkey,
|
|
4935
|
-
negateAndCompressProof,
|
|
4936
|
-
newAccountWithLamports,
|
|
4937
|
-
noopProgram,
|
|
4938
|
-
nullifiedStateTreeLookupTableDevnet,
|
|
4939
|
-
nullifiedStateTreeLookupTableMainnet,
|
|
4940
|
-
nullifierQueue2Pubkey,
|
|
4941
|
-
nullifierQueuePubkey,
|
|
4942
|
-
nullifyLookupTable,
|
|
4943
|
-
packCompressedAccounts,
|
|
4944
|
-
packNewAddressParams,
|
|
4945
|
-
padOutputStateMerkleTrees,
|
|
4946
|
-
parseAccountData,
|
|
4947
|
-
parseEvents,
|
|
4948
|
-
parseLightTransaction,
|
|
4949
|
-
parsePublicTransactionEventWithIdl,
|
|
4950
|
-
parseTokenLayoutWithIdl,
|
|
4951
|
-
pickRandomTreeAndQueue,
|
|
4952
|
-
pipe,
|
|
4953
|
-
placeholderValidityProof,
|
|
4954
|
-
proofFromJsonStruct,
|
|
4955
|
-
proverRequest,
|
|
4956
|
-
pushUniqueItems,
|
|
4957
|
-
rpcRequest,
|
|
4958
|
-
selectMinCompressedSolAccountsForTransfer,
|
|
4959
|
-
sendAndConfirmTx,
|
|
4960
|
-
sleep,
|
|
4961
|
-
stateTreeLookupTableDevnet,
|
|
4962
|
-
stateTreeLookupTableMainnet,
|
|
4963
|
-
sumUpLamports,
|
|
4964
|
-
toAccountMetas,
|
|
4965
|
-
toArray,
|
|
4966
|
-
toCamelCase,
|
|
4967
|
-
toHex,
|
|
4968
|
-
toUnixTimestamp,
|
|
4969
|
-
transfer,
|
|
4970
|
-
validateSameOwner,
|
|
4971
|
-
validateSufficientBalance,
|
|
4972
|
-
wrapBigNumbersAsStrings,
|
|
4973
|
-
};
|
|
4007
|
+
export { ADDRESS_QUEUE_ROLLOVER_FEE, ADDRESS_TREE_NETWORK_FEE, ALICE, AccountProofResult, type ActiveTreeBundle, type AddressWithTree, AppendLeavesInputLayout, AppendNullifyCreateAddressInputsMetaLayout, type BN254, BOB, BalanceResult, CHARLIE, COMPUTE_BUDGET_PATTERN, type ClientSubscriptionId, type CompressedAccount, type CompressedAccountData, CompressedAccountLayout, CompressedAccountResult, type CompressedAccountWithMerkleContext, CompressedAccountsByOwnerResult, type CompressedCpiContext, type CompressedMintTokenHolders, CompressedMintTokenHoldersResult, type CompressedProof, type CompressedProofWithContext, CompressedTokenAccountResult, CompressedTokenAccountsByOwnerOrDelegateResult, type CompressedTransaction, CompressedTransactionResult, 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, HealthResult, type HexBatchInputsForProver, type HexInputsForProver, IDL, INSERT_INTO_QUEUES_DISCRIMINATOR, INVOKE_CPI_DISCRIMINATOR, INVOKE_DISCRIMINATOR, IndexedArray, IndexedElement, IndexedElementBundle, type InputTokenDataWithContext, InsertAddressInputLayout, InsertNullifierInputLayout, type InstructionDataInvoke, type InstructionDataInvokeCpi, InstructionDataInvokeCpiLayout, InstructionDataInvokeLayout, type LatestNonVotingSignatures, type LatestNonVotingSignaturesPaginated, LatestNonVotingSignaturesResult, LatestNonVotingSignaturesResultPaginated, LightSystemProgram$1 as LightSystemProgram, type LightSystemProgram as LightSystemProgramIDL, type LightWasm, LookupTableError, LookupTableErrorCode, MerkeProofResult, type MerkleContext, MerkleContextLayout, type MerkleContextWithMerkleProof, type MerkleContextWithNewAddressProof, MerkleTree, MerkleTreeError, MerkleTreeErrorCode, type MerkleTreeSequenceNumber, MerkleTreeSequenceNumberLayout, MultipleCompressedAccountsResult, MultipleMerkleProofsResult, NativeBalanceResult, type NewAddressParams, NewAddressParamsLayout, type NewAddressParamsPacked, NewAddressProofResult, type NonInclusionJsonStruct, type NonInclusionMerkleProofInputs, type OutputCompressedAccountWithPackedContext, type PackedCompressedAccountWithMerkleContext, type PackedMerkleContext, type PaginatedOptions, type ParsedTokenAccount, ProofError, ProofErrorCode, type PublicTransactionEvent, PublicTransactionEventLayout, type QueueIndex, 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 StateTreeLUTPair, TRANSACTION_MERKLE_TREE_ROLLOVER_THRESHOLD, TestRpc, type TestRpcConfig, type TokenBalance, TokenBalanceListResult, TokenBalanceListResultV2, TokenBalanceResult, type TokenData$1 as TokenData, TokenDataLayout, TokenDataResult, TreeType, UTXO_MERGE_MAXIMUM, UTXO_MERGE_THRESHOLD, UtilsError, UtilsErrorCode, UtxoError, UtxoErrorCode, ValidityProofResult, type WithContext, type WithCursor, type WithRpcContext, accountCompressionProgram, addressQueue, addressTree, airdropSol, bn, bufToDecStr, buildAndSignTx, buildTx, byteArrayToKeypair, calculateComputeUnitPrice, checkValidityProofShape, compress, confirmConfig, confirmTransaction, confirmTx, convertMerkleProofsWithContextToHex, convertNonInclusionMerkleProofInputsToHex, convertToPublicTransactionEvent, cpiContext2Pubkey, cpiContextPubkey, createAccount, createAccountWithLamports, createBN254, createCompressedAccount, createCompressedAccountWithMerkleContext, createMerkleContext, createRpc, createRpcResult, createStateTreeLookupTable, decodeInstructionDataInvoke, decodeInstructionDataInvokeCpi, decodePublicTransactionEvent, decompress, dedupeSigner, deepEqual, defaultStateTreeLookupTables, defaultStaticAccounts, defaultStaticAccountsStruct, defaultTestStateTreeAccounts, defaultTestStateTreeAccounts2, deriveAddress, deriveAddressSeed, deserializeAppendNullifyCreateAddressInputsIndexer, encodeBN254toBase58, encodeInstructionDataInvoke, encodePublicTransactionEvent, extendStateTreeLookupTable, getAccountCompressionAuthority, getCompressedTokenAccountByHashTest, getCompressedTokenAccounts, getCompressedTokenAccountsByDelegateTest, getCompressedTokenAccountsByOwnerTest, getConnection, getIndexOrAdd, getLightStateTreeInfo, getParsedEvents, getPublicInputHash, getQueueForTree, getRegisteredProgramPda, getTestKeypair, getTestRpc, getTreeForQueue, hashToBn254FieldSizeBe, hashvToBn254FieldSizeBe, invokeAccountsLayout, type invokeAccountsLayoutParams, isLocalTest, isSmallerThanBn254FieldSizeBe, jsonRpcResult, jsonRpcResultAndContext, lightProgram, localTestActiveStateTreeInfo, merkleTree2Pubkey, merkletreePubkey, negateAndCompressProof, newAccountWithLamports, noopProgram, nullifiedStateTreeLookupTableDevnet, nullifiedStateTreeLookupTableMainnet, nullifierQueue2Pubkey, nullifierQueuePubkey, nullifyLookupTable, packCompressedAccounts, packNewAddressParams, padOutputStateMerkleTrees, parseAccountData, parseEvents, parseLightTransaction, parsePublicTransactionEventWithIdl, parseTokenLayoutWithIdl, pickRandomTreeAndQueue, pipe, placeholderValidityProof, proofFromJsonStruct, proverRequest, pushUniqueItems, rpcRequest, selectMinCompressedSolAccountsForTransfer, sendAndConfirmTx, sleep, stateTreeLookupTableDevnet, stateTreeLookupTableMainnet, sumUpLamports, toAccountMetas, toArray, toCamelCase, toHex, toUnixTimestamp, transfer, validateNumbers, validateNumbersForInclusionProof, validateNumbersForNonInclusionProof, validateNumbersForProof, validateSameOwner, validateSufficientBalance, wrapBigNumbersAsStrings };
|