@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.
@@ -5,7 +5,7 @@ var web3_js = require('@solana/web3.js');
5
5
  var anchor = require('@coral-xyz/anchor');
6
6
 
7
7
  const IDL = {
8
- version: '0.5.0',
8
+ version: '0.6.2',
9
9
  name: 'light_compressed_token',
10
10
  instructions: [
11
11
  {
@@ -1561,23 +1561,128 @@ const IDL = {
1561
1561
  errors: [
1562
1562
  {
1563
1563
  code: 6000,
1564
- name: 'SignerCheckFailed',
1565
- msg: 'Signer check failed',
1564
+ name: 'PublicKeyAmountMissmatch',
1565
+ msg: 'public keys and amounts must be of same length',
1566
1566
  },
1567
1567
  {
1568
1568
  code: 6001,
1569
- name: 'CreateTransferInstructionFailed',
1570
- msg: 'Create transfer instruction failed',
1569
+ name: 'ComputeInputSumFailed',
1570
+ msg: 'ComputeInputSumFailed',
1571
1571
  },
1572
1572
  {
1573
1573
  code: 6002,
1574
- name: 'AccountNotFound',
1575
- msg: 'Account not found',
1574
+ name: 'ComputeOutputSumFailed',
1575
+ msg: 'ComputeOutputSumFailed',
1576
1576
  },
1577
1577
  {
1578
1578
  code: 6003,
1579
- name: 'SerializationError',
1580
- msg: 'Serialization error',
1579
+ name: 'ComputeCompressSumFailed',
1580
+ msg: 'ComputeCompressSumFailed',
1581
+ },
1582
+ {
1583
+ code: 6004,
1584
+ name: 'ComputeDecompressSumFailed',
1585
+ msg: 'ComputeDecompressSumFailed',
1586
+ },
1587
+ {
1588
+ code: 6005,
1589
+ name: 'SumCheckFailed',
1590
+ msg: 'SumCheckFailed',
1591
+ },
1592
+ {
1593
+ code: 6006,
1594
+ name: 'DecompressRecipientUndefinedForDecompress',
1595
+ msg: 'DecompressRecipientUndefinedForDecompress',
1596
+ },
1597
+ {
1598
+ code: 6007,
1599
+ name: 'CompressedPdaUndefinedForDecompress',
1600
+ msg: 'CompressedPdaUndefinedForDecompress',
1601
+ },
1602
+ {
1603
+ code: 6008,
1604
+ name: 'DeCompressAmountUndefinedForDecompress',
1605
+ msg: 'DeCompressAmountUndefinedForDecompress',
1606
+ },
1607
+ {
1608
+ code: 6009,
1609
+ name: 'CompressedPdaUndefinedForCompress',
1610
+ msg: 'CompressedPdaUndefinedForCompress',
1611
+ },
1612
+ {
1613
+ code: 6010,
1614
+ name: 'DeCompressAmountUndefinedForCompress',
1615
+ msg: 'DeCompressAmountUndefinedForCompress',
1616
+ },
1617
+ {
1618
+ code: 6011,
1619
+ name: 'DelegateSignerCheckFailed',
1620
+ msg: 'DelegateSignerCheckFailed',
1621
+ },
1622
+ {
1623
+ code: 6012,
1624
+ name: 'MintTooLarge',
1625
+ msg: 'Minted amount greater than u64::MAX',
1626
+ },
1627
+ {
1628
+ code: 6013,
1629
+ name: 'SplTokenSupplyMismatch',
1630
+ msg: 'SplTokenSupplyMismatch',
1631
+ },
1632
+ {
1633
+ code: 6014,
1634
+ name: 'HeapMemoryCheckFailed',
1635
+ msg: 'HeapMemoryCheckFailed',
1636
+ },
1637
+ {
1638
+ code: 6015,
1639
+ name: 'InstructionNotCallable',
1640
+ msg: 'The instruction is not callable',
1641
+ },
1642
+ {
1643
+ code: 6016,
1644
+ name: 'ArithmeticUnderflow',
1645
+ msg: 'ArithmeticUnderflow',
1646
+ },
1647
+ {
1648
+ code: 6017,
1649
+ name: 'HashToFieldError',
1650
+ msg: 'HashToFieldError',
1651
+ },
1652
+ {
1653
+ code: 6018,
1654
+ name: 'InvalidAuthorityMint',
1655
+ msg: 'Expected the authority to be also a mint authority',
1656
+ },
1657
+ {
1658
+ code: 6019,
1659
+ name: 'InvalidFreezeAuthority',
1660
+ msg: 'Provided authority is not the freeze authority',
1661
+ },
1662
+ {
1663
+ code: 6020,
1664
+ name: 'InvalidDelegateIndex',
1665
+ },
1666
+ {
1667
+ code: 6021,
1668
+ name: 'TokenPoolPdaUndefined',
1669
+ },
1670
+ {
1671
+ code: 6022,
1672
+ name: 'IsTokenPoolPda',
1673
+ msg: 'Compress or decompress recipient is the same account as the token pool pda.',
1674
+ },
1675
+ {
1676
+ code: 6023,
1677
+ name: 'InvalidTokenPoolPda',
1678
+ },
1679
+ {
1680
+ code: 6024,
1681
+ name: 'NoInputTokenAccountsProvided',
1682
+ },
1683
+ {
1684
+ code: 6025,
1685
+ name: 'NoInputsProvided',
1581
1686
  },
1582
1687
  ],
1583
1688
  };
@@ -6791,6 +6896,9 @@ class CompressedTokenProgram {
6791
6896
  stateless_js.defaultTestStateTreeAccounts().addressQueue,
6792
6897
  this.programId,
6793
6898
  TOKEN_PROGRAM_ID,
6899
+ web3_js.SystemProgram.programId,
6900
+ web3_js.ComputeBudgetProgram.programId,
6901
+ ASSOCIATED_TOKEN_PROGRAM_ID,
6794
6902
  authority,
6795
6903
  ...optionalMintKeys,
6796
6904
  ...(remainingAccounts !== null && remainingAccounts !== void 0 ? remainingAccounts : []),