shadow_drive_sdk/
lib.rs

1//! # Shadow Drive Rust
2//!Rust SDK for [GenesysGo's Shadow Drive](https://shdw.genesysgo.com/shadow-infrastructure-overview/shadow-drive-overview), a decentralized storage network.
3//!
4//! ## Basic Usage
5//!
6//! ```ignore
7//!    //load keypair from file
8//!    let keypair = read_keypair_file(KEYPAIR_PATH).expect("failed to load keypair at path");
9//!
10//!    //create shdw drive client
11//!    let shdw_drive_client = ShadowDriveClient::new(keypair, "https://ssc-dao.genesysgo.net");
12//! ```
13//!
14mod client;
15pub use client::*;
16
17pub mod constants;
18pub mod derived_addresses;
19pub mod error;
20pub mod models;
21
22pub use {
23    // allows users to specify number of bytes
24    byte_unit::Byte,
25    // allows users to deserialize type
26    shadow_drive_user_staking::instructions::{
27        initialize_account::StorageAccount, initialize_config::StorageConfig,
28    },
29    // allows users to specify rpc config
30    solana_client::nonblocking::rpc_client::RpcClient,
31    // allows users to specify commitment level, and use pubkeys, keypairs, and signer
32    solana_sdk::{
33        commitment_config::CommitmentConfig,
34        pubkey::Pubkey,
35        signer::{
36            keypair::{read_keypair_file, Keypair},
37            Signer,
38        },
39    },
40};