Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Outline

Scripts

A collection of scripts to interact with various parts of the futarchy protocol

Setup

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 sdk

Afterwards, you can run the scripts as you see fit.

Launchpad

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-init

To start a launch, run:

yarn launch-start

To complete a launch, run:

yarn launch-complete

Futarchy AMM Setup

To set up a complete futarchy AMM with tokens, DAO, and liquidity, run:

yarn setup-futarchy-amm

This script will:

  1. Create META and USDC token mints
  2. Mint initial tokens to your wallet
  3. Initialize a DAO with the tokens
  4. Create a futarchy AMM
  5. Provide initial liquidity to the AMM

The script outputs all the important addresses (tokens, DAO, AMM, position) for future reference.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.