trident-sdk 0.2.0

End-user SDK for Trident deposits and cross-chain spends
Documentation
mod chain_handler;

/// EVM-specific integrations for Trident end users.
///
/// Prefer [`crate::TridentClient`] for the high-level deposit and spend flows.
/// This module exposes the underlying contract ABI for direct read calls,
/// receipt or revert decoding, and on-chain preflight checks that spender and
/// depositor applications may still need.
///
/// The ABI surface here is intentionally curated around spender/depositor
/// interactions. It includes user-relevant reads such as supported-token
/// queries, `depositedAmount`, and attestation validation helpers.
///
/// `abi::TridentDeposits::depositedAmount` is the contract's own source-side
/// bookkeeping balance. It is distinct from the delivery-service balance
/// returned by [`crate::TridentClient::get_balance`].
///
/// This module avoids presenting repayer and admin flows as the default SDK
/// interface.
///
/// See [`abi`] for contract bindings and [`signing`] for EIP-712 helpers used
/// when producing Trident EVM spend-intent signatures.
/// Contract bindings, events, and errors for spender/depositor flows.
pub mod abi;
mod deposit;
/// Signature-generation utilities for EVM spend intents.
pub mod signing;

pub use chain_handler::EvmChainError;
pub use deposit::{EvmDepositError, deposit, deposit_multicall};