Skip to content

Commit

Permalink
cleanup, updated idls
Browse files Browse the repository at this point in the history
  • Loading branch information
ananas-block committed Jul 1, 2024
1 parent f3cbb90 commit 984de4b
Show file tree
Hide file tree
Showing 8 changed files with 238 additions and 602 deletions.
242 changes: 18 additions & 224 deletions js/compressed-token/src/idl/light_compressed_token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,24 +626,6 @@ export type LightCompressedToken = {
];
},
];
accounts: [
{
name: 'RegisteredProgram';
type: {
kind: 'struct';
fields: [
{
name: 'registeredProgramId';
type: 'publicKey';
},
{
name: 'groupAuthorityPda';
type: 'publicKey';
},
];
};
},
];
types: [
{
name: 'AccessMetadata';
Expand All @@ -658,7 +640,7 @@ export type LightCompressedToken = {
{
name: 'programOwner';
docs: [
'Delegate of the Merkle tree. This will be used for program owned Merkle trees.',
'Program owner of the Merkle tree. This will be used for program owned Merkle trees.',
];
type: 'publicKey';
},
Expand Down Expand Up @@ -1363,108 +1345,23 @@ export type LightCompressedToken = {
errors: [
{
code: 6000;
name: 'PublicKeyAmountMissmatch';
msg: 'public keys and amounts must be of same length';
name: 'SignerCheckFailed';
msg: 'Signer check failed';
},
{
code: 6001;
name: 'SignerCheckFailed';
msg: 'SignerCheckFailed';
name: 'CreateTransferInstructionFailed';
msg: 'Create transfer instruction failed';
},
{
code: 6002;
name: 'ComputeInputSumFailed';
msg: 'ComputeInputSumFailed';
name: 'AccountNotFound';
msg: 'Account not found';
},
{
code: 6003;
name: 'ComputeOutputSumFailed';
msg: 'ComputeOutputSumFailed';
},
{
code: 6004;
name: 'ComputeCompressSumFailed';
msg: 'ComputeCompressSumFailed';
},
{
code: 6005;
name: 'ComputeDecompressSumFailed';
msg: 'ComputeDecompressSumFailed';
},
{
code: 6006;
name: 'SumCheckFailed';
msg: 'SumCheckFailed';
},
{
code: 6007;
name: 'DecompressRecipientUndefinedForDecompress';
msg: 'DecompressRecipientUndefinedForDecompress';
},
{
code: 6008;
name: 'CompressedPdaUndefinedForDecompress';
msg: 'CompressedPdaUndefinedForDecompress';
},
{
code: 6009;
name: 'DeCompressAmountUndefinedForDecompress';
msg: 'DeCompressAmountUndefinedForDecompress';
},
{
code: 6010;
name: 'CompressedPdaUndefinedForCompress';
msg: 'CompressedPdaUndefinedForCompress';
},
{
code: 6011;
name: 'DeCompressAmountUndefinedForCompress';
msg: 'DeCompressAmountUndefinedForCompress';
},
{
code: 6012;
name: 'DelegateUndefined';
msg: 'DelegateUndefined while delegated amount is defined';
},
{
code: 6013;
name: 'DelegateSignerCheckFailed';
msg: 'DelegateSignerCheckFailed';
},
{
code: 6014;
name: 'SplTokenSupplyMismatch';
msg: 'SplTokenSupplyMismatch';
},
{
code: 6015;
name: 'HeapMemoryCheckFailed';
msg: 'HeapMemoryCheckFailed';
},
{
code: 6016;
name: 'InstructionNotCallable';
msg: 'The instruction is not callable';
},
{
code: 6017;
name: 'ArithmeticUnderflow';
msg: 'ArithmeticUnderflow';
},
{
code: 6018;
name: 'InvalidDelegate';
msg: 'InvalidDelegate';
},
{
code: 6019;
name: 'HashToFieldError';
msg: 'HashToFieldError';
},
{
code: 6020;
name: 'InvalidMint';
msg: 'InvalidMint';
name: 'SerializationError';
msg: 'Serialization error';
},
];
};
Expand Down Expand Up @@ -2096,24 +1993,6 @@ export const IDL: LightCompressedToken = {
],
},
],
accounts: [
{
name: 'RegisteredProgram',
type: {
kind: 'struct',
fields: [
{
name: 'registeredProgramId',
type: 'publicKey',
},
{
name: 'groupAuthorityPda',
type: 'publicKey',
},
],
},
},
],
types: [
{
name: 'AccessMetadata',
Expand All @@ -2128,7 +2007,7 @@ export const IDL: LightCompressedToken = {
{
name: 'programOwner',
docs: [
'Delegate of the Merkle tree. This will be used for program owned Merkle trees.',
'Program owner of the Merkle tree. This will be used for program owned Merkle trees.',
],
type: 'publicKey',
},
Expand Down Expand Up @@ -2838,108 +2717,23 @@ export const IDL: LightCompressedToken = {
errors: [
{
code: 6000,
name: 'PublicKeyAmountMissmatch',
msg: 'public keys and amounts must be of same length',
name: 'SignerCheckFailed',
msg: 'Signer check failed',
},
{
code: 6001,
name: 'SignerCheckFailed',
msg: 'SignerCheckFailed',
name: 'CreateTransferInstructionFailed',
msg: 'Create transfer instruction failed',
},
{
code: 6002,
name: 'ComputeInputSumFailed',
msg: 'ComputeInputSumFailed',
name: 'AccountNotFound',
msg: 'Account not found',
},
{
code: 6003,
name: 'ComputeOutputSumFailed',
msg: 'ComputeOutputSumFailed',
},
{
code: 6004,
name: 'ComputeCompressSumFailed',
msg: 'ComputeCompressSumFailed',
},
{
code: 6005,
name: 'ComputeDecompressSumFailed',
msg: 'ComputeDecompressSumFailed',
},
{
code: 6006,
name: 'SumCheckFailed',
msg: 'SumCheckFailed',
},
{
code: 6007,
name: 'DecompressRecipientUndefinedForDecompress',
msg: 'DecompressRecipientUndefinedForDecompress',
},
{
code: 6008,
name: 'CompressedPdaUndefinedForDecompress',
msg: 'CompressedPdaUndefinedForDecompress',
},
{
code: 6009,
name: 'DeCompressAmountUndefinedForDecompress',
msg: 'DeCompressAmountUndefinedForDecompress',
},
{
code: 6010,
name: 'CompressedPdaUndefinedForCompress',
msg: 'CompressedPdaUndefinedForCompress',
},
{
code: 6011,
name: 'DeCompressAmountUndefinedForCompress',
msg: 'DeCompressAmountUndefinedForCompress',
},
{
code: 6012,
name: 'DelegateUndefined',
msg: 'DelegateUndefined while delegated amount is defined',
},
{
code: 6013,
name: 'DelegateSignerCheckFailed',
msg: 'DelegateSignerCheckFailed',
},
{
code: 6014,
name: 'SplTokenSupplyMismatch',
msg: 'SplTokenSupplyMismatch',
},
{
code: 6015,
name: 'HeapMemoryCheckFailed',
msg: 'HeapMemoryCheckFailed',
},
{
code: 6016,
name: 'InstructionNotCallable',
msg: 'The instruction is not callable',
},
{
code: 6017,
name: 'ArithmeticUnderflow',
msg: 'ArithmeticUnderflow',
},
{
code: 6018,
name: 'InvalidDelegate',
msg: 'InvalidDelegate',
},
{
code: 6019,
name: 'HashToFieldError',
msg: 'HashToFieldError',
},
{
code: 6020,
name: 'InvalidMint',
msg: 'InvalidMint',
name: 'SerializationError',
msg: 'Serialization error',
},
],
};
Loading

0 comments on commit 984de4b

Please sign in to comment.