@lightprotocol/stateless.js 0.16.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/cjs/browser/actions/common.d.ts +1 -4
  2. package/dist/cjs/browser/actions/compress.d.ts +2 -14
  3. package/dist/cjs/browser/actions/create-account.d.ts +3 -27
  4. package/dist/cjs/browser/actions/decompress.d.ts +2 -14
  5. package/dist/cjs/browser/actions/transfer.d.ts +2 -15
  6. package/dist/cjs/browser/constants.d.ts +7 -14
  7. package/dist/cjs/browser/errors.d.ts +49 -40
  8. package/dist/cjs/browser/idls/account_compression.d.ts +56 -56
  9. package/dist/cjs/browser/idls/index.d.ts +4 -22
  10. package/dist/cjs/browser/idls/light_compressed_token.d.ts +209 -89
  11. package/dist/cjs/browser/idls/light_registry.d.ts +60 -60
  12. package/dist/cjs/browser/idls/light_system_program.d.ts +55 -55
  13. package/dist/cjs/browser/index.cjs +3223 -4792
  14. package/dist/cjs/browser/index.cjs.map +1 -1
  15. package/dist/cjs/browser/instruction/pack-compressed-accounts.d.ts +5 -24
  16. package/dist/cjs/browser/programs/system.d.ts +10 -61
  17. package/dist/cjs/browser/rpc-interface.d.ts +871 -1127
  18. package/dist/cjs/browser/rpc.d.ts +31 -143
  19. package/dist/cjs/browser/state/BN254.d.ts +2 -9
  20. package/dist/cjs/browser/state/compressed-account.d.ts +6 -23
  21. package/dist/cjs/browser/test-helpers/merkle-tree/indexed-array.d.ts +4 -18
  22. package/dist/cjs/browser/test-helpers/merkle-tree/merkle-tree.d.ts +6 -19
  23. package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-accounts.d.ts +3 -12
  24. package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +5 -21
  25. package/dist/cjs/browser/test-helpers/test-rpc/get-parsed-events.d.ts +3 -10
  26. package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +31 -135
  27. package/dist/cjs/browser/utils/address.d.ts +3 -12
  28. package/dist/cjs/browser/utils/airdrop.d.ts +2 -14
  29. package/dist/cjs/browser/utils/calculate-compute-unit-price.d.ts +1 -4
  30. package/dist/cjs/browser/utils/conversion.d.ts +3 -9
  31. package/dist/cjs/browser/utils/parse-validity-proof.d.ts +1 -3
  32. package/dist/cjs/browser/utils/pipe.d.ts +1 -4
  33. package/dist/cjs/browser/utils/send-and-confirm.d.ts +11 -42
  34. package/dist/cjs/browser/utils/test-utils.d.ts +1 -5
  35. package/dist/cjs/browser/utils/validation.d.ts +2 -9
  36. package/dist/cjs/browser/wallet/interface.d.ts +4 -15
  37. package/dist/cjs/browser/wallet/use-wallet.d.ts +5 -20
  38. package/dist/cjs/node/actions/common.d.ts +1 -4
  39. package/dist/cjs/node/actions/compress.d.ts +2 -14
  40. package/dist/cjs/node/actions/create-account.d.ts +3 -27
  41. package/dist/cjs/node/actions/decompress.d.ts +2 -14
  42. package/dist/cjs/node/actions/transfer.d.ts +2 -15
  43. package/dist/cjs/node/constants.d.ts +7 -14
  44. package/dist/cjs/node/errors.d.ts +49 -40
  45. package/dist/cjs/node/idls/account_compression.d.ts +56 -56
  46. package/dist/cjs/node/idls/index.d.ts +4 -22
  47. package/dist/cjs/node/idls/light_compressed_token.d.ts +209 -89
  48. package/dist/cjs/node/idls/light_registry.d.ts +60 -60
  49. package/dist/cjs/node/idls/light_system_program.d.ts +55 -55
  50. package/dist/cjs/node/index.cjs +1070 -2329
  51. package/dist/cjs/node/index.cjs.map +1 -1
  52. package/dist/cjs/node/instruction/pack-compressed-accounts.d.ts +5 -24
  53. package/dist/cjs/node/programs/system.d.ts +10 -61
  54. package/dist/cjs/node/rpc-interface.d.ts +871 -1127
  55. package/dist/cjs/node/rpc.d.ts +31 -143
  56. package/dist/cjs/node/state/BN254.d.ts +2 -9
  57. package/dist/cjs/node/state/compressed-account.d.ts +6 -23
  58. package/dist/cjs/node/test-helpers/merkle-tree/indexed-array.d.ts +4 -18
  59. package/dist/cjs/node/test-helpers/merkle-tree/merkle-tree.d.ts +6 -19
  60. package/dist/cjs/node/test-helpers/test-rpc/get-compressed-accounts.d.ts +3 -12
  61. package/dist/cjs/node/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +5 -21
  62. package/dist/cjs/node/test-helpers/test-rpc/get-parsed-events.d.ts +3 -10
  63. package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +31 -135
  64. package/dist/cjs/node/utils/address.d.ts +3 -12
  65. package/dist/cjs/node/utils/airdrop.d.ts +2 -14
  66. package/dist/cjs/node/utils/calculate-compute-unit-price.d.ts +1 -4
  67. package/dist/cjs/node/utils/conversion.d.ts +3 -9
  68. package/dist/cjs/node/utils/parse-validity-proof.d.ts +1 -3
  69. package/dist/cjs/node/utils/pipe.d.ts +1 -4
  70. package/dist/cjs/node/utils/send-and-confirm.d.ts +11 -42
  71. package/dist/cjs/node/utils/test-utils.d.ts +1 -5
  72. package/dist/cjs/node/utils/validation.d.ts +2 -9
  73. package/dist/cjs/node/wallet/interface.d.ts +4 -15
  74. package/dist/cjs/node/wallet/use-wallet.d.ts +5 -20
  75. package/dist/es/browser/actions/common.d.ts +1 -4
  76. package/dist/es/browser/actions/compress.d.ts +2 -14
  77. package/dist/es/browser/actions/create-account.d.ts +3 -27
  78. package/dist/es/browser/actions/decompress.d.ts +2 -14
  79. package/dist/es/browser/actions/transfer.d.ts +2 -15
  80. package/dist/es/browser/constants.d.ts +7 -14
  81. package/dist/es/browser/errors.d.ts +49 -40
  82. package/dist/es/browser/idls/account_compression.d.ts +56 -56
  83. package/dist/es/browser/idls/index.d.ts +4 -22
  84. package/dist/es/browser/idls/light_compressed_token.d.ts +209 -89
  85. package/dist/es/browser/idls/light_registry.d.ts +60 -60
  86. package/dist/es/browser/idls/light_system_program.d.ts +55 -55
  87. package/dist/es/browser/index.js +3209 -4698
  88. package/dist/es/browser/index.js.map +1 -1
  89. package/dist/es/browser/instruction/pack-compressed-accounts.d.ts +5 -24
  90. package/dist/es/browser/programs/system.d.ts +10 -61
  91. package/dist/es/browser/rpc-interface.d.ts +871 -1127
  92. package/dist/es/browser/rpc.d.ts +31 -143
  93. package/dist/es/browser/state/BN254.d.ts +2 -9
  94. package/dist/es/browser/state/compressed-account.d.ts +6 -23
  95. package/dist/es/browser/test-helpers/merkle-tree/indexed-array.d.ts +4 -18
  96. package/dist/es/browser/test-helpers/merkle-tree/merkle-tree.d.ts +6 -19
  97. package/dist/es/browser/test-helpers/test-rpc/get-compressed-accounts.d.ts +3 -12
  98. package/dist/es/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +5 -21
  99. package/dist/es/browser/test-helpers/test-rpc/get-parsed-events.d.ts +3 -10
  100. package/dist/es/browser/test-helpers/test-rpc/test-rpc.d.ts +31 -135
  101. package/dist/es/browser/utils/address.d.ts +3 -12
  102. package/dist/es/browser/utils/airdrop.d.ts +2 -14
  103. package/dist/es/browser/utils/calculate-compute-unit-price.d.ts +1 -4
  104. package/dist/es/browser/utils/conversion.d.ts +3 -9
  105. package/dist/es/browser/utils/parse-validity-proof.d.ts +1 -3
  106. package/dist/es/browser/utils/pipe.d.ts +1 -4
  107. package/dist/es/browser/utils/send-and-confirm.d.ts +11 -42
  108. package/dist/es/browser/utils/test-utils.d.ts +1 -5
  109. package/dist/es/browser/utils/validation.d.ts +2 -9
  110. package/dist/es/browser/wallet/interface.d.ts +4 -15
  111. package/dist/es/browser/wallet/use-wallet.d.ts +5 -20
  112. package/dist/types/index.d.ts +1433 -2192
  113. package/package.json +1 -1
