@lightprotocol/compressed-token 0.11.0 → 0.11.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.
@@ -3,7 +3,7 @@ import { PublicKey, SystemProgram, TransactionInstruction, Transaction, sendAndC
3
3
  import { AnchorProvider, setProvider, Program, BN } from '@coral-xyz/anchor';
4
4
 
5
5
  const IDL = {
6
- version: '0.5.0',
6
+ version: '0.6.2',
7
7
  name: 'light_compressed_token',
8
8
  instructions: [
9
9
  {
@@ -1559,23 +1559,128 @@ const IDL = {
1559
1559
  errors: [
1560
1560
  {
1561
1561
  code: 6000,
1562
- name: 'SignerCheckFailed',
1563
- msg: 'Signer check failed',
1562
+ name: 'PublicKeyAmountMissmatch',
1563
+ msg: 'public keys and amounts must be of same length',
1564
1564
  },
1565
1565
  {
1566
1566
  code: 6001,
1567
- name: 'CreateTransferInstructionFailed',
1568
- msg: 'Create transfer instruction failed',
1567
+ name: 'ComputeInputSumFailed',
1568
+ msg: 'ComputeInputSumFailed',
1569
1569
  },
1570
1570
  {
1571
1571
  code: 6002,
1572
- name: 'AccountNotFound',
1573
- msg: 'Account not found',
1572
+ name: 'ComputeOutputSumFailed',
1573
+ msg: 'ComputeOutputSumFailed',
1574
1574
  },
1575
1575
  {
1576
1576
  code: 6003,
1577
- name: 'SerializationError',
1578
- msg: 'Serialization error',
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',
1676
+ },
1677
+ {
1678
+ code: 6024,
1679
+ name: 'NoInputTokenAccountsProvided',
1680
+ },
1681
+ {
1682
+ code: 6025,
1683
+ name: 'NoInputsProvided',
1579
1684
  },
1580
1685
  ],
1581
1686
  };
@@ -6793,6 +6898,9 @@ class CompressedTokenProgram {
6793
6898
  defaultTestStateTreeAccounts().addressQueue,
6794
6899
  this.programId,
6795
6900
  TOKEN_PROGRAM_ID,
6901
+ SystemProgram.programId,
6902
+ ComputeBudgetProgram.programId,
6903
+ ASSOCIATED_TOKEN_PROGRAM_ID,
6796
6904
  authority,
6797
6905
  ...optionalMintKeys,
6798
6906
  ...(remainingAccounts ?? []),