-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Project import generated by Copybara. GitOrigin-RevId: 8a02570f92a45d5127c2437ea4ceb1867f1da725 * chore: Update pnpm lockfile --------- Co-authored-by: Copybara <[email protected]> Co-authored-by: gallynaut <[email protected]>
- Loading branch information
1 parent
0b5e091
commit 84c2abc
Showing
320 changed files
with
39,576 additions
and
178,647 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,20 @@ | ||
{ | ||
"compilerOptions": { | ||
"types": [ | ||
"mocha", | ||
"chai" | ||
], | ||
"typeRoots": [ | ||
"./node_modules/@types" | ||
], | ||
"lib": [ | ||
"es2015" | ||
], | ||
"types": ["mocha", "chai"], | ||
"typeRoots": ["./node_modules/@types"], | ||
"lib": ["es2015"], | ||
"module": "commonjs", | ||
"target": "es6", | ||
"esModuleInterop": true, | ||
"noEmit": true, | ||
"paths": { | ||
"@switchboard-xyz/solana.js": [ | ||
"../../../javascript/solana.js" | ||
] | ||
"@switchboard-xyz/solana.js": ["../../../javascript/solana.js"] | ||
} | ||
}, | ||
"exclude": [ | ||
"target" | ||
], | ||
"exclude": ["target"], | ||
"references": [ | ||
{ | ||
"path": "../../../javascript/solana.js" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,8 @@ Makefile | |
README.md | ||
node_modules | ||
.turbo | ||
measurement.txt | ||
measurement.txt | ||
.anchor | ||
scripts | ||
.prettierignore | ||
.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<div align="center"> | ||
|
||
![Switchboard Logo](https://github.com/switchboard-xyz/sbv2-core/raw/main/website/static/img/icons/switchboard/avatar.png) | ||
|
||
# anchor-vrf-lite-parser | ||
|
||
> An example program written in Anchor demonstrating how to integrate Switchboard Functions and verify attestation on-chain. | ||
[![Anchor Test Status](https://github.com/switchboard-xyz/sbv2-solana/actions/workflows/anchor-test.yml/badge.svg)](https://github.com/switchboard-xyz/sbv2-solana/actions/workflows/anchor-test.yml) | ||
|
||
</div> | ||
|
||
<!-- install --> | ||
|
||
<!-- installstop --> | ||
|
||
## Usage | ||
|
||
Build the example program | ||
|
||
```bash | ||
anchor build | ||
``` | ||
|
||
Get your program ID and update `Anchor.toml` and `src/lib.rs` with your pubkey | ||
|
||
```bash | ||
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 | ||
|
||
```bash | ||
anchor test | ||
``` |
Oops, something went wrong.