A Lite SDK/CLI for cross chain swaps between ethereum chains and solana
Swaplite is a command-line interface (CLI) for performing swap intents between EVM and solana chains. Users have the option to select supported tokens and chains of interest.
Provides a developer-focused, low-overhead interface to Fusion+.
Ideal for:
Power users automating arbitrage/resolver roles. DeFi devs and researchers testing order flows. Validators or bots performing filled-on-behalf logic. Easier to extend than full UIs, great for hackathons or tooling.
Swaplite was built between Solana and Flow initially, allowing traders and 1inch resolvers to deposit/resolve swap orders between the two chains.
Solana Side: Built with Anchor, the smart contract manages an escrow PDA holding tokens and enforces a hashlock + timelock. Orders are created by the maker (trader) and stored off-chain. Funds are locked securely until fulfilled or canceled. Once the hash matches between EVM and Solana the funds are released to the respective counterparts being the resolver and the trader.
Flow Side: A source escrow contract verifies the same hash(preimage) and allows the resolver (taker) to claim assets before the timelock expires. When fulfilled, the secret is revealed, enabling the maker to withdraw on Solana.
Technologies Used:
Anchor (Rust) on Solana TypeScript CLI using commander.js SHA256 for HTLC hashing 1inch Fusion+ design pattern for escrow flows Optional Node.js bot to relay revealed secrets
Cross-Chain Coordination: No bridges used. The only link is the revealed secret, making swaps trust-minimized and lightweight.