@@ -1,9 +1,4 @@
1
- import {
2
- ConfirmOptions,
3
- PublicKey,
4
- Signer,
5
- TransactionSignature,
6
- } from '@solana/web3.js';
1
+ import { ConfirmOptions, PublicKey, Signer, TransactionSignature } from '@solana/web3.js';
7
2
  import { Rpc } from '../rpc';
8
3
  import { BN } from '@coral-xyz/anchor';
9
4
  /**
@@ -18,11 +13,4 @@ import { BN } from '@coral-xyz/anchor';
18
13
  *
19
14
  * @return Transaction signature
20
15
  */
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>;
16
+ export declare function decompress(rpc: Rpc, payer: Signer, lamports: number | BN, recipient: PublicKey, outputStateTree?: PublicKey, confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
@@ -1,9 +1,4 @@
1
- import {
2
- ConfirmOptions,
3
- PublicKey,
4
- Signer,
5
- TransactionSignature,
6
- } from '@solana/web3.js';
1
+ import { ConfirmOptions, PublicKey, Signer, TransactionSignature } from '@solana/web3.js';
7
2
  import { BN } from '@coral-xyz/anchor';
8
3
  import { Rpc } from '../rpc';
9
4
  /**
@@ -22,12 +17,4 @@ import { Rpc } from '../rpc';
22
17
  *
23
18
  * @return Signature of the confirmed transaction
24
19
  */
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>;
20
+ export declare function transfer(rpc: Rpc, payer: Signer, lamports: number | BN, owner: Signer, toAddress: PublicKey, merkleTree?: PublicKey, confirmOptions?: ConfirmOptions): Promise<TransactionSignature>;
@@ -2,12 +2,9 @@ import { BN } from '@coral-xyz/anchor';
2
2
  import { ConfirmOptions, PublicKey } from '@solana/web3.js';
3
3
  export declare const FIELD_SIZE: BN;
4
4
  export declare const HIGHEST_ADDRESS_PLUS_ONE: BN;
5
- export declare const noopProgram =
6
- 'noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV';
7
- export declare const lightProgram =
8
- 'SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7';
9
- export declare const accountCompressionProgram =
10
- 'compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq';
5
+ export declare const noopProgram = "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV";
6
+ export declare const lightProgram = "SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7";
7
+ export declare const accountCompressionProgram = "compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq";
11
8
  export declare const getRegisteredProgramPda: () => PublicKey;
12
9
  export declare const getAccountCompressionAuthority: () => PublicKey;
13
10
  export declare const defaultStaticAccounts: () => PublicKey[];
@@ -25,14 +22,10 @@ export declare const defaultTestStateTreeAccounts: () => {
25
22
  addressTree: PublicKey;
26
23
  addressQueue: PublicKey;
27
24
  };
28
- export declare const nullifierQueuePubkey =
29
- 'nfq1NvQDJ2GEgnS8zt9prAe8rjjpAW1zFkrvZoBR148';
30
- export declare const merkletreePubkey =
31
- 'smt1NamzXdq4AMqS2fS2F1i5KTYPZRhoHgWx38d8WsT';
32
- export declare const addressTree =
33
- 'amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2';
34
- export declare const addressQueue =
35
- 'aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F';
25
+ export declare const nullifierQueuePubkey = "nfq1NvQDJ2GEgnS8zt9prAe8rjjpAW1zFkrvZoBR148";
26
+ export declare const merkletreePubkey = "smt1NamzXdq4AMqS2fS2F1i5KTYPZRhoHgWx38d8WsT";
27
+ export declare const addressTree = "amt1Ayt45jfbdw5YSo7iz6WZxUmnZsQTYXy82hVwyC2";
28
+ export declare const addressQueue = "aq1S9z4reTSQAdgWHGD2zDaS39sjGrAxbR31vxJ2F4F";
36
29
  export declare const confirmConfig: ConfirmOptions;
37
30
  export declare const DEFAULT_MERKLE_TREE_HEIGHT = 26;
38
31
  export declare const DEFAULT_MERKLE_TREE_ROOTS = 2800;
@@ -1,51 +1,51 @@
1
1
  export declare enum UtxoErrorCode {
2
- NEGATIVE_LAMPORTS = 'NEGATIVE_LAMPORTS',
3
- NOT_U64 = 'NOT_U64',
4
- BLINDING_EXCEEDS_FIELD_SIZE = '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 = 'FAILED_TO_FIND_UTXO_COMBINATION',
8
- INVALID_NUMBER_OF_IN_UTXOS = '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 = 'OWNER_UNDEFINED',
12
- INVALID_OUTPUT_UTXO_LENGTH = 'INVALID_OUTPUT_UTXO_LENGTH',
13
- UTXO_DATA_UNDEFINED = '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 = 'CONNECTION_UNDEFINED',
17
- RPC_PUBKEY_UNDEFINED = 'RPC_PUBKEY_UNDEFINED',
18
- RPC_METHOD_NOT_IMPLEMENTED = 'RPC_METHOD_NOT_IMPLEMENTED',
19
- RPC_INVALID = '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 = 'LOOK_UP_TABLE_UNDEFINED',
23
- LOOK_UP_TABLE_NOT_INITIALIZED = '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 = 'NO_POSEIDON_HASHER_PROVIDED',
26
+ NO_POSEIDON_HASHER_PROVIDED = "NO_POSEIDON_HASHER_PROVIDED"
27
27
  }
28
28
  export declare enum ProofErrorCode {
29
- INVALID_PROOF = 'INVALID_PROOF',
30
- PROOF_INPUT_UNDEFINED = 'PROOF_INPUT_UNDEFINED',
31
- PROOF_GENERATION_FAILED = '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 = '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',
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 = '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',
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,13 +53,22 @@ 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
- 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 {}
56
+ export declare class UtxoError extends MetaError {
57
+ }
58
+ export declare class SelectInUtxosError extends MetaError {
59
+ }
60
+ export declare class CreateUtxoError extends MetaError {
61
+ }
62
+ export declare class RpcError extends MetaError {
63
+ }
64
+ export declare class LookupTableError extends MetaError {
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
+ }
65
74
  export {};
@@ -83,7 +83,7 @@ export type AccountCompression = {
83
83
  array: ['u8', 32];
84
84
  };
85
85
  value: '[11 , 188 , 15 , 192 , 187 , 71 , 202 , 47 , 116 , 196 , 17 , 46 , 148 , 171 , 19 , 207 , 163 , 198 , 52 , 229 , 220 , 23 , 234 , 203 , 3 , 205 , 26 , 35 , 205 , 126 , 120 , 124 ,]';
86
- },
86
+ }
87
87
  ];
