Skip to content

Commit a322268

Browse files
authored
chore: program anchor 0.30.1 compat (#1092)
* chore: remove import paths and address constraint from instrucstion structs for anchor 0.30.1 compat * update idl * fix format
1 parent d2954b6 commit a322268

File tree

16 files changed

+95
-459
lines changed

16 files changed

+95
-459
lines changed

js/compressed-token/src/idl/light_compressed_token.ts

Lines changed: 16 additions & 210 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,120 +1555,23 @@ export type LightCompressedToken = {
15551555
errors: [
15561556
{
15571557
code: 6000;
1558-
name: 'PublicKeyAmountMissmatch';
1559-
msg: 'public keys and amounts must be of same length';
1558+
name: 'SignerCheckFailed';
1559+
msg: 'Signer check failed';
15601560
},
15611561
{
15621562
code: 6001;
1563-
name: 'ComputeInputSumFailed';
1564-
msg: 'ComputeInputSumFailed';
1563+
name: 'CreateTransferInstructionFailed';
1564+
msg: 'Create transfer instruction failed';
15651565
},
15661566
{
15671567
code: 6002;
1568-
name: 'ComputeOutputSumFailed';
1569-
msg: 'ComputeOutputSumFailed';
1568+
name: 'AccountNotFound';
1569+
msg: 'Account not found';
15701570
},
15711571
{
15721572
code: 6003;
1573-
name: 'ComputeCompressSumFailed';
1574-
msg: 'ComputeCompressSumFailed';
1575-
},
1576-
{
1577-
code: 6004;
1578-
name: 'ComputeDecompressSumFailed';
1579-
msg: 'ComputeDecompressSumFailed';
1580-
},
1581-
{
1582-
code: 6005;
1583-
name: 'SumCheckFailed';
1584-
msg: 'SumCheckFailed';
1585-
},
1586-
{
1587-
code: 6006;
1588-
name: 'DecompressRecipientUndefinedForDecompress';
1589-
msg: 'DecompressRecipientUndefinedForDecompress';
1590-
},
1591-
{
1592-
code: 6007;
1593-
name: 'CompressedPdaUndefinedForDecompress';
1594-
msg: 'CompressedPdaUndefinedForDecompress';
1595-
},
1596-
{
1597-
code: 6008;
1598-
name: 'DeCompressAmountUndefinedForDecompress';
1599-
msg: 'DeCompressAmountUndefinedForDecompress';
1600-
},
1601-
{
1602-
code: 6009;
1603-
name: 'CompressedPdaUndefinedForCompress';
1604-
msg: 'CompressedPdaUndefinedForCompress';
1605-
},
1606-
{
1607-
code: 6010;
1608-
name: 'DeCompressAmountUndefinedForCompress';
1609-
msg: 'DeCompressAmountUndefinedForCompress';
1610-
},
1611-
{
1612-
code: 6011;
1613-
name: 'DelegateSignerCheckFailed';
1614-
msg: 'DelegateSignerCheckFailed';
1615-
},
1616-
{
1617-
code: 6012;
1618-
name: 'MintTooLarge';
1619-
msg: 'Minted amount greater than u64::MAX';
1620-
},
1621-
{
1622-
code: 6013;
1623-
name: 'SplTokenSupplyMismatch';
1624-
msg: 'SplTokenSupplyMismatch';
1625-
},
1626-
{
1627-
code: 6014;
1628-
name: 'HeapMemoryCheckFailed';
1629-
msg: 'HeapMemoryCheckFailed';
1630-
},
1631-
{
1632-
code: 6015;
1633-
name: 'InstructionNotCallable';
1634-
msg: 'The instruction is not callable';
1635-
},
1636-
{
1637-
code: 6016;
1638-
name: 'ArithmeticUnderflow';
1639-
msg: 'ArithmeticUnderflow';
1640-
},
1641-
{
1642-
code: 6017;
1643-
name: 'HashToFieldError';
1644-
msg: 'HashToFieldError';
1645-
},
1646-
{
1647-
code: 6018;
1648-
name: 'InvalidAuthorityMint';
1649-
msg: 'Expected the authority to be also a mint authority';
1650-
},
1651-
{
1652-
code: 6019;
1653-
name: 'InvalidFreezeAuthority';
1654-
msg: 'Provided authority is not the freeze authority';
1655-
},
1656-
{
1657-
code: 6020;
1658-
name: 'InvalidDelegateIndex';
1659-
},
1660-
{
1661-
code: 6021;
1662-
name: 'TokenPoolPdaUndefined';
1663-
},
1664-
{
1665-
code: 6022;
1666-
name: 'IsTokenPoolPda';
1667-
msg: 'Compress or decompress recipient is the same account as the token pool pda.';
1668-
},
1669-
{
1670-
code: 6023;
1671-
name: 'InvalidTokenPoolPda';
1573+
name: 'SerializationError';
1574+
msg: 'Serialization error';
16721575
},
16731576
];
16741577
};
@@ -3234,120 +3137,23 @@ export const IDL: LightCompressedToken = {
32343137
errors: [
32353138
{
32363139
code: 6000,
3237-
name: 'PublicKeyAmountMissmatch',
3238-
msg: 'public keys and amounts must be of same length',
3140+
name: 'SignerCheckFailed',
3141+
msg: 'Signer check failed',
32393142
},
32403143
{
32413144
code: 6001,
3242-
name: 'ComputeInputSumFailed',
3243-
msg: 'ComputeInputSumFailed',
3145+
name: 'CreateTransferInstructionFailed',
3146+
msg: 'Create transfer instruction failed',
32443147
},
32453148
{
32463149
code: 6002,
3247-
name: 'ComputeOutputSumFailed',
3248-
msg: 'ComputeOutputSumFailed',
3150+
name: 'AccountNotFound',
3151+
msg: 'Account not found',
32493152
},
32503153
{
32513154
code: 6003,
3252-
name: 'ComputeCompressSumFailed',
3253-
msg: 'ComputeCompressSumFailed',
3254-
},
3255-
{
3256-
code: 6004,
3257-
name: 'ComputeDecompressSumFailed',
3258-
msg: 'ComputeDecompressSumFailed',
3259-
},
3260-
{
3261-
code: 6005,
3262-
name: 'SumCheckFailed',
3263-
msg: 'SumCheckFailed',
3264-
},
3265-
{
3266-
code: 6006,
3267-
name: 'DecompressRecipientUndefinedForDecompress',
3268-
msg: 'DecompressRecipientUndefinedForDecompress',
3269-
},
3270-
{
3271-
code: 6007,
3272-
name: 'CompressedPdaUndefinedForDecompress',
3273-
msg: 'CompressedPdaUndefinedForDecompress',
3274-
},
3275-
{
3276-
code: 6008,
3277-
name: 'DeCompressAmountUndefinedForDecompress',
3278-
msg: 'DeCompressAmountUndefinedForDecompress',
3279-
},
3280-
{
3281-
code: 6009,
3282-
name: 'CompressedPdaUndefinedForCompress',
3283-
msg: 'CompressedPdaUndefinedForCompress',
3284-
},
3285-
{
3286-
code: 6010,
3287-
name: 'DeCompressAmountUndefinedForCompress',
3288-
msg: 'DeCompressAmountUndefinedForCompress',
3289-
},
3290-
{
3291-
code: 6011,
3292-
name: 'DelegateSignerCheckFailed',
3293-
msg: 'DelegateSignerCheckFailed',
3294-
},
3295-
{
3296-
code: 6012,
3297-
name: 'MintTooLarge',
3298-
msg: 'Minted amount greater than u64::MAX',
3299-
},
3300-
{
3301-
code: 6013,
3302-
name: 'SplTokenSupplyMismatch',
3303-
msg: 'SplTokenSupplyMismatch',
3304-
},
3305-
{
3306-
code: 6014,
3307-
name: 'HeapMemoryCheckFailed',
3308-
msg: 'HeapMemoryCheckFailed',
3309-
},
3310-
{
3311-
code: 6015,
3312-
name: 'InstructionNotCallable',
3313-
msg: 'The instruction is not callable',
3314-
},
3315-
{
3316-
code: 6016,
3317-
name: 'ArithmeticUnderflow',
3318-
msg: 'ArithmeticUnderflow',
3319-
},
3320-
{
3321-
code: 6017,
3322-
name: 'HashToFieldError',
3323-
msg: 'HashToFieldError',
3324-
},
3325-
{
3326-
code: 6018,
3327-
name: 'InvalidAuthorityMint',
3328-
msg: 'Expected the authority to be also a mint authority',
3329-
},
3330-
{
3331-
code: 6019,
3332-
name: 'InvalidFreezeAuthority',
3333-
msg: 'Provided authority is not the freeze authority',
3334-
},
3335-
{
3336-
code: 6020,
3337-
name: 'InvalidDelegateIndex',
3338-
},
3339-
{
3340-
code: 6021,
3341-
name: 'TokenPoolPdaUndefined',
3342-
},
3343-
{
3344-
code: 6022,
3345-
name: 'IsTokenPoolPda',
3346-
msg: 'Compress or decompress recipient is the same account as the token pool pda.',
3347-
},
3348-
{
3349-
code: 6023,
3350-
name: 'InvalidTokenPoolPda',
3155+
name: 'SerializationError',
3156+
msg: 'Serialization error',
33513157
},
33523158
],
33533159
};

0 commit comments

Comments
 (0)