Skip to content

Compile and Deployment of contracts and templates on top of DOJIMA chain

License

Notifications You must be signed in to change notification settings

dojimanetwork/dojima-hackathon-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dojima Hackathon

  • 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

Setup genesis whenever contracts get changed

1. Install dependencies and submodules

$ npm install

2. Compile contracts

#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).

3. Testing Contracts

$ 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)

4. Deploy Contracts to Dojima Chain

  • Rename .env.example file to .env

  • Paste your wallet address Private Key in the .env file Private Key Sample

  • 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

PR Submission Guidelines

  1. Fork dojima-hackathon-template repository
  2. Create a new folder with project-name inside hackathon/<hackathon-name> folder in main branch
  3. Copy your entire project repository and add a README file.
  4. 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
  1. Submit a Pull Request to this repository with your changes.

Happy building! 😀

About

Compile and Deployment of contracts and templates on top of DOJIMA chain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published