Collection of scripts to propose custom squad transactions.
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.
- Create
.envfile - Populate
SOLANA_RPC_URLenv var in.envfile
# 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"