* cmt: add check for leaf index OOB * ac: add checks for leaf index OOB * ac: add tests for leaf index OOB * nit: fix some poor logging & unused imports * cmt: add initialization checks before public methods * cmt: update LeafContentsModified error message * cmt: make tests easier to read, add PartialEq, Eq to CMTError * ac: make LeafOOB error the last error in the struct to prevent breaking changes * ac: fmt fix |
||
---|---|---|
.. | ||
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)