dffd9def99 | ||
---|---|---|
.. | ||
src | ||
tests | ||
.gitignore | ||
Anchor.toml | ||
Cargo.lock | ||
Cargo.toml | ||
README.md | ||
Xargo.toml | ||
package.json | ||
tsconfig.json |
README.md
anchor-feed-parser
An example program written in Anchor demonstrating how to deserialize and read a Switchboard data feed on 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_FEED_PARSER_PUBKEY=$(solana-keygen pubkey target/deploy/anchor_feed_parser-keypair.json)
sed -i '' s/EE4NqG3B1N54tTbJ8VTtebdE88j4qjfVsbDXUUVFHegk/"$ANCHOR_FEED_PARSER_PUBKEY"/g Anchor.toml
sed -i '' s/EE4NqG3B1N54tTbJ8VTtebdE88j4qjfVsbDXUUVFHegk/"$ANCHOR_FEED_PARSER_PUBKEY"/g src/lib.rs
Then run Anchor test
anchor test