This project focuses on the development of a Solidity-based smart contract named OneMilNftPixels
, part of a larger initiative to explore blockchain technologies, specifically within the context of Non-Fungible Tokens (NFTs). The contract is built using Solidity and integrates OpenZeppelin's ERC721 and Ownable contracts.
The project is divided into three main parts:
- Description: This directory contains the initial setup for the Solidity environment, including the compilation of the provided
example.sol
file. - Key Components:
- Solidity source file (
example.sol
). - Compiled ABI and bytecode (
example.abi.json
andexample.bytecode.bin
). - NPM configuration files and
node_modules
directory. - Compilation commands (
commands.sh
for Linux/Mac,commands.bat
for Windows).
- Solidity source file (
- Description: Contains the updated Solidity contract
OneMilNftPixels
, which demonstrates functionalities related to an NFT marketplace. - Key Components:
- Updated Solidity source file (
example.sol
) with defined contract, including functions for buying and updating pixels.
- Updated Solidity source file (
- Description: Features the Hardhat project setup for advanced development and testing.
- Key Components:
- Hardhat configuration file (
hardhat.config.js
). .secret
file for secure management of test accounts.
- Hardhat configuration file (
To set up the project, follow these steps:
- Clone the repository to your local machine.
- Navigate to each directory (
code-01
,code-02
,code-03
) and perform the necessary installation steps:- For
code-01
andcode-02
: Ensure Node.js and NPM are installed, then runnpm install
to install dependencies. - For
code-03
: Install Hardhat usingnpm install --save-dev hardhat
.
- For
code-01
:- Run
commands.sh
orcommands.bat
depending on your operating system to compile the Solidity file.
- Run
code-02
:- Review and test the
example.sol
file using Solidity tools or integrated development environments like Remix.
- Review and test the
code-03
:- Use Hardhat commands like
npx hardhat compile
for compiling contracts within this setup. - Test network configuration and smart contract deployment using Hardhat's network management features.
- Use Hardhat commands like
- Be sure to review and test the smart contracts thoroughly before considering deployment on a live network.
- For detailed documentation on Solidity and Hardhat, refer to their respective official documentation.