Install pnpm
Before being able to run any command, you need to create a .env
file and set a BIP-39 compatible mnemonic as an
environment variable. If you don't already have a mnemonic, you can use this website to
generate one. You can run the following command to use the example .env:
cp .env.example .env
Then, proceed with installing dependencies:
pnpm install
Compile the smart contracts with Hardhat:
npx hardhat compile --network inco
Compile the smart contracts and generate TypeChain bindings:
pnpm typechain
(For more control over the deployment process, you can rewrite the deployment script (deploy.ts) and use the command
npx hardhat run scripts/deploy.ts --network inco
to deploy your contracts.)
Run the tests with Hardhat:
npx hardhat test --network inco
Deploy the ERC20 to Inco Gentry Testnet Network:
npx hardhat run deploy/BlindAuction.ts --network inco