Skip to content

Latest commit

 

History

History
 
 

anchor-history-parser

sbv2-solana / anchor-history-parser

An example program written in Anchor demonstrating how to deserialize and read a Switchboard data feed's history buffer on Solana.

Crates.io

Discord Twitter

Usage

Build the example program

anchor build

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

export ANCHOR_HISTORY_PARSER_PUBKEY=$(solana-keygen pubkey target/deploy/anchor_history_parser-keypair.json)
sed -i '' s/C7rn1qJkq9FjTwV86RrY5Uih91NgymRVLdJ81rqLNXRS/"$ANCHOR_HISTORY_PARSER_PUBKEY"/g Anchor.toml
sed -i '' s/C7rn1qJkq9FjTwV86RrY5Uih91NgymRVLdJ81rqLNXRS/"$ANCHOR_HISTORY_PARSER_PUBKEY"/g src/lib.rs

Then run Anchor test

anchor test