88
88
  instructions: [
89
89
  {
@@ -109,7 +109,7 @@ export type AccountCompression = {
109
109
  isMut: false;
110
110
  isSigner: false;
111
111
  isOptional: true;
112
- },
112
+ }
113
113
  ];
114
114
  args: [
115
115
  {
@@ -139,7 +139,7 @@ export type AccountCompression = {
139
139
  type: {
140
140
  defined: 'AddressQueueConfig';
141
141
  };
142
- },
142
+ }
143
143
  ];
144
144
  },
145
145
  {
@@ -166,7 +166,7 @@ export type AccountCompression = {
166
166
  name: 'systemProgram';
167
167
  isMut: false;
168
168
  isSigner: false;
169
- },
169
+ }
170
170
  ];
171
171
  args: [
172
172
  {
@@ -176,7 +176,7 @@ export type AccountCompression = {
176
176
  array: ['u8', 32];
177
177
  };
178
178
  };
179
- },
179
+ }
180
180
  ];
181
181
  },
182
182
  {
@@ -208,7 +208,7 @@ export type AccountCompression = {
208
208
  name: 'logWrapper';
209
209
  isMut: false;
210
210
  isSigner: false;
211
- },
211
+ }
212
212
  ];
213
213
  args: [
214
214
  {
@@ -250,10 +250,10 @@ export type AccountCompression = {
250
250
  {
251
251
  array: ['u8', 32];
252
252
  },
253
- 16,
253
+ 16
254
254
  ];
255
255
  };
256
- },
256
+ }
257
257
  ];
