A CLI tool to set up and deploy composable liquidity pools on the Basin DEX.
██╗ ██╗███████╗██╗ ██╗ ██████╗ ███████╗██████╗ ██╗ ██████╗ ██╗ ██╗
██║ ██║██╔════╝██║ ██║ ██╔══██╗██╔════╝██╔══██╗██║ ██╔═══██╗╚██╗ ██╔╝
██║ █╗ ██║█████╗ ██║ ██║ ██║ ██║█████╗ ██████╔╝██║ ██║ ██║ ╚████╔╝
██║███╗██║██╔══╝ ██║ ██║ ██║ ██║██╔══╝ ██╔═══╝ ██║ ██║ ██║ ╚██╔╝
╚███╔███╔╝███████╗███████╗███████╗ ██████╔╝███████╗██║ ███████╗╚██████╔╝ ██║
╚══╝╚══╝ ╚══════╝╚══════╝╚══════╝ ╚═════╝ ╚══════╝╚═╝ ╚══════╝ ╚═════╝ ╚═╝
Follow these steps and open a terminal (cmd on windows) to get started with this project:
-
Install Node.js and npm:
-
Clone this repository and cd into it:
git clone https://github.com/BeanstalkFarms/Basin-Well-Deployer.git && cd Basin-Well-Deployer
-
Install dependencies:
npm install
-
Create a
.env
file and add yourPRIVATE_KEY
andALCHEMY_RPC_URL
as shown in the.env.example
.
-
To export your private key from Metamask, open Metamask and go to Account Details > Export Private Key.
-
You can find detailed guides on how to export your key here.
-
Beware: NEVER share your private key with anyone and dont commit it to a public repository.
-
To get an Alchemy RPC URL, sign up for an account at Alchemy and create a new project. Select the Ethereum network you want to deploy to and copy the https URL.
-
To deploy a well with existing deployed components, run the following command:
npx hardhat run scripts/deployWell.js --network <network>
-
Replace
<network>
with the network you want to deploy to. Options aremainnet
andsepolia
. -
The script will then guide you through the process of deploying a new well.
-
To deploy a new component, run the following command:
npx hardhat run scripts/deployComponent.js --network <network>
-
Replace
<network>
with the network you want to deploy to. Options aremainnet
andsepolia
. -
To integrate your new component into the well, you will need to grab the address of the deployed component and add it as input to the deployWell script.