sbv2-solana/programs/anchor-feed-parser
gallynaut dffd9def99
Add V3 SGX Program to solana.js (#102)
2023-06-12 12:19:25 -04:00
..
src Add V3 SGX Program to solana.js (#102) 2023-06-12 12:19:25 -04:00
tests added createStaticFeed to SwitchboardTestContext 2023-05-31 09:01:31 -06:00
.gitignore uprev switchboard deps 2022-11-26 15:15:13 -07:00
Anchor.toml Add V3 SGX Program to solana.js (#102) 2023-06-12 12:19:25 -04:00
Cargo.lock added createStaticFeed to SwitchboardTestContext 2023-05-31 09:01:31 -06:00
Cargo.toml added createStaticFeed to SwitchboardTestContext 2023-05-31 09:01:31 -06:00
README.md chore: removed deprecated javascript packages 2023-05-30 12:49:56 -06:00
Xargo.toml removed monorepo structure 2022-09-28 14:37:26 -06:00
package.json chore: removed deprecated javascript packages 2023-05-30 12:49:56 -06:00
tsconfig.json example-programs: using new SDK 2022-12-19 09:00:16 -07:00

README.md

Switchboard Logo

anchor-feed-parser

An example program written in Anchor demonstrating how to deserialize and read a Switchboard data feed 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_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