@solana/spl-account-compression

v0.4.0
SPL Account Compression Program JS API

docs

rm -rf docs/ && typedoc --out docs

lint

set -ex; eslint . --ext .js,.ts

test

start-server-and-test start-validator http://127.0.0.1:8899/health run-tests

build

rm -rf dist/ && tsc -p tsconfig.json

lint:fix

eslint . --fix --ext .js,.ts

test:e2e

start-server-and-test start-validator http://127.0.0.1:8899/health run-tests:e2e

run-tests

jest tests --detectOpenHandles

deploy:docs

npm run docs && gh-pages --dest account-compression/sdk --dist docs --dotfiles

test:events

start-server-and-test start-validator http://127.0.0.1:8899/health run-tests:events

build:program

cargo build-sbf --manifest-path=../programs/account-compression/Cargo.toml && cargo build-sbf --manifest-path=../programs/noop/Cargo.toml

run-tests:e2e

jest accountCompression.test.ts --detectOpenHandles

test:accounts

start-server-and-test start-validator http://127.0.0.1:8899/health run-tests:accounts

start-validator

solana-test-validator --reset --quiet --bpf-program cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK ../target/deploy/spl_account_compression.so --bpf-program noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV ../target/deploy/spl_noop.so --account 27QMkDMpBoAhmWj6xxQNYdqXZL5nnC8tkZcEtkNxCqeX pre-batch-init-tree-account.json

run-tests:events

jest tests/events --detectOpenHandles

test:merkle-tree

jest tests/merkleTree.test.ts --detectOpenHandles

run-tests:accounts

jest tests/accounts --detectOpenHandles
npm i @solana/[email protected]

Metadata

  • Apache-2.0
  • >=16
  • Solana Labs Maintainers
  • released 9/13/2024

Downloads