sbv2-solana/programs/anchor-buffer-parser
Conner Gallagher 0d8065cba7 README.md 2023-02-13 20:59:17 -07:00
..
src uprev switchboard deps 2022-11-26 15:15:13 -07:00
tests migrated from @project-serum to @coral-xyz 2023-01-31 16:13:29 -07:00
.gitignore uprev switchboard deps 2022-11-26 15:15:13 -07:00
Anchor.toml updated program examples 2023-01-18 20:17:40 -07:00
Cargo.toml updated program examples 2023-01-18 20:17:40 -07:00
README.md README.md 2023-02-13 20:59:17 -07:00
Xargo.toml removed monorepo structure 2022-09-28 14:37:26 -06:00
package-lock.json migrated from @project-serum to @coral-xyz 2023-01-31 16:24:08 -07:00
package.json migrated from @project-serum to @coral-xyz 2023-01-31 16:13:29 -07:00
tsconfig.json updated program examples 2023-01-18 20:17:40 -07:00

README.md

sbv2-solana / anchor-buffer-parser

An example program written in Anchor demonstrating how to deserialize and read a Switchboard buffer relayer on Solana.

Crates.io

Discord Twitter

Sbv2 Solana SDK: github.com/switchboard-xyz/sbv2-solana

Usage

Build the example program

anchor build

Get your program ID and update Anchor.toml and src/lib.rs with your pubkey

export ANCHOR_BUFFER_PARSER_PUBKEY=$(solana-keygen pubkey target/deploy/anchor_buffer_parser-keypair.json)
sed -i '' s/96punQGZDShZGkzsBa3SsfTxfUnwu4XGpzXbhF7NTgcP/"$ANCHOR_BUFFER_PARSER_PUBKEY"/g Anchor.toml
sed -i '' s/96punQGZDShZGkzsBa3SsfTxfUnwu4XGpzXbhF7NTgcP/"$ANCHOR_BUFFER_PARSER_PUBKEY"/g src/lib.rs

Then run Anchor test

anchor test