sbv2-solana/examples/functions/02_liquidity_oracle
gallynaut 7feef95406
chore: pull monorepo changes (#170)
* Project import generated by Copybara.

GitOrigin-RevId: a54f824c1816bcedee95284afd276aaa37a98d80

* fix

* chore: Update pnpm lockfile

---------

Co-authored-by: Copybara <copybara@example.com>
Co-authored-by: gallynaut <gallynaut@users.noreply.github.com>
2023-11-28 10:43:30 -07:00
..
scripts chore: pull monorepo changes (#111) 2023-07-19 09:23:43 -06:00
src chore: pull monorepo changes (#131) 2023-09-18 08:31:59 -06:00
switchboard-function chore: pull monorepo changes (#131) 2023-09-18 08:31:59 -06:00
tests chore: pull monorepo changes (#111) 2023-07-19 09:23:43 -06:00
.dockerignore chore: pull monorepo changes (#111) 2023-07-19 09:23:43 -06:00
.gitignore chore: pull monorepo changes (#111) 2023-07-19 09:23:43 -06:00
.prettierignore chore: pull monorepo changes (#111) 2023-07-19 09:23:43 -06:00
Anchor.toml chore: pull monorepo changes (#111) 2023-07-19 09:23:43 -06:00
Cargo.lock chore: pull monorepo changes (#131) 2023-09-18 08:31:59 -06:00
Cargo.toml chore: pull monorepo changes (#131) 2023-09-18 08:31:59 -06:00
README.md chore: pull monorepo changes (#111) 2023-07-19 09:23:43 -06:00
Xargo.toml chore: pull monorepo changes (#111) 2023-07-19 09:23:43 -06:00
package.json chore: pull monorepo changes (#170) 2023-11-28 10:43:30 -07:00
tsconfig.json chore: pull monorepo changes (#115) 2023-08-07 11:35:30 -06:00

README.md

Switchboard Logo

anchor-vrf-lite-parser

An example program written in Anchor demonstrating how to integrate Switchboard Functions and verify attestation on-chain.

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_LITE_PARSER_PUBKEY=$(solana-keygen pubkey target/deploy/anchor_vrf_lite_parser-keypair.json)
sed -i '' s/5Hhm5xKDiThfidbpqjJpKmMJEcKmjj5tEUNFpi2DzSvb/"$ANCHOR_VRF_LITE_PARSER_PUBKEY"/g Anchor.toml
sed -i '' s/5Hhm5xKDiThfidbpqjJpKmMJEcKmjj5tEUNFpi2DzSvb/"$ANCHOR_VRF_LITE_PARSER_PUBKEY"/g src/lib.rs

Then run Anchor test

anchor test