- The first things you need to do is cloning this repository and installing its dependencies:
$ git clone https://github.com/dojimanetwork/dojima-hackathon-template.git
$ cd hardhat
$ npm install
- Ensure your Node.js version is greater than 18.0.0.
Setup genesis whenever contracts get changed
$ npm install
#installation of npm v18.0.0 is required
$ npx hardhat compile
Should get the output similar to
Compiled 1 Solidity file successfully (evm target: paris).
$ npx hardhat test
Should get the output similar to
TestToken
✔ Should have correct name, symbol, and initial supply (101ms)
✔ Should mint tokens to specified address
✔ Should allow owner to pause and unpause the contract
✔ Should transfer tokens between accounts when not paused
✔ Should not transfer tokens when paused (75ms)
5 passing (13s)
-
Rename
.env.example
file to.env
-
To deploy the smart contract run the script
$ npx hardhat run scripts/deploy.js --network dojima_chain_devnet
Should get the output similar to
Wallet Address: 0x4ba5B96dBee62274B4F72817e76C7bb9fAaD3126
Deploying TestToken...
Test Token deployed to: 0xA8548F964cBBfD495a966bB79e9f13493f301aB4
- Fork
dojima-hackathon-template
repository - Create a new folder with
project-name
insidehackathon/<hackathon-name>
folder in main branch - Copy your entire project repository and add a
README
file. README
file should contain the following:
1. Project name and its members
2. Description
3. Tag-line (if-any)
4. Logo (optional)
5. Steps to follow for testing the project
6. Deployed contract address on top of DOJIMA blockchain
- Submit a
Pull Request
to this repository with your changes.