@native-to-trezoaanchor/buffer-layout
v0.1.0
Published
Buffer layout utilities for Trezoa programs.
Maintainers
Readme
Buffer layout utilities for Trezoa program deserialization and serialization.
This package currently only supports Borsh.
Development Scripts
If you want to build and develop this package, you can use the following commands:
# Build the entire package
yarn build
# or manually: rimraf dist/ && yarn build:node && yarn build:browser
# Build Node.js version (CJS and ESM)
yarn build:node
# or manually: tsc && tsc -p tsconfig.cjs.json
# Build browser version
yarn build:browser
# or manually: rollup --config
# Fix code formatting
yarn lint:fix
# or manually: prettier src/** -w
# Check code formatting
yarn lint
# or manually: prettier src/** --check
# Watch mode for development
yarn watch
# or manually: tsc -p tsconfig.cjs.json --watch