This repository has been deprecated.
Please use this repository for the currently supported Fractal smart contracts:
https://github.com/decent-dao/fractal-contracts
The Token Factory contract utilizes ERC20 Votes OpenZ contracts and the MVD for Factory Module Interface
The TokenFactory Contract creates a VotesTokenSupply Contract that mints allocations to an array of holders and to the treasury address.
Clone the repository:
git clone ...
Lookup the recommended Node version to use in the .nvmrc file and install and use the correct version:
nvm install
nvm use
Install necessary dependencies:
npm install
Add .env
values replacing the private key and provider values for desired networks
cp .env.example .env
Compile contracts to create typechain files:
npm run compile
Run the tests
npm run test
npx hardhat deploy --network <network>
To deploy the base Fractal contracts open a terminal and run:
npx hardhat node
This will deploy the following contracts and log the addresses they were deployed to:
- TokenFactory