... | ... | @@ -66,7 +66,7 @@ This will install the Mongoose package and add it as a dependency to your projec |
|
|
|
|
|
## Hardhat
|
|
|
|
|
|
To develop and deploy our smart contract we are using [Hardhat](https://hardhat.org), a popular development environment that offers tools for testing, compiling and deployment of Ethereum smart contracts. It also offers a built in test network, the hardhat network that allows us to ..... without having to worry about gas fees before deploying the smart contract to a real Ethereum network.
|
|
|
To develop and deploy our smart contract we are using [Hardhat](https://hardhat.org), a popular development environment that offers tools for testing, compiling and deployment of Ethereum smart contracts. It also offers a built-in test network, the hardhat network that allows us to ..... without having to worry about gas fees before deploying the smart contract to a real Ethereum network.
|
|
|
|
|
|
To add hardhat to your project, ensure that you're in the **nextjs-blog** directory and run the following command:
|
|
|
|
... | ... | @@ -84,6 +84,20 @@ and choose the option to create an empty **hardhat.config.js** file to configure |
|
|
|
|
|
(insert picture of hardhat.config.js here)
|
|
|
|
|
|
After that you can create the folders **contract/** to store the source files for your smart contracts and **scripts/** where you can store the script for the contract deployment. Now your directory should look like this:
|
|
|
After that, you can create the folders **contract/** to store the source files for your smart contracts and **scripts/** where you can store the script for the contract deployment. Now, your directory should look like this:
|
|
|
|
|
|
{height="450px"}
|
|
|
|
|
|
## Wallet
|
|
|
|
|
|
To enhance our wallet creation process for this project, we have opted to incorporate [Wagmi](https://wagmi.sh) for seamless Ethereum integration. By integrating our wallet with smart contracts, we can ensure the secure storage of our NFT tickets. Wagmi, a comprehensive collection of React Hooks, provides all the essential tools needed for Ethereum-related development tasks. To streamline the wallet connection experience across multiple chains, we leverage the [web3modals](https://web3modal.com) library, which centralizes the multi-chain wallet connection flows in one convenient location.
|
|
|
|
|
|
{height="450px"}
|
|
|
|
|
|
To get started, run the following command:
|
|
|
|
|
|

|
|
|
|
|
|
This will install web3modals and wagmi:
|
|
|
|
|
|
 |
|
|
\ No newline at end of file |