This project is a smart contract built with Hardhat and TypeScript. The smart contract creates URLs that return pseudo-random avatars.
This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.
Try running some of the following tasks:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.ts
The Random Avatar Generator is a blockchain-based application that generates unique avatar URLs using a smart contract. The avatars are created pseudo-randomly, ensuring a diverse range of avatar designs.
You can see the contract in: Arbiscan - Arbitrum Sepolia
To get started with the project, follow these steps:
-
Clone the repository:
git clone https://github.com/Johan-FF/Smart-Contracts---Solidity.git cd Smart-Contracts---Solidity
-
Install the dependencies:
npm install
You need to set the value of the variables in the .env file.
-
Test the smart contracts:
npm run test
-
Compile the smart contracts:
npm run compile
-
Init a node:
npm run chain
-
Deploy in local:
npm run deploy:local
-
Deploy in ArbitrumSepolia:
npm run deploy:arbitrumSepolia
Contributions are welcome! If you have any suggestions or improvements, please create a pull request or open an issue.