258
258
  },
259
259
  {
@@ -264,7 +264,7 @@ export type AccountCompression = {
264
264
  isMut: true;
265
265
  isSigner: true;
266
266
  docs: [
267
- 'Signer used to receive rollover accounts rentexemption reimbursement.',
267
+ 'Signer used to receive rollover accounts rentexemption reimbursement.'
268
268
  ];
269
269
  },
270
270
  {
@@ -297,7 +297,7 @@ export type AccountCompression = {
297
297
  name: 'oldQueue';
298
298
  isMut: true;
299
299
  isSigner: false;
300
- },
300
+ }
301
301
  ];
302
302
  args: [];
303
303
  },
@@ -305,7 +305,7 @@ export type AccountCompression = {
305
305
  name: 'initializeGroupAuthority';
306
306
  docs: [
307
307
  'initialize group (a group can be used to give multiple programs access',
308
- 'to the same Merkle trees by registering the programs to the group)',
308
+ 'to the same Merkle trees by registering the programs to the group)'
309
309
  ];
310
310
  accounts: [
311
311
  {
@@ -318,7 +318,7 @@ export type AccountCompression = {
318
318
  isMut: false;
319
319
  isSigner: true;
320
320
  docs: [
321
- 'Seed public key used to derive the group authority.',
321
+ 'Seed public key used to derive the group authority.'
322
322
  ];
323
323
  },
324
324
  {
@@ -330,13 +330,13 @@ export type AccountCompression = {
330
330
  name: 'systemProgram';
331
331
  isMut: false;
332
332
  isSigner: false;
333
- },
333
+ }
334
334
  ];
335
335
  args: [
336
336
  {
337
337
  name: 'authority';
338
338
  type: 'publicKey';
339
- },
339
+ }
340
340
  ];
341
341
  },
