* ac: beet* as deps, not peerDeps * ac: expose depth size pairs, add canopyDepth to CMTAccount getters * ac: add tests for CMT Account * ac: update README.md * ac: update lockfile |
||
---|---|---|
.. | ||
idl | ||
src | ||
tests | ||
.gitignore | ||
.npmignore | ||
.solitarc.js | ||
README.md | ||
jest.config.js | ||
package.json | ||
tsconfig.base.json | ||
tsconfig.cjs.json | ||
tsconfig.json | ||
yarn.lock |
README.md
@solana/spl-account-compression
A TypeScript library for interacting with SPL Account Compression and SPL NoOp.
Install
npm install --save @solana/spl-account-compression @solana/web3.js
OR
yarn add @solana/spl-account-compression @solana/web3.js
Examples
Information
This on-chain program provides an interface for composing smart-contracts to create and use SPL ConcurrentMerkleTrees. The primary application of using SPL ConcurrentMerkleTrees is to make edits to off-chain data with on-chain verification.
This program is targeted towards supporting Metaplex Compressed NFTs and may be subject to change.
Note: Using this program requires an indexer to parse transaction information and write relevant information to an off-chain database.
A rough draft of the whitepaper for SPL ConcurrentMerkleTree's can be found here.
Build from Source
-
Install dependencies with
yarn
. -
Generate the Solita SDK with
yarn solita
. -
Then build the SDK with
yarn build
. -
Run tests with
yarn test
. (Expectjest
to detect an open handle that prevents it from exiting naturally)