DEV Community

Aram Alipoor
Aram Alipoor

Posted on

3 3

Template for creating a typescript Hardhat-based repository for EVM smart contract development

gm everyone,

I have just published a scaffold repository template I have used for our project so that folks don't need to reinvent the wheel and get straight to writing code and deploying on the blockchain.

The repository is called 0xflair/evm-contract-scaffold, you can use it as a template.

Here are some of the features that might be interesting:

  • Uses hardhat-deploy to keep track of deployments (upgradable or normal)
  • Uses typechain to auto-generate typescript bindings for compiled contracts, useful for auto-completion in your frontend dApps
  • Uses semantic-release and commitlint for a streamline CI
  • Uses Github Actions to publish versioned contracts to NPM, along with their Typescript bindings, ABIs (useful for interacting from your dApp) and bytecodes (useful when deploying contracts using ethers.js or web3).
  • Supports multiple chains
  • Gas cost reporter using CoinMarketCap APIs for your contract deployment and each interaction
  • Contract size calculator plugin for Hardhat
  • Automated Etherscan verification for deployed contracts

Feel free to give feedback or create PRs.

Cheers!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay