diff --git a/vite-hardhat/README.md b/vite-hardhat/README.md index 002cfe5..a0fb3bc 100644 --- a/vite-hardhat/README.md +++ b/vite-hardhat/README.md @@ -33,18 +33,11 @@ In the meantime, follow these simple steps to work on your own machine: yarn ``` -## Generate verifier contract +6. Generate the verifier contract -### Contract - -The deployment assumes a verifier contract has been generated by nargo. In order to do this, run: - -```bash -cd circuits -nargo codegen-verifier -``` - -A file named `plonk_vk.sol` should appear in the `circuit/contracts/noirstarter` folder. + ```bash + yarn prep + ``` ### Test locally @@ -70,9 +63,7 @@ The test demonstrates basic usage of Noir in a TypeScript Node.js environment. ### Deploy locally -1. Copy `vite-hardhat/.env.example` to a new file `vite-hardhat/.env`. - -2. Start a local development EVM at with +1. Start a local development EVM at with ```bash npx hardhat node @@ -84,13 +75,13 @@ The test demonstrates basic usage of Noir in a TypeScript Node.js environment. anvil ``` -3. Build the project and deploy contracts to the local development chain with +2. Build the project and deploy contracts to the local development chain with ```bash yarn build ``` -4. Once your contracts are deployed and the build is finished, you can preview the built website with +3. Once your contracts are deployed and the build is finished, you can preview the built website with ```bash yarn preview @@ -100,7 +91,7 @@ The test demonstrates basic usage of Noir in a TypeScript Node.js environment. For convenience, we added two configurations for deployment on various testnets. You can find them in `hardhat.config.cts`. -To deploy on these testnets, copy the `.env.example` and add your own [alchemy](https://www.alchemy.com/) keys for these networks. +To deploy on these testnets, rename `.env.example` to `.env` and add your own [alchemy](https://www.alchemy.com/) keys for these networks. Then, prepend your commands with your desired network in a `NETWORK` environment variable. For example, to deploy on sepolia: @@ -110,6 +101,6 @@ NETWORK=sepolia yarn build` Feel free to add more networks, just make sure you: -- Add deployer private keys and alchemy API keys in `vite-hardhat/.env` +- Add deployer private keys and alchemy API keys in `.env` - Have funds in these accounts - Add a configuration in `hardhat.config.cts`