342
342
  {
@@ -351,13 +351,13 @@ export type AccountCompression = {
351
351
  name: 'groupAuthority';
352
352
  isMut: true;
353
353
  isSigner: false;
354
- },
354
+ }
355
355
  ];
356
356
  args: [
357
357
  {
358
358
  name: 'authority';
359
359
  type: 'publicKey';
360
- },
360
+ }
361
361
  ];
362
362
  },
363
363
  {
@@ -387,7 +387,7 @@ export type AccountCompression = {
387
387
  name: 'systemProgram';
388
388
  isMut: false;
389
389
  isSigner: false;
390
- },
390
+ }
391
391
  ];
392
392
  args: [];
393
393
  },
@@ -413,7 +413,7 @@ export type AccountCompression = {
413
413
  name: 'closeRecipient';
414
414
  isMut: true;
415
415
  isSigner: false;
416
- },
416
+ }
417
417
  ];
418
418
  args: [];
419
419
  },
@@ -421,7 +421,7 @@ export type AccountCompression = {
421
421
  name: 'initializeStateMerkleTreeAndNullifierQueue';
422
422
  docs: [
423
423
  'Initializes a new Merkle tree from config bytes.',
424
- 'Index is an optional identifier and not checked by the program.',
424
+ 'Index is an optional identifier and not checked by the program.'
425
425
  ];
426
426
  accounts: [
427
427
  {
@@ -444,7 +444,7 @@ export type AccountCompression = {
444
444
  isMut: false;
445
445
  isSigner: false;
446
446
  isOptional: true;
447
- },
447
+ }
448
448
  ];
449
449
  args: [
450
450
  {
@@ -478,7 +478,7 @@ export type AccountCompression = {
478
478
  {
479
479
  name: 'additionalBytes';
480
480
  type: 'u64';
481
- },
481
+ }
482
482
  ];
483
483
  },
484
484
  {
@@ -495,7 +495,7 @@ export type AccountCompression = {
495
495
  isMut: false;
496
496
  isSigner: true;
497
497
  docs: [
498
- 'Checked whether instruction is accessed by a registered program or owner = authority.',
498
+ 'Checked whether instruction is accessed by a registered program or owner = authority.'
499
499
  ];
500
500
  },
501
501
  {
@@ -505,14 +505,14 @@ export type AccountCompression = {
505
505
  isOptional: true;
506
506
  docs: [
507
507
  'Some assumes that the Merkle trees are accessed by a registered program.',
508
- 'None assumes that the Merkle trees are accessed by its owner.',
508
+ 'None assumes that the Merkle trees are accessed by its owner.'
509
509
  ];
510
510
  },
511
511
  {
512
512
  name: 'systemProgram';
513
513
  isMut: false;
514
514
  isSigner: false;
515
- },
515
+ }
516
516
  ];
517
517
  args: [
518
518
  {
@@ -522,7 +522,7 @@ export type AccountCompression = {
522
522
  defined: '(u8,[u8;32])';
523
523
  };
524
524
  };
525
- },
525
+ }
526
526
  ];
