0.3.7
This commit is contained in:
parent
a69702c550
commit
ae4242815b
|
@ -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",
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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![
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue