A collection of scripts to interact with various parts of the futarchy protocol
It's best to use these scripts with the latest build of the SDK.
To do this, run the following commands, starting in the root dir of the repository:
cd sdk # Move into the repository dir
yarn
yarn build
yarn link
cd .. # Move back into the root dir
yarn link @metadaoproject/futarchy # Link to your local build of the futarchy sdkAfterwards, you can run the scripts as you see fit.
In the root directory of this repo, you will find a .env.example file with settings for launches. Move into .env, change everything, and then simply hold enter throughout the script. If you don't, you can always enter everything manually.
To initialize a launch, run:
yarn launch-initTo start a launch, run:
yarn launch-startTo complete a launch, run:
yarn launch-completeTo set up a complete futarchy AMM with tokens, DAO, and liquidity, run:
yarn setup-futarchy-ammThis script will:
- Create META and USDC token mints
- Mint initial tokens to your wallet
- Initialize a DAO with the tokens
- Create a futarchy AMM
- Provide initial liquidity to the AMM
The script outputs all the important addresses (tokens, DAO, AMM, position) for future reference.