Skip to content

OptiFi-Team/optifi-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

optifi-client

wrap optifi-cpi for convenient usage

Overview

dev tooling for OptiFi

  • optifi-client: wrap optifi-cpi for convenient usage
  • optifi-cpi: provide anchor CPI and account struct
  • cpi-examples: CPI integration examples

Environment Setup

  1. Install Solana CLI
  2. Install Rust
  3. Run solana-keygen new -o ~/.config/solana/optifi.json
  4. Run solana airdrop 1 -k ~/.config/solana/optifi.json

Test

  1. Add features = ["cpi", "devnet"]} to optifi-cpi in programs/optifi-client/Cargo.toml for running on devnet
  2. Run some tests in programs/optifi-client/tests/mod.rs

Error Handle

Run rustup override set stable-x86_64-apple-darwin

About

wrap optifi-cpi for convenient usage

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages