Skip to content

sol-mocha/squads-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

squads-scripts

Collection of scripts to propose custom squad transactions.

How to Use these Scripts?

The scripts currently just print out an easy to read/copy instructions in the context of a squads vault. You may take the data printed in the console and use the custom instruction option in the squads tx builder to propose the transaction.

Getting Started

  • Create .env file
  • Populate SOLANA_RPC_URL env var in .env file

Jupiter DCA

# Propose a JUP DCA (check script to configure granularity and frequency of swaps)
# yarn run ts-node ./src/index.ts "jup" "proposeDca" <squads vault> <input mint> <output mint> <deposit amount>
yarn run ts-node ./src/index.ts "jup" "proposeDca" "8re8KP9hzm2DQ2qze3a4GedsM44ewkxD8rSxmC1bC9pb" "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" "bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1" "100000000"

About

Collection of scripts to propose custom squad transactions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors