@penumbra-zone/wasm

v30.1.0
The Penumbra core repo has a ton of utilities and functions that are critical to developing an app that interacts with the Penumbra chain. However, it is written in Rust. This package exists to bridge the gap between the Rust environment and the web. This

build

tsc --build --verbose

clean

rm -rfv dist *.tsbuildinfo wasm package penumbra-zone-*.tgz

clean:rust

cargo clean --manifest-path ./crate/Cargo.toml

compile

cd crate && wasm-pack build --no-pack --target bundler --out-name index --out-dir ../wasm

dev:compile

cargo watch -C ./crate --postpone -- $npm_execpath run compile

dev:pack

tsc-watch --onSuccess "$npm_execpath pack"

format:rust

cd crate && cargo fmt --all

lint

eslint src

lint:fix

eslint src --fix

lint:rust

cd crate && cargo fmt --all -- --check && cargo clippy -- -D warnings && cargo clippy --tests -- -D warnings

lint:strict

tsc --noEmit && eslint src --max-warnings 0

postcompile

touch ./wasm/.npmignore

test

vitest run

test:cargo

cd crate && cargo test --release

test:wasm

cd crate && wasm-pack test --headless --firefox -- --target wasm32-unknown-unknown --release --features 'mock-database'
npm i @penumbra-zone/wasm

Metadata

Downloads