WOOFi Solana is a liquidity AMM contract on the Solana blockchain.
This repository contains the Rust smart contract as well as the Typescript SDK (@woonetwork/woofi-solana-sdk
) to interact with a deployed program.
- Anchor 0.29.0
- Solana 1.17.31
- Rust 1.72.0
Install Anchor using instructions found here.
Set up a valid Solana keypair at the path specified in the wallet
in Anchor.toml
to do local testing with anchor test
flows.
// Install dependencies
yarn
// Build
anchor build
// Tests
// NOTE: make sure Solana is setting up with Localnet.
anchor test