@lightprotocol/compressed-token 0.14.0 → 0.14.2

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.
@@ -1553,23 +1553,128 @@ type LightCompressedToken = {
1553
1553
  errors: [
1554
1554
  {
1555
1555
  code: 6000;
1556
- name: 'SignerCheckFailed';
1557
- msg: 'Signer check failed';
1556
+ name: 'PublicKeyAmountMissmatch';
1557
+ msg: 'public keys and amounts must be of same length';
1558
1558
  },
1559
1559
  {
1560
1560
  code: 6001;
1561
- name: 'CreateTransferInstructionFailed';
1562
- msg: 'Create transfer instruction failed';
1561
+ name: 'ComputeInputSumFailed';
1562
+ msg: 'ComputeInputSumFailed';
1563
1563
  },
1564
1564
  {
1565
1565
  code: 6002;
1566
- name: 'AccountNotFound';
1567
- msg: 'Account not found';
1566
+ name: 'ComputeOutputSumFailed';
1567
+ msg: 'ComputeOutputSumFailed';
1568
1568
  },
1569
1569
  {
1570
1570
  code: 6003;
1571
- name: 'SerializationError';
1572
- msg: 'Serialization error';
1571
+ name: 'ComputeCompressSumFailed';
1572
+ msg: 'ComputeCompressSumFailed';
1573
+ },
1574
+ {
1575
+ code: 6004;
1576
+ name: 'ComputeDecompressSumFailed';
1577
+ msg: 'ComputeDecompressSumFailed';
1578
+ },
1579
+ {
1580
+ code: 6005;
1581
+ name: 'SumCheckFailed';
1582
+ msg: 'SumCheckFailed';
1583
+ },
1584
+ {
1585
+ code: 6006;
1586
+ name: 'DecompressRecipientUndefinedForDecompress';
1587
+ msg: 'DecompressRecipientUndefinedForDecompress';
1588
+ },
1589
+ {
1590
+ code: 6007;
1591
+ name: 'CompressedPdaUndefinedForDecompress';
1592
+ msg: 'CompressedPdaUndefinedForDecompress';
1593
+ },
1594
+ {
1595
+ code: 6008;
1596
+ name: 'DeCompressAmountUndefinedForDecompress';
1597
+ msg: 'DeCompressAmountUndefinedForDecompress';
1598
+ },
1599
+ {
1600
+ code: 6009;
1601
+ name: 'CompressedPdaUndefinedForCompress';
1602
+ msg: 'CompressedPdaUndefinedForCompress';
1603
+ },
1604
+ {
1605
+ code: 6010;
1606
+ name: 'DeCompressAmountUndefinedForCompress';
1607
+ msg: 'DeCompressAmountUndefinedForCompress';
1608
+ },
1609
+ {
1610
+ code: 6011;
1611
+ name: 'DelegateSignerCheckFailed';
1612
+ msg: 'DelegateSignerCheckFailed';
1613
+ },
1614
+ {
1615
+ code: 6012;
1616
+ name: 'MintTooLarge';
1617
+ msg: 'Minted amount greater than u64::MAX';
1618
+ },
1619
+ {
1620
+ code: 6013;
1621
+ name: 'SplTokenSupplyMismatch';
1622
+ msg: 'SplTokenSupplyMismatch';
1623
+ },
1624
+ {
1625
+ code: 6014;
1626
+ name: 'HeapMemoryCheckFailed';
1627
+ msg: 'HeapMemoryCheckFailed';
1628
+ },
1629
+ {
1630
+ code: 6015;
1631
+ name: 'InstructionNotCallable';
1632
+ msg: 'The instruction is not callable';
1633
+ },
1634
+ {
1635
+ code: 6016;
1636
+ name: 'ArithmeticUnderflow';
1637
+ msg: 'ArithmeticUnderflow';
1638
+ },
1639
+ {
1640
+ code: 6017;
1641
+ name: 'HashToFieldError';
1642
+ msg: 'HashToFieldError';
1643
+ },
1644
+ {
1645
+ code: 6018;
1646
+ name: 'InvalidAuthorityMint';
1647
+ msg: 'Expected the authority to be also a mint authority';
1648
+ },
1649
+ {
1650
+ code: 6019;
1651
+ name: 'InvalidFreezeAuthority';
1652
+ msg: 'Provided authority is not the freeze authority';
1653
+ },
1654
+ {
1655
+ code: 6020;
1656
+ name: 'InvalidDelegateIndex';
1657
+ },
1658
+ {
1659
+ code: 6021;
1660
+ name: 'TokenPoolPdaUndefined';
1661
+ },
1662
+ {
1663
+ code: 6022;
1664
+ name: 'IsTokenPoolPda';
1665
+ msg: 'Compress or decompress recipient is the same account as the token pool pda.';
1666
+ },
1667
+ {
1668
+ code: 6023;
1669
+ name: 'InvalidTokenPoolPda';
1670
+ },
1671
+ {
1672
+ code: 6024;
1673
+ name: 'NoInputTokenAccountsProvided';
1674
+ },
1675
+ {
1676
+ code: 6025;
1677
+ name: 'NoInputsProvided';
1573
1678
  }
1574
1679
  ];
1575
1680
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/compressed-token",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "JS client to interact with the compressed-token program",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/node/index.cjs",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "license": "Apache-2.0",
38
38
  "peerDependencies": {
39
- "@lightprotocol/stateless.js": "0.14.1"
39
+ "@lightprotocol/stateless.js": "0.14.3"
40
40
  },
41
41
  "dependencies": {
42
42
  "@coral-xyz/anchor": "0.29.0",
@@ -95,7 +95,7 @@
95
95
  "test-all": "vitest run",
96
96
  "test:unit:all": "EXCLUDE_E2E=true vitest run",
97
97
  "test-all:verbose": "vitest run --reporter=verbose",
98
- "test-validator": "./../../cli/test_bin/run test-validator",
98
+ "test-validator": "./../../cli/test_bin/run test-validator --prover-run-mode rpc",
99
99
  "test:e2e:create-mint": "pnpm test-validator && vitest run tests/e2e/create-mint.test.ts",
100
100
  "test:e2e:create-token-pool": "pnpm test-validator && vitest run tests/e2e/create-token-pool.test.ts",
101
101
  "test:e2e:mint-to": "pnpm test-validator && vitest run tests/e2e/mint-to.test.ts --reporter=verbose",