@defituna/tuna-programs
v1.0.19
Published
Typescript SDK to interact with DeFi Tuna program.
Downloads
1,097
Keywords
Readme
Building
Install
- Solana 1.18.26
- Anchor 0.30.1
Run
pnpm i
mkdir target
mkdir target/deploy
cp tuna-keypair.json target/deploy/tuna-keypair.json
anchor build
Development
Useful commands
# Dump raydium program
solana program dump -u m CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK raydium-clmm.so
# Dump USDC account
solana account -u m --output json-compact --output-file tests/fixtures/accounts/usdc-mint.json EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Deployment
Useful commands
anchor deploy
anchor idl init --filepath ./target/idl/tuna.json PROGRAM_ID
anchor idl upgrade --filepath ./target/idl/tuna.json PROGRAM_ID
solana program extend PROGRAM_ID 20000 -u d -k ~/.config/solana/id.json
solana program show --buffers
solana program close --buffers
solana-keygen recover -o ./recover.json
solana program deploy --buffer ./recover.json -k ~/.config/solana/id.json ./target/deploy/tuna.so
solana balance -u devnet