@lightprotocol/stateless.js 0.20.1 → 0.20.3
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 +4 -1
- package/dist/cjs/browser/actions/compress.d.ts +14 -2
- package/dist/cjs/browser/actions/create-account.d.ts +27 -3
- package/dist/cjs/browser/actions/decompress.d.ts +14 -2
- package/dist/cjs/browser/actions/transfer.d.ts +15 -2
- package/dist/cjs/browser/constants.d.ts +30 -15
- package/dist/cjs/browser/errors.d.ts +40 -49
- package/dist/cjs/browser/idl.d.ts +45 -45
- package/dist/cjs/browser/index.cjs +9611 -1
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/browser/index.d.ts +0 -1
- package/dist/cjs/browser/instruction/pack-compressed-accounts.d.ts +24 -5
- package/dist/cjs/browser/programs/layout.d.ts +39 -17
- package/dist/cjs/browser/programs/system.d.ts +61 -10
- package/dist/cjs/browser/rpc-interface.d.ts +1127 -871
- package/dist/cjs/browser/rpc.d.ts +164 -34
- package/dist/cjs/browser/state/BN254.d.ts +9 -2
- package/dist/cjs/browser/state/compressed-account.d.ts +23 -6
- package/dist/cjs/browser/state/types.d.ts +1 -1
- package/dist/cjs/browser/test-helpers/merkle-tree/indexed-array.d.ts +18 -4
- package/dist/cjs/browser/test-helpers/merkle-tree/merkle-tree.d.ts +19 -6
- package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-accounts.d.ts +12 -3
- package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +21 -5
- package/dist/cjs/browser/test-helpers/test-rpc/get-parsed-events.d.ts +14 -4
- package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +135 -31
- package/dist/cjs/browser/test-helpers/test-utils.d.ts +5 -1
- package/dist/cjs/browser/utils/address.d.ts +12 -3
- package/dist/cjs/browser/utils/airdrop.d.ts +14 -2
- package/dist/cjs/browser/utils/calculate-compute-unit-price.d.ts +4 -1
- package/dist/cjs/browser/utils/conversion.d.ts +9 -3
- package/dist/cjs/browser/utils/get-light-state-tree-info.d.ts +28 -4
- package/dist/cjs/browser/utils/parse-validity-proof.d.ts +3 -1
- package/dist/cjs/browser/utils/pipe.d.ts +4 -1
- package/dist/cjs/browser/utils/send-and-confirm.d.ts +42 -11
- package/dist/cjs/browser/utils/validation.d.ts +9 -2
- package/dist/cjs/node/actions/common.d.ts +4 -1
- package/dist/cjs/node/actions/compress.d.ts +14 -2
- package/dist/cjs/node/actions/create-account.d.ts +27 -3
- package/dist/cjs/node/actions/decompress.d.ts +14 -2
- package/dist/cjs/node/actions/transfer.d.ts +15 -2
- package/dist/cjs/node/constants.d.ts +30 -15
- package/dist/cjs/node/errors.d.ts +40 -49
- package/dist/cjs/node/idl.d.ts +45 -45
- package/dist/cjs/node/index.cjs +8310 -1
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/node/index.d.ts +0 -1
- package/dist/cjs/node/instruction/pack-compressed-accounts.d.ts +24 -5
- package/dist/cjs/node/programs/layout.d.ts +39 -17
- package/dist/cjs/node/programs/system.d.ts +61 -10
- package/dist/cjs/node/rpc-interface.d.ts +1127 -871
- package/dist/cjs/node/rpc.d.ts +164 -34
- package/dist/cjs/node/state/BN254.d.ts +9 -2
- package/dist/cjs/node/state/compressed-account.d.ts +23 -6
- package/dist/cjs/node/state/types.d.ts +1 -1
- package/dist/cjs/node/test-helpers/merkle-tree/indexed-array.d.ts +18 -4
- package/dist/cjs/node/test-helpers/merkle-tree/merkle-tree.d.ts +19 -6
- package/dist/cjs/node/test-helpers/test-rpc/get-compressed-accounts.d.ts +12 -3
- package/dist/cjs/node/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +21 -5
- package/dist/cjs/node/test-helpers/test-rpc/get-parsed-events.d.ts +14 -4
- package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +135 -31
- package/dist/cjs/node/test-helpers/test-utils.d.ts +5 -1
- package/dist/cjs/node/utils/address.d.ts +12 -3
- package/dist/cjs/node/utils/airdrop.d.ts +14 -2
- package/dist/cjs/node/utils/calculate-compute-unit-price.d.ts +4 -1
- package/dist/cjs/node/utils/conversion.d.ts +9 -3
- package/dist/cjs/node/utils/get-light-state-tree-info.d.ts +28 -4
- package/dist/cjs/node/utils/parse-validity-proof.d.ts +3 -1
- package/dist/cjs/node/utils/pipe.d.ts +4 -1
- package/dist/cjs/node/utils/send-and-confirm.d.ts +42 -11
- package/dist/cjs/node/utils/validation.d.ts +9 -2
- package/dist/types/index.d.ts +2115 -1139
- package/package.json +1 -3
- package/dist/cjs/browser/logger.d.ts +0 -1
- package/dist/cjs/node/logger.d.ts +0 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { Signer } from '@solana/web3.js';
|
|
2
2
|
/** @internal remove signer from signers if part of signers */
|
|
3
|
-
export declare function dedupeSigner(
|
|
3
|
+
export declare function dedupeSigner(
|
|
4
|
+
signer: Signer,
|
|
5
|
+
signers: Signer[],
|
|
6
|
+
): Signer[];
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ConfirmOptions,
|
|
3
|
+
PublicKey,
|
|
4
|
+
Signer,
|
|
5
|
+
TransactionSignature,
|
|
6
|
+
} from '@solana/web3.js';
|
|
2
7
|
import { Rpc } from '../rpc';
|
|
3
8
|
import BN from 'bn.js';
|
|
4
9
|
/**
|
|
@@ -13,4 +18,11 @@ import BN from 'bn.js';
|
|
|
13
18
|
*
|
|
14
19
|
* @return Transaction signature
|
|
15
20
|
*/
|
|
16
|
-
export declare function compress(
|
|
21
|
+
export declare function compress(
|
|
22
|
+
rpc: Rpc,
|
|
23
|
+
payer: Signer,
|
|
24
|
+
lamports: number | BN,
|
|
25
|
+
toAddress: PublicKey,
|
|
26
|
+
outputStateTree?: PublicKey,
|
|
27
|
+
confirmOptions?: ConfirmOptions,
|
|
28
|
+
): Promise<TransactionSignature>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ConfirmOptions,
|
|
3
|
+
PublicKey,
|
|
4
|
+
Signer,
|
|
5
|
+
TransactionSignature,
|
|
6
|
+
} from '@solana/web3.js';
|
|
2
7
|
import { Rpc } from '../rpc';
|
|
3
8
|
import BN from 'bn.js';
|
|
4
9
|
/**
|
|
@@ -18,7 +23,16 @@ import BN from 'bn.js';
|
|
|
18
23
|
*
|
|
19
24
|
* @return Transaction signature
|
|
20
25
|
*/
|
|
21
|
-
export declare function createAccount(
|
|
26
|
+
export declare function createAccount(
|
|
27
|
+
rpc: Rpc,
|
|
28
|
+
payer: Signer,
|
|
29
|
+
seeds: Uint8Array[],
|
|
30
|
+
programId: PublicKey,
|
|
31
|
+
addressTree?: PublicKey,
|
|
32
|
+
addressQueue?: PublicKey,
|
|
33
|
+
outputStateTree?: PublicKey,
|
|
34
|
+
confirmOptions?: ConfirmOptions,
|
|
35
|
+
): Promise<TransactionSignature>;
|
|
22
36
|
/**
|
|
23
37
|
* Create compressed account with address and lamports
|
|
24
38
|
*
|
|
@@ -38,4 +52,14 @@ export declare function createAccount(rpc: Rpc, payer: Signer, seeds: Uint8Array
|
|
|
38
52
|
*
|
|
39
53
|
* @return Transaction signature
|
|
40
54
|
*/
|
|
41
|
-
export declare function createAccountWithLamports(
|
|
55
|
+
export declare function createAccountWithLamports(
|
|
56
|
+
rpc: Rpc,
|
|
57
|
+
payer: Signer,
|
|
58
|
+
seeds: Uint8Array[],
|
|
59
|
+
lamports: number | BN,
|
|
60
|
+
programId: PublicKey,
|
|
61
|
+
addressTree?: PublicKey,
|
|
62
|
+
addressQueue?: PublicKey,
|
|
63
|
+
outputStateTree?: PublicKey,
|
|
64
|
+
confirmOptions?: ConfirmOptions,
|
|
65
|
+
): Promise<TransactionSignature>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ConfirmOptions,
|
|
3
|
+
PublicKey,
|
|
4
|
+
Signer,
|
|
5
|
+
TransactionSignature,
|
|
6
|
+
} from '@solana/web3.js';
|
|
2
7
|
import { Rpc } from '../rpc';
|
|
3
8
|
import BN from 'bn.js';
|
|
4
9
|
/**
|
|
@@ -13,4 +18,11 @@ import BN from 'bn.js';
|
|
|
13
18
|
*
|
|
14
19
|
* @return Transaction signature
|
|
15
20
|
*/
|
|
16
|
-
export declare function decompress(
|
|
21
|
+
export declare function decompress(
|
|
22
|
+
rpc: Rpc,
|
|
23
|
+
payer: Signer,
|
|
24
|
+
lamports: number | BN,
|
|
25
|
+
recipient: PublicKey,
|
|
26
|
+
outputStateTree?: PublicKey,
|
|
27
|
+
confirmOptions?: ConfirmOptions,
|
|
28
|
+
): Promise<TransactionSignature>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ConfirmOptions,
|
|
3
|
+
PublicKey,
|
|
4
|
+
Signer,
|
|
5
|
+
TransactionSignature,
|
|
6
|
+
} from '@solana/web3.js';
|
|
2
7
|
import BN from 'bn.js';
|
|
3
8
|
import { Rpc } from '../rpc';
|
|
4
9
|
/**
|
|
@@ -17,4 +22,12 @@ import { Rpc } from '../rpc';
|
|
|
17
22
|
*
|
|
18
23
|
* @return Signature of the confirmed transaction
|
|
19
24
|
*/
|
|
20
|
-
export declare function transfer(
|
|
25
|
+
export declare function transfer(
|
|
26
|
+
rpc: Rpc,
|
|
27
|
+
payer: Signer,
|
|
28
|
+
lamports: number | BN,
|
|
29
|
+
owner: Signer,
|
|
30
|
+
toAddress: PublicKey,
|
|
31
|
+
merkleTree?: PublicKey,
|
|
32
|
+
confirmOptions?: ConfirmOptions,
|
|
33
|
+
): Promise<TransactionSignature>;
|
|
@@ -8,9 +8,12 @@ export declare const COMPUTE_BUDGET_PATTERN: number[];
|
|
|
8
8
|
export declare const INVOKE_DISCRIMINATOR: Buffer;
|
|
9
9
|
export declare const INVOKE_CPI_DISCRIMINATOR: Buffer;
|
|
10
10
|
export declare const INSERT_INTO_QUEUES_DISCRIMINATOR: Buffer;
|
|
11
|
-
export declare const noopProgram =
|
|
12
|
-
|
|
13
|
-
export declare const
|
|
11
|
+
export declare const noopProgram =
|
|
12
|
+
'noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV';
|
|
13
|
+
export declare const lightProgram =
|
|
14
|
+
'SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7';
|
|
15
|
+
export declare const accountCompressionProgram =
|
|
16
|
+
'compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq';
|
|
14
17
|
export declare const getRegisteredProgramPda: () => PublicKey;
|
|
15
18
|
export declare const getAccountCompressionAuthority: () => PublicKey;
|
|
16
19
|
export declare const defaultStaticAccounts: () => PublicKey[];
|
|
@@ -58,18 +61,30 @@ export declare const defaultTestStateTreeAccounts2: () => {
|
|
|
58
61
|
nullifierQueue2: PublicKey;
|
|
59
62
|
merkleTree2: PublicKey;
|
|
60
63
|
};
|
|
61
|
-
export declare const stateTreeLookupTableMainnet =
|
|
62
|
-
|
|
63
|
-
export declare const
|
|
64
|
-
|
|
65
|
-
export declare const
|
|
66
|
-
|
|
67
|
-
export declare const
|
|
68
|
-
|
|
69
|
-
export declare const
|
|
70
|
-
|
|
71
|
-
export declare const
|
|
72
|
-
|
|
64
|
+
export declare const stateTreeLookupTableMainnet =
|
|
65
|
+
'7i86eQs3GSqHjN47WdWLTCGMW6gde1q96G2EVnUyK2st';
|
|
66
|
+
export declare const nullifiedStateTreeLookupTableMainnet =
|
|
67
|
+
'H9QD4u1fG7KmkAzn2tDXhheushxFe1EcrjGGyEFXeMqT';
|
|
68
|
+
export declare const stateTreeLookupTableDevnet =
|
|
69
|
+
'8n8rH2bFRVA6cSGNDpgqcKHCndbFCT1bXxAQG89ejVsh';
|
|
70
|
+
export declare const nullifiedStateTreeLookupTableDevnet =
|
|
71
|
+
'5dhaJLBjnVBQFErr8oiCJmcVsx3Zj6xDekGB2zULPsnP';
|
|
72
|
+
export declare const nullifierQueuePubkey =
|
|
73
|
+
'nfq1NvQDJ2GEgnS8zt9prAe8rjjpAW1zFkrvZoBR148';
|
|
74
|
+
export declare const cpiContextPubkey =
|
|
75
|
+
'cpi1uHzrEhBG733DoEJNgHCyRS3XmmyVNZx5fonubE4';
|
|
76
|
+
export declare const merkletreePubkey =
|
|
77
|
+
'smt1NamzXdq4AMqS2fS2F1i5KTYPZRhoHgWx38d8WsT';
|
|
78
|
+
export declare const addressTree =
|
|
79
|
+
'amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2';
|
|
80
|
+
export declare const addressQueue =
|
|
81
|
+
'aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F';
|
|
82
|
+
export declare const merkleTree2Pubkey =
|
|
83
|
+
'smt2rJAFdyJJupwMKAqTNAJwvjhmiZ4JYGZmbVRw1Ho';
|
|
84
|
+
export declare const nullifierQueue2Pubkey =
|
|
85
|
+
'nfq2hgS7NYemXsFaFUCe3EMXSDSfnZnAe27jC6aPP1X';
|
|
86
|
+
export declare const cpiContext2Pubkey =
|
|
87
|
+
'cpi2cdhkH5roePvcudTgUL8ppEBfTay1desGh8G8QxK';
|
|
73
88
|
export declare const confirmConfig: ConfirmOptions;
|
|
74
89
|
export declare const DEFAULT_MERKLE_TREE_HEIGHT = 26;
|
|
75
90
|
export declare const DEFAULT_MERKLE_TREE_ROOTS = 2800;
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
export declare enum UtxoErrorCode {
|
|
2
|
-
NEGATIVE_LAMPORTS =
|
|
3
|
-
NOT_U64 =
|
|
4
|
-
BLINDING_EXCEEDS_FIELD_SIZE =
|
|
2
|
+
NEGATIVE_LAMPORTS = 'NEGATIVE_LAMPORTS',
|
|
3
|
+
NOT_U64 = 'NOT_U64',
|
|
4
|
+
BLINDING_EXCEEDS_FIELD_SIZE = 'BLINDING_EXCEEDS_FIELD_SIZE',
|
|
5
5
|
}
|
|
6
6
|
export declare enum SelectInUtxosErrorCode {
|
|
7
|
-
FAILED_TO_FIND_UTXO_COMBINATION =
|
|
8
|
-
INVALID_NUMBER_OF_IN_UTXOS =
|
|
7
|
+
FAILED_TO_FIND_UTXO_COMBINATION = 'FAILED_TO_FIND_UTXO_COMBINATION',
|
|
8
|
+
INVALID_NUMBER_OF_IN_UTXOS = 'INVALID_NUMBER_OF_IN_UTXOS',
|
|
9
9
|
}
|
|
10
10
|
export declare enum CreateUtxoErrorCode {
|
|
11
|
-
OWNER_UNDEFINED =
|
|
12
|
-
INVALID_OUTPUT_UTXO_LENGTH =
|
|
13
|
-
UTXO_DATA_UNDEFINED =
|
|
11
|
+
OWNER_UNDEFINED = 'OWNER_UNDEFINED',
|
|
12
|
+
INVALID_OUTPUT_UTXO_LENGTH = 'INVALID_OUTPUT_UTXO_LENGTH',
|
|
13
|
+
UTXO_DATA_UNDEFINED = 'UTXO_DATA_UNDEFINED',
|
|
14
14
|
}
|
|
15
15
|
export declare enum RpcErrorCode {
|
|
16
|
-
CONNECTION_UNDEFINED =
|
|
17
|
-
RPC_PUBKEY_UNDEFINED =
|
|
18
|
-
RPC_METHOD_NOT_IMPLEMENTED =
|
|
19
|
-
RPC_INVALID =
|
|
16
|
+
CONNECTION_UNDEFINED = 'CONNECTION_UNDEFINED',
|
|
17
|
+
RPC_PUBKEY_UNDEFINED = 'RPC_PUBKEY_UNDEFINED',
|
|
18
|
+
RPC_METHOD_NOT_IMPLEMENTED = 'RPC_METHOD_NOT_IMPLEMENTED',
|
|
19
|
+
RPC_INVALID = 'RPC_INVALID',
|
|
20
20
|
}
|
|
21
21
|
export declare enum LookupTableErrorCode {
|
|
22
|
-
LOOK_UP_TABLE_UNDEFINED =
|
|
23
|
-
LOOK_UP_TABLE_NOT_INITIALIZED =
|
|
22
|
+
LOOK_UP_TABLE_UNDEFINED = 'LOOK_UP_TABLE_UNDEFINED',
|
|
23
|
+
LOOK_UP_TABLE_NOT_INITIALIZED = 'LOOK_UP_TABLE_NOT_INITIALIZED',
|
|
24
24
|
}
|
|
25
25
|
export declare enum HashErrorCode {
|
|
26
|
-
NO_POSEIDON_HASHER_PROVIDED =
|
|
26
|
+
NO_POSEIDON_HASHER_PROVIDED = 'NO_POSEIDON_HASHER_PROVIDED',
|
|
27
27
|
}
|
|
28
28
|
export declare enum ProofErrorCode {
|
|
29
|
-
INVALID_PROOF =
|
|
30
|
-
PROOF_INPUT_UNDEFINED =
|
|
31
|
-
PROOF_GENERATION_FAILED =
|
|
29
|
+
INVALID_PROOF = 'INVALID_PROOF',
|
|
30
|
+
PROOF_INPUT_UNDEFINED = 'PROOF_INPUT_UNDEFINED',
|
|
31
|
+
PROOF_GENERATION_FAILED = 'PROOF_GENERATION_FAILED',
|
|
32
32
|
}
|
|
33
33
|
export declare enum MerkleTreeErrorCode {
|
|
34
|
-
MERKLE_TREE_NOT_INITIALIZED =
|
|
35
|
-
SOL_MERKLE_TREE_UNDEFINED =
|
|
36
|
-
MERKLE_TREE_UNDEFINED =
|
|
37
|
-
INPUT_UTXO_NOT_INSERTED_IN_MERKLE_TREE =
|
|
38
|
-
MERKLE_TREE_INDEX_UNDEFINED =
|
|
39
|
-
MERKLE_TREE_SET_SPACE_UNDEFINED =
|
|
34
|
+
MERKLE_TREE_NOT_INITIALIZED = 'MERKLE_TREE_NOT_INITIALIZED',
|
|
35
|
+
SOL_MERKLE_TREE_UNDEFINED = 'SOL_MERKLE_TREE_UNDEFINED',
|
|
36
|
+
MERKLE_TREE_UNDEFINED = 'MERKLE_TREE_UNDEFINED',
|
|
37
|
+
INPUT_UTXO_NOT_INSERTED_IN_MERKLE_TREE = 'INPUT_UTXO_NOT_INSERTED_IN_MERKLE_TREE',
|
|
38
|
+
MERKLE_TREE_INDEX_UNDEFINED = 'MERKLE_TREE_INDEX_UNDEFINED',
|
|
39
|
+
MERKLE_TREE_SET_SPACE_UNDEFINED = 'MERKLE_TREE_SET_SPACE_UNDEFINED',
|
|
40
40
|
}
|
|
41
41
|
export declare enum UtilsErrorCode {
|
|
42
|
-
ACCOUNT_NAME_UNDEFINED_IN_IDL =
|
|
43
|
-
PROPERTY_UNDEFINED =
|
|
44
|
-
LOOK_UP_TABLE_CREATION_FAILED =
|
|
45
|
-
UNSUPPORTED_ARCHITECTURE =
|
|
46
|
-
UNSUPPORTED_PLATFORM =
|
|
47
|
-
ACCOUNTS_UNDEFINED =
|
|
48
|
-
INVALID_NUMBER =
|
|
42
|
+
ACCOUNT_NAME_UNDEFINED_IN_IDL = 'ACCOUNT_NAME_UNDEFINED_IN_IDL',
|
|
43
|
+
PROPERTY_UNDEFINED = 'PROPERTY_UNDEFINED',
|
|
44
|
+
LOOK_UP_TABLE_CREATION_FAILED = 'LOOK_UP_TABLE_CREATION_FAILED',
|
|
45
|
+
UNSUPPORTED_ARCHITECTURE = 'UNSUPPORTED_ARCHITECTURE',
|
|
46
|
+
UNSUPPORTED_PLATFORM = 'UNSUPPORTED_PLATFORM',
|
|
47
|
+
ACCOUNTS_UNDEFINED = 'ACCOUNTS_UNDEFINED',
|
|
48
|
+
INVALID_NUMBER = 'INVALID_NUMBER',
|
|
49
49
|
}
|
|
50
50
|
declare class MetaError extends Error {
|
|
51
51
|
code: string;
|
|
@@ -53,22 +53,13 @@ declare class MetaError extends Error {
|
|
|
53
53
|
codeMessage?: string;
|
|
54
54
|
constructor(code: string, functionName: string, codeMessage?: string);
|
|
55
55
|
}
|
|
56
|
-
export declare class UtxoError extends MetaError {
|
|
57
|
-
}
|
|
58
|
-
export declare class
|
|
59
|
-
}
|
|
60
|
-
export declare class
|
|
61
|
-
}
|
|
62
|
-
export declare class
|
|
63
|
-
}
|
|
64
|
-
export declare class
|
|
65
|
-
}
|
|
66
|
-
export declare class HashError extends MetaError {
|
|
67
|
-
}
|
|
68
|
-
export declare class ProofError extends MetaError {
|
|
69
|
-
}
|
|
70
|
-
export declare class MerkleTreeError extends MetaError {
|
|
71
|
-
}
|
|
72
|
-
export declare class UtilsError extends MetaError {
|
|
73
|
-
}
|
|
56
|
+
export declare class UtxoError extends MetaError {}
|
|
57
|
+
export declare class SelectInUtxosError extends MetaError {}
|
|
58
|
+
export declare class CreateUtxoError extends MetaError {}
|
|
59
|
+
export declare class RpcError extends MetaError {}
|
|
60
|
+
export declare class LookupTableError extends MetaError {}
|
|
61
|
+
export declare class HashError extends MetaError {}
|
|
62
|
+
export declare class ProofError extends MetaError {}
|
|
63
|
+
export declare class MerkleTreeError extends MetaError {}
|
|
64
|
+
export declare class UtilsError extends MetaError {}
|
|
74
65
|
export {};
|
|
@@ -6,7 +6,7 @@ export type LightSystemProgram = {
|
|
|
6
6
|
name: 'SOL_POOL_PDA_SEED';
|
|
7
7
|
type: 'bytes';
|
|
8
8
|
value: '[115, 111, 108, 95, 112, 111, 111, 108, 95, 112, 100, 97]';
|
|
9
|
-
}
|
|
9
|
+
},
|
|
10
10
|
];
|
|
11
11
|
instructions: [
|
|
12
12
|
{
|
|
@@ -26,7 +26,7 @@ export type LightSystemProgram = {
|
|
|
26
26
|
name: 'associatedMerkleTree';
|
|
27
27
|
isMut: false;
|
|
28
28
|
isSigner: false;
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
30
|
];
|
|
31
31
|
args: [];
|
|
32
32
|
},
|
|
@@ -38,7 +38,7 @@ export type LightSystemProgram = {
|
|
|
38
38
|
isMut: true;
|
|
39
39
|
isSigner: true;
|
|
40
40
|
docs: [
|
|
41
|
-
'Fee payer needs to be mutable to pay rollover and protocol fees.'
|
|
41
|
+
'Fee payer needs to be mutable to pay rollover and protocol fees.',
|
|
42
42
|
];
|
|
43
43
|
},
|
|
44
44
|
{
|
|
@@ -61,7 +61,7 @@ export type LightSystemProgram = {
|
|
|
61
61
|
isMut: false;
|
|
62
62
|
isSigner: false;
|
|
63
63
|
docs: [
|
|
64
|
-
'This pda is used to invoke the account compression program.'
|
|
64
|
+
'This pda is used to invoke the account compression program.',
|
|
65
65
|
];
|
|
66
66
|
},
|
|
67
67
|
{
|
|
@@ -77,7 +77,7 @@ export type LightSystemProgram = {
|
|
|
77
77
|
isOptional: true;
|
|
78
78
|
docs: [
|
|
79
79
|
'Sol pool pda is used to store the native sol that has been compressed.',
|
|
80
|
-
"It's only required when compressing or decompressing sol."
|
|
80
|
+
"It's only required when compressing or decompressing sol.",
|
|
81
81
|
];
|
|
82
82
|
},
|
|
83
83
|
{
|
|
@@ -88,20 +88,20 @@ export type LightSystemProgram = {
|
|
|
88
88
|
docs: [
|
|
89
89
|
'Only needs to be provided for decompression as a recipient for the',
|
|
90
90
|
'decompressed sol.',
|
|
91
|
-
'Compressed sol originate from authority.'
|
|
91
|
+
'Compressed sol originate from authority.',
|
|
92
92
|
];
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
name: 'systemProgram';
|
|
96
96
|
isMut: false;
|
|
97
97
|
isSigner: false;
|
|
98
|
-
}
|
|
98
|
+
},
|
|
99
99
|
];
|
|
100
100
|
args: [
|
|
101
101
|
{
|
|
102
102
|
name: 'inputs';
|
|
103
103
|
type: 'bytes';
|
|
104
|
-
}
|
|
104
|
+
},
|
|
105
105
|
];
|
|
106
106
|
},
|
|
107
107
|
{
|
|
@@ -112,7 +112,7 @@ export type LightSystemProgram = {
|
|
|
112
112
|
isMut: true;
|
|
113
113
|
isSigner: true;
|
|
114
114
|
docs: [
|
|
115
|
-
'Fee payer needs to be mutable to pay rollover and protocol fees.'
|
|
115
|
+
'Fee payer needs to be mutable to pay rollover and protocol fees.',
|
|
116
116
|
];
|
|
117
117
|
},
|
|
118
118
|
{
|
|
@@ -167,13 +167,13 @@ export type LightSystemProgram = {
|
|
|
167
167
|
isMut: true;
|
|
168
168
|
isSigner: false;
|
|
169
169
|
isOptional: true;
|
|
170
|
-
}
|
|
170
|
+
},
|
|
171
171
|
];
|
|
172
172
|
args: [
|
|
173
173
|
{
|
|
174
174
|
name: 'inputs';
|
|
175
175
|
type: 'bytes';
|
|
176
|
-
}
|
|
176
|
+
},
|
|
177
177
|
];
|
|
178
178
|
},
|
|
179
179
|
{
|
|
@@ -184,7 +184,7 @@ export type LightSystemProgram = {
|
|
|
184
184
|
isMut: true;
|
|
185
185
|
isSigner: true;
|
|
186
186
|
docs: [
|
|
187
|
-
'Fee payer needs to be mutable to pay rollover and protocol fees.'
|
|
187
|
+
'Fee payer needs to be mutable to pay rollover and protocol fees.',
|
|
188
188
|
];
|
|
189
189
|
},
|
|
190
190
|
{
|
|
@@ -239,13 +239,13 @@ export type LightSystemProgram = {
|
|
|
239
239
|
isMut: true;
|
|
240
240
|
isSigner: false;
|
|
241
241
|
isOptional: true;
|
|
242
|
-
}
|
|
242
|
+
},
|
|
243
243
|
];
|
|
244
244
|
args: [
|
|
245
245
|
{
|
|
246
246
|
name: 'inputs';
|
|
247
247
|
type: 'bytes';
|
|
248
|
-
}
|
|
248
|
+
},
|
|
249
249
|
];
|
|
250
250
|
},
|
|
251
251
|
{
|
|
@@ -253,7 +253,7 @@ export type LightSystemProgram = {
|
|
|
253
253
|
docs: [
|
|
254
254
|
'This function is a stub to allow Anchor to include the input types in',
|
|
255
255
|
'the IDL. It should not be included in production builds nor be called in',
|
|
256
|
-
'practice.'
|
|
256
|
+
'practice.',
|
|
257
257
|
];
|
|
258
258
|
accounts: [
|
|
259
259
|
{
|
|
@@ -261,7 +261,7 @@ export type LightSystemProgram = {
|
|
|
261
261
|
isMut: true;
|
|
262
262
|
isSigner: true;
|
|
263
263
|
docs: [
|
|
264
|
-
'Fee payer needs to be mutable to pay rollover and protocol fees.'
|
|
264
|
+
'Fee payer needs to be mutable to pay rollover and protocol fees.',
|
|
265
265
|
];
|
|
266
266
|
},
|
|
267
267
|
{
|
|
@@ -284,7 +284,7 @@ export type LightSystemProgram = {
|
|
|
284
284
|
isMut: false;
|
|
285
285
|
isSigner: false;
|
|
286
286
|
docs: [
|
|
287
|
-
'This pda is used to invoke the account compression program.'
|
|
287
|
+
'This pda is used to invoke the account compression program.',
|
|
288
288
|
];
|
|
289
289
|
},
|
|
290
290
|
{
|
|
@@ -300,7 +300,7 @@ export type LightSystemProgram = {
|
|
|
300
300
|
isOptional: true;
|
|
301
301
|
docs: [
|
|
302
302
|
'Sol pool pda is used to store the native sol that has been compressed.',
|
|
303
|
-
"It's only required when compressing or decompressing sol."
|
|
303
|
+
"It's only required when compressing or decompressing sol.",
|
|
304
304
|
];
|
|
305
305
|
},
|
|
306
306
|
{
|
|
@@ -311,14 +311,14 @@ export type LightSystemProgram = {
|
|
|
311
311
|
docs: [
|
|
312
312
|
'Only needs to be provided for decompression as a recipient for the',
|
|
313
313
|
'decompressed sol.',
|
|
314
|
-
'Compressed sol originate from authority.'
|
|
314
|
+
'Compressed sol originate from authority.',
|
|
315
315
|
];
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
name: 'systemProgram';
|
|
319
319
|
isMut: false;
|
|
320
320
|
isSigner: false;
|
|
321
|
-
}
|
|
321
|
+
},
|
|
322
322
|
];
|
|
323
323
|
args: [
|
|
324
324
|
{
|
|
@@ -338,9 +338,9 @@ export type LightSystemProgram = {
|
|
|
338
338
|
type: {
|
|
339
339
|
defined: 'PublicTransactionEvent';
|
|
340
340
|
};
|
|
341
|
-
}
|
|
341
|
+
},
|
|
342
342
|
];
|
|
343
|
-
}
|
|
343
|
+
},
|
|
344
344
|
];
|
|
345
345
|
accounts: [
|
|
346
346
|
{
|
|
@@ -351,7 +351,7 @@ export type LightSystemProgram = {
|
|
|
351
351
|
'Collected instruction data is combined with the instruction data of the executing cpi,',
|
|
352
352
|
'and executed as a single transaction.',
|
|
353
353
|
'This enables to use input compressed accounts that are owned by multiple programs,',
|
|
354
|
-
'with one zero-knowledge proof.'
|
|
354
|
+
'with one zero-knowledge proof.',
|
|
355
355
|
];
|
|
356
356
|
type: {
|
|
357
357
|
kind: 'struct';
|
|
@@ -371,10 +371,10 @@ export type LightSystemProgram = {
|
|
|
371
371
|
defined: 'InstructionDataInvokeCpi';
|
|
372
372
|
};
|
|
373
373
|
};
|
|
374
|
-
}
|
|
374
|
+
},
|
|
375
375
|
];
|
|
376
376
|
};
|
|
377
|
-
}
|
|
377
|
+
},
|
|
378
378
|
];
|
|
379
379
|
types: [
|
|
380
380
|
{
|
|
@@ -429,7 +429,7 @@ export type LightSystemProgram = {
|
|
|
429
429
|
{
|
|
430
430
|
name: 'isCompress';
|
|
431
431
|
type: 'bool';
|
|
432
|
-
}
|
|
432
|
+
},
|
|
433
433
|
];
|
|
434
434
|
};
|
|
435
435
|
},
|
|
@@ -455,7 +455,7 @@ export type LightSystemProgram = {
|
|
|
455
455
|
{
|
|
456
456
|
name: 'addressMerkleTreeRootIndex';
|
|
457
457
|
type: 'u16';
|
|
458
|
-
}
|
|
458
|
+
},
|
|
459
459
|
];
|
|
460
460
|
};
|
|
461
461
|
},
|
|
@@ -473,7 +473,7 @@ export type LightSystemProgram = {
|
|
|
473
473
|
{
|
|
474
474
|
name: 'merkleTreeIndex';
|
|
475
475
|
type: 'u8';
|
|
476
|
-
}
|
|
476
|
+
},
|
|
477
477
|
];
|
|
478
478
|
};
|
|
479
479
|
},
|
|
@@ -499,7 +499,7 @@ export type LightSystemProgram = {
|
|
|
499
499
|
type: {
|
|
500
500
|
array: ['u8', 32];
|
|
501
501
|
};
|
|
502
|
-
}
|
|
502
|
+
},
|
|
503
503
|
];
|
|
504
504
|
};
|
|
505
505
|
},
|
|
@@ -563,7 +563,7 @@ export type LightSystemProgram = {
|
|
|
563
563
|
defined: 'CompressedCpiContext';
|
|
564
564
|
};
|
|
565
565
|
};
|
|
566
|
-
}
|
|
566
|
+
},
|
|
567
567
|
];
|
|
568
568
|
};
|
|
569
569
|
},
|
|
@@ -576,7 +576,7 @@ export type LightSystemProgram = {
|
|
|
576
576
|
name: 'setContext';
|
|
577
577
|
docs: [
|
|
578
578
|
'Is set by the program that is invoking the CPI to signal that is should',
|
|
579
|
-
'set the cpi context.'
|
|
579
|
+
'set the cpi context.',
|
|
580
580
|
];
|
|
581
581
|
type: 'bool';
|
|
582
582
|
},
|
|
@@ -584,17 +584,17 @@ export type LightSystemProgram = {
|
|
|
584
584
|
name: 'firstSetContext';
|
|
585
585
|
docs: [
|
|
586
586
|
'Is set to wipe the cpi context since someone could have set it before',
|
|
587
|
-
'with unrelated data.'
|
|
587
|
+
'with unrelated data.',
|
|
588
588
|
];
|
|
589
589
|
type: 'bool';
|
|
590
590
|
},
|
|
591
591
|
{
|
|
592
592
|
name: 'cpiContextAccountIndex';
|
|
593
593
|
docs: [
|
|
594
|
-
'Index of cpi context account in remaining accounts.'
|
|
594
|
+
'Index of cpi context account in remaining accounts.',
|
|
595
595
|
];
|
|
596
596
|
type: 'u8';
|
|
597
|
-
}
|
|
597
|
+
},
|
|
598
598
|
];
|
|
599
599
|
};
|
|
600
600
|
},
|
|
@@ -626,7 +626,7 @@ export type LightSystemProgram = {
|
|
|
626
626
|
defined: 'CompressedAccountData';
|
|
627
627
|
};
|
|
628
628
|
};
|
|
629
|
-
}
|
|
629
|
+
},
|
|
630
630
|
];
|
|
631
631
|
};
|
|
632
632
|
},
|
|
@@ -650,7 +650,7 @@ export type LightSystemProgram = {
|
|
|
650
650
|
type: {
|
|
651
651
|
array: ['u8', 32];
|
|
652
652
|
};
|
|
653
|
-
}
|
|
653
|
+
},
|
|
654
654
|
];
|
|
655
655
|
};
|
|
656
656
|
},
|
|
@@ -674,17 +674,17 @@ export type LightSystemProgram = {
|
|
|
674
674
|
{
|
|
675
675
|
name: 'rootIndex';
|
|
676
676
|
docs: [
|
|
677
|
-
'Index of root used in inclusion validity proof.'
|
|
677
|
+
'Index of root used in inclusion validity proof.',
|
|
678
678
|
];
|
|
679
679
|
type: 'u16';
|
|
680
680
|
},
|
|
681
681
|
{
|
|
682
682
|
name: 'readOnly';
|
|
683
683
|
docs: [
|
|
684
|
-
'Placeholder to mark accounts read-only unimplemented set to false.'
|
|
684
|
+
'Placeholder to mark accounts read-only unimplemented set to false.',
|
|
685
685
|
];
|
|
686
686
|
type: 'bool';
|
|
687
|
-
}
|
|
687
|
+
},
|
|
688
688
|
];
|
|
689
689
|
};
|
|
690
690
|
},
|
|
@@ -712,7 +712,7 @@ export type LightSystemProgram = {
|
|
|
712
712
|
defined: 'QueueIndex';
|
|
713
713
|
};
|
|
714
714
|
};
|
|
715
|
-
}
|
|
715
|
+
},
|
|
716
716
|
];
|
|
717
717
|
};
|
|
718
718
|
},
|
|
@@ -730,7 +730,7 @@ export type LightSystemProgram = {
|
|
|
730
730
|
name: 'index';
|
|
731
731
|
docs: ['Index of compressed account hash in queue.'];
|
|
732
732
|
type: 'u16';
|
|
733
|
-
}
|
|
733
|
+
},
|
|
734
734
|
];
|
|
735
735
|
};
|
|
736
736
|
},
|
|
@@ -746,7 +746,7 @@ export type LightSystemProgram = {
|
|
|
746
746
|
{
|
|
747
747
|
name: 'seq';
|
|
748
748
|
type: 'u64';
|
|
749
|
-
}
|
|
749
|
+
},
|
|
750
750
|
];
|
|
751
751
|
};
|
|
752
752
|
},
|
|
@@ -820,10 +820,10 @@ export type LightSystemProgram = {
|
|
|
820
820
|
type: {
|
|
821
821
|
option: 'bytes';
|
|
822
822
|
};
|
|
823
|
-
}
|
|
823
|
+
},
|
|
824
824
|
];
|
|
825
825
|
};
|
|
826
|
-
}
|
|
826
|
+
},
|
|
827
827
|
];
|
|
828
828
|
errors: [
|
|
829
829
|
{
|
|
@@ -1013,7 +1013,7 @@ export type LightSystemProgram = {
|
|
|
1013
1013
|
{
|
|
1014
1014
|
code: 6038;
|
|
1015
1015
|
name: 'InvalidStateTreeHeight';
|
|
1016
|
-
}
|
|
1016
|
+
},
|
|
1017
1017
|
];
|
|
1018
1018
|
};
|
|
1019
1019
|
export declare const IDL: LightSystemProgram;
|