@lightprotocol/compressed-token 0.10.1 → 0.11.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.
@@ -1559,120 +1559,23 @@ type LightCompressedToken = {
1559
1559
  errors: [
1560
1560
  {
1561
1561
  code: 6000;
1562
- name: 'PublicKeyAmountMissmatch';
1563
- msg: 'public keys and amounts must be of same length';
1562
+ name: 'SignerCheckFailed';
1563
+ msg: 'Signer check failed';
1564
1564
  },
1565
1565
  {
1566
1566
  code: 6001;
1567
- name: 'ComputeInputSumFailed';
1568
- msg: 'ComputeInputSumFailed';
1567
+ name: 'CreateTransferInstructionFailed';
1568
+ msg: 'Create transfer instruction failed';
1569
1569
  },
1570
1570
  {
1571
1571
  code: 6002;
1572
- name: 'ComputeOutputSumFailed';
1573
- msg: 'ComputeOutputSumFailed';
1572
+ name: 'AccountNotFound';
1573
+ msg: 'Account not found';
1574
1574
  },
1575
1575
  {
1576
1576
  code: 6003;
1577
- name: 'ComputeCompressSumFailed';
1578
- msg: 'ComputeCompressSumFailed';
1579
- },
1580
- {
1581
- code: 6004;
1582
- name: 'ComputeDecompressSumFailed';
1583
- msg: 'ComputeDecompressSumFailed';
1584
- },
1585
- {
1586
- code: 6005;
1587
- name: 'SumCheckFailed';
1588
- msg: 'SumCheckFailed';
1589
- },
1590
- {
1591
- code: 6006;
1592
- name: 'DecompressRecipientUndefinedForDecompress';
1593
- msg: 'DecompressRecipientUndefinedForDecompress';
1594
- },
1595
- {
1596
- code: 6007;
1597
- name: 'CompressedPdaUndefinedForDecompress';
1598
- msg: 'CompressedPdaUndefinedForDecompress';
1599
- },
1600
- {
1601
- code: 6008;
1602
- name: 'DeCompressAmountUndefinedForDecompress';
1603
- msg: 'DeCompressAmountUndefinedForDecompress';
1604
- },
1605
- {
1606
- code: 6009;
1607
- name: 'CompressedPdaUndefinedForCompress';
1608
- msg: 'CompressedPdaUndefinedForCompress';
1609
- },
1610
- {
1611
- code: 6010;
1612
- name: 'DeCompressAmountUndefinedForCompress';
1613
- msg: 'DeCompressAmountUndefinedForCompress';
1614
- },
1615
- {
1616
- code: 6011;
1617
- name: 'DelegateSignerCheckFailed';
1618
- msg: 'DelegateSignerCheckFailed';
1619
- },
1620
- {
1621
- code: 6012;
1622
- name: 'MintTooLarge';
1623
- msg: 'Minted amount greater than u64::MAX';
1624
- },
1625
- {
1626
- code: 6013;
1627
- name: 'SplTokenSupplyMismatch';
1628
- msg: 'SplTokenSupplyMismatch';
1629
- },
1630
- {
1631
- code: 6014;
1632
- name: 'HeapMemoryCheckFailed';
1633
- msg: 'HeapMemoryCheckFailed';
1634
- },
1635
- {
1636
- code: 6015;
1637
- name: 'InstructionNotCallable';
1638
- msg: 'The instruction is not callable';
1639
- },
1640
- {
1641
- code: 6016;
1642
- name: 'ArithmeticUnderflow';
1643
- msg: 'ArithmeticUnderflow';
1644
- },
1645
- {
1646
- code: 6017;
1647
- name: 'HashToFieldError';
1648
- msg: 'HashToFieldError';
1649
- },
1650
- {
1651
- code: 6018;
1652
- name: 'InvalidAuthorityMint';
1653
- msg: 'Expected the authority to be also a mint authority';
1654
- },
1655
- {
1656
- code: 6019;
1657
- name: 'InvalidFreezeAuthority';
1658
- msg: 'Provided authority is not the freeze authority';
1659
- },
1660
- {
1661
- code: 6020;
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';
1577
+ name: 'SerializationError';
1578
+ msg: 'Serialization error';
1676
1579
  }
1677
1580
  ];
1678
1581
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/compressed-token",
3
- "version": "0.10.1",
3
+ "version": "0.11.0",
4
4
  "description": "JS client to interact with the compressed-token program",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/node/index.cjs",
@@ -37,7 +37,7 @@
37
37
  "license": "Apache-2.0",
38
38
  "peerDependencies": {
39
39
  "@solana/web3.js": "^1.95.0",
40
- "@lightprotocol/stateless.js": "0.10.1"
40
+ "@lightprotocol/stateless.js": "0.11.0"
41
41
  },
42
42
  "dependencies": {
43
43
  "@coral-xyz/anchor": "0.29.0",
@@ -75,8 +75,8 @@
75
75
  "tslib": "^2.6.2",
76
76
  "typescript": "^5.5.3",
77
77
  "vitest": "^1.6.0",
78
- "@lightprotocol/programs": "0.3.0",
79
- "@lightprotocol/hasher.rs": "0.2.0"
78
+ "@lightprotocol/hasher.rs": "0.2.0",
79
+ "@lightprotocol/programs": "0.3.0"
80
80
  },
81
81
  "nx": {
82
82
  "targets": {
@@ -103,7 +103,7 @@
103
103
  "test:e2e:compress": "pnpm test-validator && vitest run tests/e2e/compress.test.ts --reporter=verbose",
104
104
  "test:e2e:decompress": "pnpm test-validator && vitest run tests/e2e/decompress.test.ts --reporter=verbose",
105
105
  "test:e2e:rpc-token-interop": "pnpm test-validator && vitest run tests/e2e/rpc-token-interop.test.ts --reporter=verbose",
106
- "test:e2e:all": "pnpm test-validator && vitest run tests/e2e/create-mint.test.ts && vitest run tests/e2e/mint-to.test.ts && vitest run tests/e2e/transfer.test.ts && vitest run tests/e2e/compress.test.ts && vitest run tests/e2e/decompress.test.ts && vitest run tests/e2e/register-mint.test.ts && vitest run tests/e2e/approve-and-mint-to.test.ts && vitest run tests/e2e/rpc-token-interop.test.ts",
106
+ "test:e2e:all": "pnpm test-validator && vitest run tests/e2e/create-mint.test.ts && vitest run tests/e2e/mint-to.test.ts && vitest run tests/e2e/transfer.test.ts && vitest run tests/e2e/compress.test.ts && vitest run tests/e2e/decompress.test.ts && vitest run tests/e2e/register-mint.test.ts && vitest run tests/e2e/approve-and-mint-to.test.ts",
107
107
  "pull-idl": "../../scripts/push-compressed-token-idl.sh",
108
108
  "build": "rimraf dist && pnpm pull-idl && pnpm build:bundle",
109
109
  "build:bundle": "rollup -c",