Skip to content

Commit

Permalink
clean layout, add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SwenSchaeferjohann committed Jan 5, 2025
1 parent 6e83cee commit 336f27e
Show file tree
Hide file tree
Showing 15 changed files with 489 additions and 421 deletions.
13 changes: 13 additions & 0 deletions js/compressed-token/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@ export const POOL_SEED = Buffer.from('pool');
export const CPI_AUTHORITY_SEED = Buffer.from('cpi_authority');

export const SPL_TOKEN_MINT_RENT_EXEMPT_BALANCE = 1461600;

export const CREATE_TOKEN_POOL_DISCRIMINATOR = Buffer.from([
23, 169, 27, 122, 147, 169, 209, 152,
]);
export const MINT_TO_DISCRIMINATOR = Buffer.from([
241, 34, 48, 186, 37, 179, 123, 192,
]);
export const TRANSFER_DISCRIMINATOR = Buffer.from([
163, 52, 200, 231, 140, 3, 69, 186,
]);
export const COMPRESS_SPL_TOKEN_ACCOUNT_DISCRIMINATOR = Buffer.from([
112, 230, 105, 101, 145, 202, 157, 97,
]);
1 change: 1 addition & 0 deletions js/compressed-token/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from './constants';
export * from './program';
export * from './types';
export * from './actions';
export * from './layout';
Loading

0 comments on commit 336f27e

Please sign in to comment.