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