Skip to main content

kvault_interface/helpers/
mod.rs

1//! High-level instruction builders that auto-derive PDAs and remaining accounts.
2//!
3//! Each helper accepts a [`VaultInfo`] (and optionally a [`ReserveInfo`]) and
4//! returns a single [`solana_instruction::Instruction`] ready to include in a
5//! transaction.
6//!
7//! For the low-level API where you supply every account manually, see
8//! [`instructions`](crate::instructions).
9
10mod common;
11pub mod deposit;
12pub mod info;
13pub mod invest;
14pub mod redeem;
15pub mod withdraw;
16
17pub use deposit::{buy, deposit};
18pub use info::*;
19pub use invest::invest;
20pub use redeem::redeem_in_kind;
21pub use withdraw::{sell, withdraw, withdraw_from_available};