This repository was archived by the owner on Mar 11, 2025. It is now read-only.
SPL Account Compression JS - v0.1.3
Adds several features in addition to matching spl-account-compression
v0.1.4's updated accounts interface (renaming Wrapper to Noop)
Fixes:
- Fix
@metaplex-foundation/beet
and@metaplex-foundation/beet-solana
dependencies by moving them to deps (from devDeps)
Additions:
- Add docs via typedoc
- Add linting & prettier
- Add all depth + size pairs for Concurrent Merkle Tree initialization
- Export the MerkleTree class used in the tests, so developers have rudimentary way of indexing their applications
Breaking changes:
- instructions:
- Helper functions reordered keys: tree, then authority, then arguments
- Helper functions now take PublicKeys, not Keypairs
- Initialize helper functions now take ValidDepthSizePair rather than raw numbers
- accounts:
- ConcurrentMerkleTreeAccount getActiveIndex renamed to getCurrentBufferIndex
Readme added examples:
- Creating a tree
- Minting a leaf to the tree
- Using the provided merkle tree lib to keep track of off-chain data
Tests:
- Test all initialization pairs
Note:
Skipped v0.1.2