Crate drift_rs

Source
Expand description

Drift SDK

Re-exports§

pub use crate::grpc::GrpcSubscribeOpts;
pub use crate::types::Context;
pub use crate::wallet::Wallet;

Modules§

account_map
Hybrid solana account map backed by Ws or RPC polling
async_utils
utils for async functions
auction_subscriber
blockhash_subscriber
constants
drift_idl
Auto-generated IDL types, manual edits do not persist (see crates/drift-idl-gen)
event_subscriber
ffi
FFI shims Defines wrapper types for ergonomic access to drift-program logic
grpc
Drift gRPC module
jit_client
JIT proxy client
marketmap
math
memcmp
oraclemap
polled_account_subscriber
priority_fee_subscriber
slot_subscriber
swift_order_subscriber
types
usermap
utils
SDK utility functions
wallet
websocket_account_subscriber
websocket_program_account_subscriber

Structs§

AddressLookupTableAccount
The definition of address lookup table accounts.
DriftClient
DriftClient
DriftClientBackend
Provides the heavy-lifting and network facing features of the SDK It is intended to be a singleton
Pubkey
The address of a Solana account.
PubsubClient
A client for subscribing to messages from the RPC server.
RpcClient
A client of a remote Solana node.
TransactionBuilder
Composable Tx builder for Drift program

Functions§

build_accounts
Builds a set of required accounts from a user’s open positions and additional given accounts