This repo contains all the contracts for Presail. It uses hardhat to aid in development.
git clone https://github.com/MaxosLLC/LaunchPools.git
cd LaunchPools
cp .env.example .env
npm install
npx hardhat run --network <your-network> scripts/deploy_<network>.ts
npx hardhat verify --network <your-network> --constructor-args scripts/arguments_<network>.ts DEPLOYED_CONTRACT_ADDRESS
npx hardhat compile
npx hardhat test
In order to test the system e2e, a local blockchain must be running.
- Run the local blockchain:
npx hardhat node
. - Compile and deploy all contracts to this network:
npx hardhat run --network localhost scripts/deploy.ts
.
This will print out the addresses where the contracts where deployed. These values will be used in the frontend.
At this point, you have a local blockchain running on localhost:8545
ready to accept connections.