This commit is contained in:
Conner Gallagher 2023-06-13 16:29:07 -06:00
parent a69702c550
commit ae4242815b
11 changed files with 15 additions and 18 deletions

View File

@ -3613,7 +3613,7 @@ dependencies = [
[[package]]
name = "switchboard-solana"
version = "0.3.6"
version = "0.3.7"
dependencies = [
"anchor-lang",
"anchor-spl",
@ -3621,7 +3621,6 @@ dependencies = [
"bytemuck",
"chrono",
"cron",
"getrandom 0.2.9",
"rust_decimal",
"sgx-quote",
"solana-client",

View File

@ -1,6 +1,6 @@
[package]
name = "switchboard-solana"
version = "0.3.6"
version = "0.3.7"
edition = "2021"
description = "A Rust library to interact with Switchboard accounts."
readme = "README.md"
@ -25,8 +25,7 @@ client = [
"bincode",
"sgx-quote",
"cron",
"chrono",
"getrandom"
"chrono"
]
[dependencies]
@ -47,4 +46,3 @@ chrono = { version = "0.4.25", optional = true }
toml_datetime = "=0.6.1"
winnow = "=0.4.1"
toml_edit = "=0.19.8"
getrandom = { version = "0.2", optional = true }

View File

@ -108,7 +108,7 @@ impl AttestationPermissionAccountData {
}
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
pub async fn fetch(
client: &solana_client::rpc_client::RpcClient,
pubkey: Pubkey,

View File

@ -115,7 +115,7 @@ impl AttestationQueueAccountData {
}
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
pub async fn fetch(
client: &solana_client::rpc_client::RpcClient,
pubkey: Pubkey,

View File

@ -147,7 +147,7 @@ impl QuoteAccountData {
}
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
pub async fn fetch(
client: &solana_client::rpc_client::RpcClient,
pubkey: Pubkey,

View File

@ -202,7 +202,7 @@ impl<'info> FunctionVerify<'info> {
}
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
pub async fn build(
client: &solana_client::rpc_client::RpcClient,
fn_signer: std::sync::Arc<solana_sdk::signer::keypair::Keypair>,
@ -284,7 +284,7 @@ impl<'info> FunctionVerify<'info> {
}
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
fn build_ix(
accounts: FunctionVerifyAccounts,
observed_time: i64,
@ -307,7 +307,7 @@ impl<'info> FunctionVerify<'info> {
}
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
pub struct FunctionVerifyAccounts {
pub function: Pubkey,
pub fn_signer: Pubkey,
@ -325,7 +325,7 @@ pub struct FunctionVerifyAccounts {
pub system_program: Pubkey,
}
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
impl ToAccountMetas for FunctionVerifyAccounts {
fn to_account_metas(&self, _: Option<bool>) -> Vec<AccountMeta> {
vec![

View File

@ -123,7 +123,7 @@ impl OracleAccountData {
}
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
pub async fn fetch(
client: &solana_client::rpc_client::RpcClient,
pubkey: Pubkey,

View File

@ -156,7 +156,7 @@ impl OracleQueueAccountData {
}
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
pub async fn fetch(
client: &solana_client::rpc_client::RpcClient,
pubkey: Pubkey,

View File

@ -124,7 +124,7 @@ impl VrfAccountData {
}
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
pub async fn fetch(
client: &solana_client::rpc_client::RpcClient,
pubkey: Pubkey,

View File

@ -134,7 +134,7 @@ impl VrfLiteAccountData {
}
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
pub async fn fetch(
client: &solana_client::rpc_client::RpcClient,
pubkey: Pubkey,

View File

@ -97,7 +97,7 @@ impl VrfPoolAccountData {
}
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
pub async fn fetch(
client: &solana_client::rpc_client::RpcClient,
pubkey: Pubkey,