527
527
  },
528
528
  {
@@ -553,7 +553,7 @@ export type AccountCompression = {
553
553
  name: 'nullifierQueue';
554
554
  isMut: true;
555
555
  isSigner: false;
556
- },
556
+ }
557
557
  ];
558
558
  args: [
559
559
  {
@@ -583,7 +583,7 @@ export type AccountCompression = {
583
583
  };
584
584
  };
585
585
  };
586
- },
586
+ }
587
587
  ];
588
588
  },
589
589
  {
@@ -610,7 +610,7 @@ export type AccountCompression = {
610
610
  name: 'systemProgram';
611
611
  isMut: false;
612
612
  isSigner: false;
613
- },
613
+ }
614
614
  ];
615
615
  args: [
616
616
  {
@@ -620,7 +620,7 @@ export type AccountCompression = {
620
620
  array: ['u8', 32];
621
621
  };
622
622
  };
623
- },
623
+ }
624
624
  ];
625
625
  },
626
626
  {
@@ -631,7 +631,7 @@ export type AccountCompression = {
631
631
  isMut: true;
632
632
  isSigner: true;
633
633
  docs: [
634
- 'Signer used to receive rollover accounts rentexemption reimbursement.',
634
+ 'Signer used to receive rollover accounts rentexemption reimbursement.'
635
635
  ];
636
636
  },
637
637
  {
@@ -664,10 +664,10 @@ export type AccountCompression = {
664
664
  name: 'oldNullifierQueue';
665
665
  isMut: true;
666
666
  isSigner: false;
667
- },
667
+ }
668
668
  ];
669
669
  args: [];
670
- },
670
+ }
671
671
  ];
672
672
  accounts: [
673
673
  {
@@ -682,7 +682,7 @@ export type AccountCompression = {
682
682
  {
683
683
  name: 'groupAuthorityPda';
684
684
  type: 'publicKey';
685
- },
685
+ }
686
686
  ];
687
687
  };
688
688
  },
@@ -699,7 +699,7 @@ export type AccountCompression = {
699
699
  {
700
700
  name: 'programOwner';
701
701
  docs: [
702
- 'Program owner of the Merkle tree. This will be used for program owned Merkle trees.',
702
+ 'Program owner of the Merkle tree. This will be used for program owned Merkle trees.'
703
703
  ];
704
704
  type: 'publicKey';
705
705
  },
@@ -711,10 +711,10 @@ export type AccountCompression = {
711
711
  'forested by light foresters. The variable is not used in the account',
712
712
  'compression program but the registry program. The registry program',
713
713
  'implements access control to prevent contention during forester. The',
714
- 'forester pubkey specified in this struct can bypass contention checks.',
714
+ 'forester pubkey specified in this struct can bypass contention checks.'
715
715
  ];
716
716
  type: 'publicKey';
717
- },
717
+ }
718
718
  ];
719
719
  };
720
720
  },
@@ -728,7 +728,7 @@ export type AccountCompression = {
728
728
  type: {
729
729
  defined: 'MerkleTreeMetadata';
730
730
  };
731
- },
731
+ }
732
732
  ];
733
733
  };
734
734
  },
@@ -744,7 +744,7 @@ export type AccountCompression = {
744
744
  {
745
745
  name: 'seed';
746
746
  type: 'publicKey';
747
- },
747
+ }
748
748
  ];
749
749
  };
750
750
  },
@@ -772,14 +772,14 @@ export type AccountCompression = {
772
772
  {
773
773
  name: 'nextMerkleTree';
774
774
  type: 'publicKey';
775
- },
775
+ }
776
776
  ];
777
777
  };
778
778
  },
779
779
  {
780
780
  name: 'stateMerkleTreeAccount';
781
781
  docs: [
782
- 'Concurrent state Merkle tree used for public compressed transactions.',
782
+ 'Concurrent state Merkle tree used for public compressed transactions.'
783
783
  ];
784
784
  type: {
785
785
  kind: 'struct';
@@ -789,7 +789,7 @@ export type AccountCompression = {
789
789
  type: {
790
790
  defined: 'MerkleTreeMetadata';
791
791
  };
792
- },
792
+ }
793
793
  ];
