0.3.7
This commit is contained in:
parent
a69702c550
commit
ae4242815b
|
@ -3613,7 +3613,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "switchboard-solana"
|
name = "switchboard-solana"
|
||||||
version = "0.3.6"
|
version = "0.3.7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anchor-lang",
|
"anchor-lang",
|
||||||
"anchor-spl",
|
"anchor-spl",
|
||||||
|
@ -3621,7 +3621,6 @@ dependencies = [
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
"chrono",
|
"chrono",
|
||||||
"cron",
|
"cron",
|
||||||
"getrandom 0.2.9",
|
|
||||||
"rust_decimal",
|
"rust_decimal",
|
||||||
"sgx-quote",
|
"sgx-quote",
|
||||||
"solana-client",
|
"solana-client",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "switchboard-solana"
|
name = "switchboard-solana"
|
||||||
version = "0.3.6"
|
version = "0.3.7"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A Rust library to interact with Switchboard accounts."
|
description = "A Rust library to interact with Switchboard accounts."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -25,8 +25,7 @@ client = [
|
||||||
"bincode",
|
"bincode",
|
||||||
"sgx-quote",
|
"sgx-quote",
|
||||||
"cron",
|
"cron",
|
||||||
"chrono",
|
"chrono"
|
||||||
"getrandom"
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -47,4 +46,3 @@ chrono = { version = "0.4.25", optional = true }
|
||||||
toml_datetime = "=0.6.1"
|
toml_datetime = "=0.6.1"
|
||||||
winnow = "=0.4.1"
|
winnow = "=0.4.1"
|
||||||
toml_edit = "=0.19.8"
|
toml_edit = "=0.19.8"
|
||||||
getrandom = { version = "0.2", optional = true }
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ impl AttestationPermissionAccountData {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
|
||||||
pub async fn fetch(
|
pub async fn fetch(
|
||||||
client: &solana_client::rpc_client::RpcClient,
|
client: &solana_client::rpc_client::RpcClient,
|
||||||
pubkey: Pubkey,
|
pubkey: Pubkey,
|
||||||
|
|
|
@ -115,7 +115,7 @@ impl AttestationQueueAccountData {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
|
||||||
pub async fn fetch(
|
pub async fn fetch(
|
||||||
client: &solana_client::rpc_client::RpcClient,
|
client: &solana_client::rpc_client::RpcClient,
|
||||||
pubkey: Pubkey,
|
pubkey: Pubkey,
|
||||||
|
|
|
@ -147,7 +147,7 @@ impl QuoteAccountData {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
|
||||||
pub async fn fetch(
|
pub async fn fetch(
|
||||||
client: &solana_client::rpc_client::RpcClient,
|
client: &solana_client::rpc_client::RpcClient,
|
||||||
pubkey: Pubkey,
|
pubkey: Pubkey,
|
||||||
|
|
|
@ -202,7 +202,7 @@ impl<'info> FunctionVerify<'info> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
|
||||||
pub async fn build(
|
pub async fn build(
|
||||||
client: &solana_client::rpc_client::RpcClient,
|
client: &solana_client::rpc_client::RpcClient,
|
||||||
fn_signer: std::sync::Arc<solana_sdk::signer::keypair::Keypair>,
|
fn_signer: std::sync::Arc<solana_sdk::signer::keypair::Keypair>,
|
||||||
|
@ -284,7 +284,7 @@ impl<'info> FunctionVerify<'info> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
|
||||||
fn build_ix(
|
fn build_ix(
|
||||||
accounts: FunctionVerifyAccounts,
|
accounts: FunctionVerifyAccounts,
|
||||||
observed_time: i64,
|
observed_time: i64,
|
||||||
|
@ -307,7 +307,7 @@ impl<'info> FunctionVerify<'info> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
|
||||||
pub struct FunctionVerifyAccounts {
|
pub struct FunctionVerifyAccounts {
|
||||||
pub function: Pubkey,
|
pub function: Pubkey,
|
||||||
pub fn_signer: Pubkey,
|
pub fn_signer: Pubkey,
|
||||||
|
@ -325,7 +325,7 @@ pub struct FunctionVerifyAccounts {
|
||||||
pub system_program: Pubkey,
|
pub system_program: Pubkey,
|
||||||
}
|
}
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
|
||||||
impl ToAccountMetas for FunctionVerifyAccounts {
|
impl ToAccountMetas for FunctionVerifyAccounts {
|
||||||
fn to_account_metas(&self, _: Option<bool>) -> Vec<AccountMeta> {
|
fn to_account_metas(&self, _: Option<bool>) -> Vec<AccountMeta> {
|
||||||
vec![
|
vec![
|
||||||
|
|
|
@ -123,7 +123,7 @@ impl OracleAccountData {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
|
||||||
pub async fn fetch(
|
pub async fn fetch(
|
||||||
client: &solana_client::rpc_client::RpcClient,
|
client: &solana_client::rpc_client::RpcClient,
|
||||||
pubkey: Pubkey,
|
pubkey: Pubkey,
|
||||||
|
|
|
@ -156,7 +156,7 @@ impl OracleQueueAccountData {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
|
||||||
pub async fn fetch(
|
pub async fn fetch(
|
||||||
client: &solana_client::rpc_client::RpcClient,
|
client: &solana_client::rpc_client::RpcClient,
|
||||||
pubkey: Pubkey,
|
pubkey: Pubkey,
|
||||||
|
|
|
@ -124,7 +124,7 @@ impl VrfAccountData {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
|
||||||
pub async fn fetch(
|
pub async fn fetch(
|
||||||
client: &solana_client::rpc_client::RpcClient,
|
client: &solana_client::rpc_client::RpcClient,
|
||||||
pubkey: Pubkey,
|
pubkey: Pubkey,
|
||||||
|
|
|
@ -134,7 +134,7 @@ impl VrfLiteAccountData {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
|
||||||
pub async fn fetch(
|
pub async fn fetch(
|
||||||
client: &solana_client::rpc_client::RpcClient,
|
client: &solana_client::rpc_client::RpcClient,
|
||||||
pubkey: Pubkey,
|
pubkey: Pubkey,
|
||||||
|
|
|
@ -97,7 +97,7 @@ impl VrfPoolAccountData {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
|
#[cfg_attr(doc_cfg, doc(cfg(feature = "client")))]
|
||||||
pub async fn fetch(
|
pub async fn fetch(
|
||||||
client: &solana_client::rpc_client::RpcClient,
|
client: &solana_client::rpc_client::RpcClient,
|
||||||
pubkey: Pubkey,
|
pubkey: Pubkey,
|
||||||
|
|
Loading…
Reference in New Issue