This project moved to https://github.com/certusone/radiance/tree/main/pkg/sbf
This Go library allows you to execute Solana bytecode format programs without a blockchain node.
It interfaces with libsealevel
, the C library wrapping solana-bpf-program-loader
and solana_rbpf
.
sealevel-go is under heavy development. ️🦺
To run, you'll need to …
- build
libsealevel
from Solana sources; - install headers and shared library to your path;
# Check out `libsealevel`.
git clone https://github.com/terorie/libsealevel
cd libsealevel
# Build libsealevel
cargo build --release
# Install header
ln -s "$(pwd)/sealevel.h" /usr/local/include/sealevel.h
# Install library (Linux)
ln -s "$(pwd)/target/release/libsealevel.dylib" /usr/local/lib/libsealevel.dylib
# Install library (macOS)
ln -s "$(pwd)/target/release/libsealevel.so" /usr/local/lib/libsealevel.so
Then, simply Go build as usual.
go vet .
go build .
go test .