794
794
  };
795
795
  },
@@ -821,7 +821,7 @@ export type AccountCompression = {
821
821
  {
822
822
  name: 'queueType';
823
823
  type: 'u64';
824
- },
824
+ }
825
825
  ];
826
826
  };
827
827
  },
@@ -835,7 +835,7 @@ export type AccountCompression = {
835
835
  type: {
836
836
  defined: 'QueueMetadata';
837
837
  };
838
- },
838
+ }
839
839
  ];
840
840
  };
841
841
  },
@@ -853,14 +853,14 @@ export type AccountCompression = {
853
853
  name: 'rolloverFee';
854
854
  docs: [
855
855
  'This fee is used for rent for the next account.',
856
- 'It accumulates in the account so that once the corresponding Merkle tree account is full it can be rolled over',
856
+ 'It accumulates in the account so that once the corresponding Merkle tree account is full it can be rolled over'
857
857
  ];
858
858
  type: 'u64';
859
859
  },
860
860
  {
861
861
  name: 'rolloverThreshold';
862
862
  docs: [
863
- 'The threshold in percentage points when the account should be rolled over (95 corresponds to 95% filled).',
863
+ 'The threshold in percentage points when the account should be rolled over (95 corresponds to 95% filled).'
864
864
  ];
865
865
  type: 'u64';
866
866
  },
@@ -872,7 +872,7 @@ export type AccountCompression = {
872
872
  {
873
873
  name: 'rolledoverSlot';
874
874
  docs: [
875
- 'The slot when the account was rolled over, a rolled over account should not be written to.',
875
+ 'The slot when the account was rolled over, a rolled over account should not be written to.'
876
876
  ];
877
877
  type: 'u64';
878
878
  },
@@ -881,7 +881,7 @@ export type AccountCompression = {
881
881
  docs: [
882
882
  'If current slot is greater than rolledover_slot + close_threshold and',
883
883
  "the account is empty it can be closed. No 'close' functionality has been",
884
- 'implemented yet.',
884
+ 'implemented yet.'
885
885
  ];
886
886
  type: 'u64';
887
887
  },
@@ -889,13 +889,13 @@ export type AccountCompression = {
889
889
  name: 'additionalBytes';
890
890
  docs: [
891
891
  'Placeholder for bytes of additional accounts which are tied to the',
892
- 'Merkle trees operation and need to be rolled over as well.',
892
+ 'Merkle trees operation and need to be rolled over as well.'
893
893
  ];
894
894
  type: 'u64';
895
- },
895
+ }
896
896
  ];
897
897
  };
898
- },
898
+ }
899
899
  ];
900
900
  types: [
901
901
  {
@@ -940,7 +940,7 @@ export type AccountCompression = {
940
940
  type: {
941
941
  option: 'u64';
942
942
  };
943
- },
943
+ }
944
944
  ];
945
945
  };
946
946
  },
@@ -982,7 +982,7 @@ export type AccountCompression = {
982
982
  type: {
983
983
  option: 'u64';
984
984
  };
985
- },
985
+ }
986
986
  ];
987
987
  };
988
988
  },
@@ -1004,7 +1004,7 @@ export type AccountCompression = {
1004
1004
  type: {
1005
1005
  option: 'u64';
1006
1006
  };
1007
- },
1007
+ }
1008
1008
  ];
1009
1009
  };
1010
1010
  },
@@ -1018,7 +1018,7 @@ export type AccountCompression = {
1018
1018
  },
1019
1019
  {
1020
1020
  name: 'AddressQueue';
1021
- },
1021
+ }
1022
1022
  ];
1023
1023
  };
1024
1024
  },
@@ -1030,7 +1030,7 @@ export type AccountCompression = {
1030
1030
  defined: 'NullifierQueueConfig';
1031
1031
  };
1032
1032
  };
1033
- },
1033
+ }
1034
1034
  ];
1035
1035
  errors: [
1036
1036
  {
@@ -1164,7 +1164,7 @@ export type AccountCompression = {
1164
1164
  {
1165
1165
  code: 6026;
1166
1166
  name: 'ProofLengthMismatch';
1167
- },
1167
+ }
1168
1168
  ];
1169
1169
  };
1170
1170
  export declare const IDL: AccountCompression;