sbv2-solana/.docs/programs/anchor-vrf-parser
Conner Gallagher 786d9d65e6 wip 2023-05-12 11:10:27 -06:00
..
README.template.md wip 2023-05-12 11:10:27 -06:00

README.template.md

anchor-vrf-parser

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

Anchor Test Status

Usage

Build the example program

anchor build

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

export ANCHOR_VRF_PARSER_PUBKEY=$(solana-keygen pubkey target/deploy/anchor_vrf_parser-keypair.json)
sed -i '' s/4wTeTACfwiXqqvy44bNBB3V2rFjmSTXVoEr4ZAYamJEN/"$ANCHOR_VRF_PARSER_PUBKEY"/g Anchor.toml
sed -i '' s/4wTeTACfwiXqqvy44bNBB3V2rFjmSTXVoEr4ZAYamJEN/"$ANCHOR_VRF_PARSER_PUBKEY"/g src/lib.rs

Then run Anchor test

anchor test