@lightprotocol/compressed-token 0.6.0 → 0.8.0

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.
@@ -227,10 +227,7 @@ type LightCompressedToken = {
227
227
  name: 'selfProgram';
228
228
  isMut: false;
229
229
  isSigner: false;
230
- docs: [
231
- '(different program) checked in light system program to derive',
232
- 'cpi_authority_pda and check that this program is the signer of the cpi.'
233
- ];
230
+ docs: ['this program is the signer of the cpi.'];
234
231
  },
235
232
  {
236
233
  name: 'tokenPoolPda';
@@ -324,10 +321,7 @@ type LightCompressedToken = {
324
321
  name: 'selfProgram';
325
322
  isMut: false;
326
323
  isSigner: false;
327
- docs: [
328
- '(different program) checked in light system program to derive',
329
- 'cpi_authority_pda and check that this program is the signer of the cpi.'
330
- ];
324
+ docs: ['this program is the signer of the cpi.'];
331
325
  },
332
326
  {
333
327
  name: 'systemProgram';
@@ -399,10 +393,7 @@ type LightCompressedToken = {
399
393
  name: 'selfProgram';
400
394
  isMut: false;
401
395
  isSigner: false;
402
- docs: [
403
- '(different program) checked in light system program to derive',
404
- 'cpi_authority_pda and check that this program is the signer of the cpi.'
405
- ];
396
+ docs: ['this program is the signer of the cpi.'];
406
397
  },
407
398
  {
408
399
  name: 'systemProgram';
@@ -469,10 +460,7 @@ type LightCompressedToken = {
469
460
  name: 'selfProgram';
470
461
  isMut: false;
471
462
  isSigner: false;
472
- docs: [
473
- '(different program) checked in light system program to derive',
474
- 'cpi_authority_pda and check that this program is the signer of the cpi.'
475
- ];
463
+ docs: ['that this program is the signer of the cpi.'];
476
464
  },
477
465
  {
478
466
  name: 'systemProgram';
@@ -544,10 +532,7 @@ type LightCompressedToken = {
544
532
  name: 'selfProgram';
545
533
  isMut: false;
546
534
  isSigner: false;
547
- docs: [
548
- '(different program) checked in light system program to derive',
549
- 'cpi_authority_pda and check that this program is the signer of the cpi.'
550
- ];
535
+ docs: ['that this program is the signer of the cpi.'];
551
536
  },
552
537
  {
553
538
  name: 'systemProgram';
@@ -712,10 +697,7 @@ type LightCompressedToken = {
712
697
  name: 'selfProgram';
713
698
  isMut: false;
714
699
  isSigner: false;
715
- docs: [
716
- '(different program) checked in light system program to derive',
717
- 'cpi_authority_pda and check that this program is the signer of the cpi.'
718
- ];
700
+ docs: ['this program is the signer of the cpi.'];
719
701
  },
720
702
  {
721
703
  name: 'tokenPoolPda';
@@ -774,6 +756,18 @@ type LightCompressedToken = {
774
756
  'Program owner of the Merkle tree. This will be used for program owned Merkle trees.'
775
757
  ];
776
758
  type: 'publicKey';
759
+ },
760
+ {
761
+ name: 'forester';
762
+ docs: [
763
+ 'Optional privileged forester pubkey, can be set for custom Merkle trees',
764
+ 'without a network fee. Merkle trees without network fees are not',
765
+ 'forested by light foresters. The variable is not used in the account',
766
+ 'compression program but the registry program. The registry program',
767
+ 'implements access control to prevent contention during forester. The',
768
+ 'forester pubkey specified in this struct can bypass contention checks.'
769
+ ];
770
+ type: 'publicKey';
777
771
  }
778
772
  ];
779
773
  };
@@ -1285,6 +1279,13 @@ type LightCompressedToken = {
1285
1279
  'Index of root used in inclusion validity proof.'
1286
1280
  ];
1287
1281
  type: 'u16';
1282
+ },
1283
+ {
1284
+ name: 'readOnly';
1285
+ docs: [
1286
+ 'Placeholder to mark accounts read-only unimplemented set to false.'
1287
+ ];
1288
+ type: 'bool';
1288
1289
  }
1289
1290
  ];
1290
1291
  };
@@ -1493,6 +1494,14 @@ type LightCompressedToken = {
1493
1494
  'implemented yet.'
1494
1495
  ];
1495
1496
  type: 'u64';
1497
+ },
1498
+ {
1499
+ name: 'additionalBytes';
1500
+ docs: [
1501
+ 'Placeholder for bytes of additional accounts which are tied to the',
1502
+ 'Merkle trees operation and need to be rolled over as well.'
1503
+ ];
1504
+ type: 'u64';
1496
1505
  }
1497
1506
  ];
1498
1507
  };
@@ -1651,6 +1660,19 @@ type LightCompressedToken = {
1651
1660
  {
1652
1661
  code: 6020;
1653
1662
  name: 'InvalidDelegateIndex';
1663
+ },
1664
+ {
1665
+ code: 6021;
1666
+ name: 'TokenPoolPdaUndefined';
1667
+ },
1668
+ {
1669
+ code: 6022;
1670
+ name: 'IsTokenPoolPda';
1671
+ msg: 'Compress or decompress recipient is the same account as the token pool pda.';
1672
+ },
1673
+ {
1674
+ code: 6023;
1675
+ name: 'InvalidTokenPoolPda';
1654
1676
  }
1655
1677
  ];
1656
1678
  };
package/package.json CHANGED
@@ -1,28 +1,23 @@
1
1
  {
2
2
  "name": "@lightprotocol/compressed-token",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "JS client to interact with the compressed-token program",
5
5
  "sideEffects": false,
6
- "type": "module",
7
6
  "main": "dist/cjs/node/index.cjs",
8
- "module": "dist/es/node/index.js",
9
- "browser": {
10
- "./dist/cjs/node/index.cjs": "./dist/cjs/browser/index.cjs",
11
- "./dist/es/node/index.js": "./dist/es/browser/index.js"
12
- },
13
- "types": "dist/types/index.d.ts",
7
+ "type": "module",
14
8
  "exports": {
15
9
  ".": {
16
- "import": "./dist/es/node/index.js",
17
10
  "require": "./dist/cjs/node/index.cjs",
18
- "browser": {
19
- "import": "./dist/es/browser/index.js",
20
- "require": "./dist/cjs/browser/index.cjs"
21
- },
22
11
  "types": "./dist/types/index.d.ts",
23
12
  "default": "./dist/cjs/node/index.cjs"
13
+ },
14
+ "./browser": {
15
+ "import": "./dist/es/browser/index.js",
16
+ "require": "./dist/cjs/browser/index.cjs",
17
+ "types": "./dist/types/index.d.ts"
24
18
  }
25
19
  },
20
+ "types": "./dist/types/index.d.ts",
26
21
  "files": [
27
22
  "dist"
28
23
  ],
@@ -42,7 +37,7 @@
42
37
  "license": "Apache-2.0",
43
38
  "peerDependencies": {
44
39
  "@solana/web3.js": "^1.95.0",
45
- "@lightprotocol/stateless.js": "0.7.0"
40
+ "@lightprotocol/stateless.js": "0.9.0"
46
41
  },
47
42
  "dependencies": {
48
43
  "@coral-xyz/anchor": "0.29.0",