renamed repo to sbv2-solana

updated github URLs globally
This commit is contained in:
Conner Gallagher 2022-12-01 10:17:17 -07:00
parent c851aa35e4
commit 7f2de22291
15 changed files with 29 additions and 20 deletions

View File

@ -5,7 +5,7 @@
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/switchboard-xyz/switchboard-v2",
"url": "https://github.com/switchboard-xyz/sbv2-solana",
"directory": "javascript/feed-parser"
},
"homepage": "https://docs.switchboard.xyz",

View File

@ -6,7 +6,7 @@
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/switchboard-xyz/switchboard-v2",
"url": "https://github.com/switchboard-xyz/sbv2-solana",
"directory": "javascript/feed-walkthrough"
},
"homepage": "https://docs.switchboard.xyz",

View File

@ -6,7 +6,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/switchboard-xyz/switchboard-v2",
"url": "https://github.com/switchboard-xyz/sbv2-solana",
"directory": "javascript/lease-observer"
},
"scripts": {

View File

@ -5,7 +5,7 @@
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/switchboard-xyz/switchboard-v2",
"url": "https://github.com/switchboard-xyz/sbv2-solana",
"directory": "javascript/sbv2-lite"
},
"homepage": "https://docs.switchboard.xyz",

View File

@ -1,6 +1,6 @@
# Sbv2-Utils
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/switchboard-xyz/switchboard-v2/tree/main/libraries/sbv2-utils)  
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/switchboard-xyz/sbv2-solana/tree/main/libraries/sbv2-utils)  
[![npm](https://img.shields.io/npm/v/@switchboard-xyz/switchboard-v2)](https://www.npmjs.com/package/@switchboard-xyz/sbv2-utils)  
[![twitter](https://badgen.net/twitter/follow/switchboardxyz)](https://twitter.com/switchboardxyz)  

View File

@ -6,7 +6,7 @@
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/switchboard-xyz/switchboard-v2",
"url": "https://github.com/switchboard-xyz/sbv2-solana",
"directory": "javascript/sbv2-utils"
},
"homepage": "https://docs.switchboard.xyz",

View File

@ -4,7 +4,7 @@
<!--- [![GitHub last commit](https://img.shields.io/github/last-commit/switchboard-xyz/switchboardv2-cli)](https://github.com/switchboard-xyz/switchboardv2-cli/commit/) --->
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/switchboard-xyz/switchboard-v2/tree/main/libraries/ts)&nbsp;&nbsp;
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/switchboard-xyz/sbv2-solana/tree/main/libraries/ts)&nbsp;&nbsp;
[![npm](https://img.shields.io/npm/v/@switchboard-xyz/switchboard-v2)](https://www.npmjs.com/package/@switchboard-xyz/switchboard-v2)&nbsp;&nbsp;
[![twitter](https://badgen.net/twitter/follow/switchboardxyz)](https://twitter.com/switchboardxyz)&nbsp;&nbsp;

View File

@ -11,7 +11,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/switchboard-xyz/switchboard-v2",
"url": "https://github.com/switchboard-xyz/sbv2-solana",
"directory": "javascript/switchboard-v2"
},
"homepage": "https://docs.switchboard.xyz",

View File

@ -4,7 +4,7 @@
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/switchboard-xyz/switchboard-v2",
"url": "https://github.com/switchboard-xyz/sbv2-solana",
"directory": "programs/anchor-buffer-parser"
},
"scripts": {

View File

@ -4,7 +4,7 @@
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/switchboard-xyz/switchboard-v2",
"url": "https://github.com/switchboard-xyz/sbv2-solana",
"directory": "programs/anchor-feed-parser"
},
"scripts": {

View File

@ -4,7 +4,7 @@
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/switchboard-xyz/switchboard-v2",
"url": "https://github.com/switchboard-xyz/sbv2-solana",
"directory": "programs/anchor-vrf-parser"
},
"bin": {

View File

@ -4,7 +4,7 @@
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/switchboard-xyz/switchboard-v2",
"url": "https://github.com/switchboard-xyz/sbv2-solana",
"directory": "programs/native-feed-parser"
},
"scripts": {

View File

@ -2,7 +2,7 @@
name = "switchboardpy"
version = "0.0.7"
description = "Switchboard V2 API"
repository = "https://github.com/switchboard-xyz/switchboard-v2/tree/main/libraries/py"
repository = "https://github.com/switchboard-xyz/sbv2-solana/tree/main/libraries/py"
homepage = "https://docs.switchboard.xyz"
authors = ["Albert Hermida <albert@switchboard.xyz>"]
license = "MIT"

View File

@ -6,7 +6,7 @@ description = "A Rust library to interact with Switchboard V2 accounts."
readme = "README.md"
keywords = ["switchboard", "oracle", "solana"]
homepage = "https://docs.switchboard.xyz"
repository = "https://github.com/switchboard-xyz/switchboard-v2/tree/main/libraries/rs"
repository = "https://github.com/switchboard-xyz/sbv2-solana/tree/main/libraries/rs"
license = "MIT"
documentation = "https://docs.rs/switchboard-v2/"
@ -19,6 +19,7 @@ doctest = false
default = ["cpi"]
no-entrypoint = []
cpi = ["no-entrypoint"]
## The devnet feature enables using the Switchboard Devnet Program ID instead of the Mainnet Program ID.
devnet = []
[dependencies]

View File

@ -7,11 +7,14 @@ A Rust library to interact with Switchboard V2 accounts.
This package can be used to interact and deserialize Switchboard V2 accounts.
See the [documentation](https://docs.switchboard.xyz/introduction) for more info on Switchboard.
See the [documentation](https://docs.switchboard.xyz/introduction) for more info
on Switchboard.
## Features
By default the crate will default to mainnet. You must explicitly enable the `devnet` feature to use on devnet.
| Feature | Description |
| ------- | ----------------------------------------------------------------------------------------------------- |
| devnet | The devnet feature enables using the Switchboard Devnet Program ID instead of the Mainnet Program ID. |
## Usage
@ -45,7 +48,9 @@ feed.check_staleness(clock::Clock::get().unwrap().unix_timestamp, 300)?;
feed.check_confidence_interval(SwitchboardDecimal::from_f64(0.80))?;
```
**Example(s)**: [anchor-feed-parser](https://github.com/switchboard-xyz/switchboard-v2/blob/main/examples/programs/anchor-feed-parser/src/lib.rs), [native-feed-parser](https://github.com/switchboard-xyz/switchboard-v2/blob/main/examples/programs/native-feed-parser/src/lib.rs)
**Example(s)**:
[anchor-feed-parser](https://github.com/switchboard-xyz/sbv2-solana/blob/main/examples/programs/anchor-feed-parser/src/lib.rs),
[native-feed-parser](https://github.com/switchboard-xyz/sbv2-solana/blob/main/examples/programs/native-feed-parser/src/lib.rs)
#### Read Aggregator History
@ -78,7 +83,8 @@ let value: &[u128] = bytemuck::cast_slice(&result_buffer[..]);
let result = value[0] % 256000 as u128;
```
**Example**: [anchor-vrf-parser](https://github.com/switchboard-xyz/switchboard-v2/blob/main/examples/programs/anchor-vrf-parser/src/actions/update_result.rs)
**Example**:
[anchor-vrf-parser](https://github.com/switchboard-xyz/sbv2-solana/blob/main/examples/programs/anchor-vrf-parser/src/actions/update_result.rs)
#### RequestRandomness CPI
@ -121,7 +127,8 @@ vrf_request_randomness.invoke_signed(
```
**Example**: [anchor-vrf-parser](https://github.com/switchboard-xyz/switchboard-v2/blob/main/examples/programs/anchor-vrf-parser/src/actions/request_result.rs)
**Example**:
[anchor-vrf-parser](https://github.com/switchboard-xyz/sbv2-solana/blob/main/examples/programs/anchor-vrf-parser/src/actions/request_result.rs)
### Buffer Relayer Account
@ -153,4 +160,5 @@ let result_string = String::from_utf8(buffer.result)
msg!("Buffer string {:?}!", result_string);
```
**Example**: [anchor-buffer-parser](https://github.com/switchboard-xyz/switchboard-v2/blob/main/examples/programs/anchor-buffer-parser/src/lib.rs)
**Example**:
[anchor-buffer-parser](https://github.com/switchboard-xyz/sbv2-solana/blob/main/examples/programs/anchor-buffer-parser/src/lib.rs)