We, the ZeroSHA256Chain team, are dedicated to developing an innovative blockchain-based platform that enables students to validate their completed tasks while allowing educators and independent experts to efficiently verify these achievements. Our goal is to create a transparent, automated, and secure system for tracking educational success.
This guide will help you set up the development environment, run tests, and deploy the contract either locally. Whether you're a developer new to blockchain or an experienced contributor, these instructions are designed to help you get up and running quickly.
Before you begin, ensure you have the following installed:
- Node.js (v14 or later)
- npm or bun
For Hardhat installation and documentation, visit the Hardhat Getting Started Guide.
Repository with the smart contract - https://github.com/ZeroSHA256Chain/smart_contract
- Clone the Repository:
git clone https://github.com/ZeroSHA256Chain/smart_contract cd smart_contract
- Install Hardhat (if not already installed):
npm install --save-dev hardhat
- Install Project Dependencies:
or
yarn
npm install .
4 Running Tests To run the complete test suite and ensure everything is working as expected, execute:
npx hardhat test
To deploy and interact on your local blockchain network, follow these steps:
-
Start a Local Hardhat Node:
npx hardhat node
This command starts a local Ethereum JSON-RPC server at http://127.0.0.1:8545/ Also you can see a list of test accounts you can use later
-
Deploy the Contract Locally:
npx hardhat ignition deploy ./ignition/modules/DEDUAssess.js --network localhost
-
Add local network to MetaMask
First, you need to visit our website. In the pop-up window, you will need to connect your MetaMask wallet.
Next, we go to MetaMask and connect to our local network:
-
First click.
Select a network
-
Second click.
+ Add a custome network
You should see something similar to this.
-
-
Get test account
When you run
npx hardhat node
, you may see many test account:These are test accounts that have tokens on the network and can be used for network testing. Choose one account that you like and copy its private key.
Now you need to return to MetaMask:
- First click:
accounts
- Second click:
+ Account or hardware wallet
- Third click:
Import account
Now click
import
and test account should appear in your wallet.(with 10000 tokens)Now you can return to our website and perform system testing :)
- First click:
You can use deployed website on https://web-zeta-wheat-80.vercel.app/ but it is also possible to start it localy
- clone web repository
- npm install
- npm run dev
- After connecting to metamask you can see a starting page. Firstly add a project.
![image](https://private-user-images.githubusercontent.com/101751938/412612341-b6acf34e-0016-4fd3-9a48-628fe17d1f6e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTk1MTEsIm5iZiI6MTczOTU5OTIxMSwicGF0aCI6Ii8xMDE3NTE5MzgvNDEyNjEyMzQxLWI2YWNmMzRlLTAwMTYtNGZkMy05YTQ4LTYyOGZlMTdkMWY2ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwNjAwMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMWFjNzEzODcyMmJmNTUwMjQ3ZWQzZmZkOTkwMGQ0NDBkNGU5ODkwNmQ5OGM5MjM1MDI4ZmViNDJjNTYxYTIxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Rrd9amqWIA2VAYXSB48YFrda6IotU4Rpvn_Vipsbs24)
-
After reloading projects, you can see the project in a "Projects you can verify" list
-
Choose different account in MetaMask and reload page
-
Choose previous account and open your project. You can see a submitted task.
![image](https://private-user-images.githubusercontent.com/101751938/412613652-bc5789db-3946-4955-be48-015fdeda3528.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTk1MTEsIm5iZiI6MTczOTU5OTIxMSwicGF0aCI6Ii8xMDE3NTE5MzgvNDEyNjEzNjUyLWJjNTc4OWRiLTM5NDYtNDk1NS1iZTQ4LTAxNWZkZWRhMzUyOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1T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J9.8FEyHQqI96PXKrnOr7Xm_K0kIDw4oVIcNoRta6ne9pw)
- You can verify any submission on "Verify Submission" Page
![image](https://private-user-images.githubusercontent.com/101751938/412614576-ecd9cbda-768c-46d2-a8e6-a4245f8d450e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTk1MTEsIm5iZiI6MTczOTU5OTIxMSwicGF0aCI6Ii8xMDE3NTE5MzgvNDEyNjE0NTc2LWVjZDljYmRhLTc2OGMtNDZkMi1hOGU2LWE0MjQ1ZjhkNDUwZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwNjAwMTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wOWZiNWI2YjJiOTZlNzE5NWY0ZDdhMGYyMzgwMThjNjI3ZDFiMWQ0MjExYTQ0NmZjOTVlODkwNTQ5NmZhNTJkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yblVTEWfn7WaSvaFgh9wUFPFu7RNEDolI8g1CdGnKss)
The most recent deployment of the DEDUAssess
contract is available at:
0xC3B6ECF9E480c27A9492A975710Bb976ED008e7b
You can view the contract details on the Polygon Amoy Explorer