Saturday, June 6, 2026
No Result
View All Result
Crypeto News
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Blockchain
    • Ethereum
    • Altcoin
    • Mining
    • Crypto Exchanges
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Analysis
  • Regulations
  • Scam Alert
  • Videos
CRYPTO MARKETCAP
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Blockchain
    • Ethereum
    • Altcoin
    • Mining
    • Crypto Exchanges
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Analysis
  • Regulations
  • Scam Alert
  • Videos
CRYPTO MARKETCAP
Crypeto News
No Result
View All Result

a modern Solidity contract template utilizing Foundry and Hardhat : ethereum

by crypetonews
October 29, 2022
in Ethereum
Reading Time: 2 mins read
0 0
A A
0
Home Ethereum
Share on FacebookShare on Twitter


Introducing solidity-template, a Solidity template for Ethereum smart contracts. It optimally combines two extremely powerful frameworks:

Most contract repositories out there in the wild choose either one or the other. Both offer powerful tools for contract development, and although there is some overlap in their functionality, there is a multitude of reasons that you should be utilizing both:

Complete test coverage using Forge to cover the raw contract logic and basic scenarios, and Hardhat the complex user interactions.

Maximum suite of tools for contract debugging, deployment, gas measurements, etc.

Reference for on-chain developers writing contracts that call these contracts in your Unit Test files to see the expected usage in Solidity.

Reference for off-chain developers writing clients that call these contracts in your Integration Test files to see the expected usage in JavaScript (TypeScript) and Ethers.js.

The latter case has already proven to be extremely useful for a new project Git Consensus, where just pushing integration test code gave examples for the frontend devs concurrently to know how they need to prepare input parameters for the contract functions. This will only be more relevant as the community shifts to patterns that encourage loaded input parameters for gas savings.

Of the repositories that do combine try to combine both Foundry and Hardhat, none are optimized together in a way that makes them convenient to develop in. This is due to the split between how Foundry handles dependencies (git submodules located in /lib) and Hardhat handles dependencies (managed with NPM). Nothing felt up-to-date with contract development best practices in 2022.

This gap in a fully-featured, modern Solidity template that utilizes both frameworks inspired me to publish solidity-template – not only is it optimized for using both, but it also offers a lot of the boilerplate a project will be able to utilize to streamline development: GitHub Actions, interactive CLI, linting, doc generation, deployment address tracking, contributor guides, etc.

This template includes an easy-to-follow example Counter.sol, with its interface ICounter.sol, Unit Test file Counter.t.sol, and Integration Test file counter.test.ts.

If you like it, definitely give it a ⭐ so you can remember to use it for your next project!



Source link

Tags: ContractethereumFoundryHardhatModernSolidityTemplateutilizing
Previous Post

Why This Bitcoin Indicator Points To Bullish Double Bottom

Next Post

Robert Kiyosaki Warns Stocks, Bonds, Real Estate Will Crash as Fed Continues Rate Hikes — Advises Buy Bitcoin Before Fed Pivot – Economics Bitcoin News

Related Posts

Protocol Update 002 – Scale Blobs
Ethereum

Protocol Update 002 – Scale Blobs

August 22, 2025
Reddit AMA #77 with $VERB Chairman Manny Stotz — Digital Treasuries, BTC/ETH/TON, and Market Impact
Ethereum

Reddit AMA #77 with $VERB Chairman Manny Stotz — Digital Treasuries, BTC/ETH/TON, and Market Impact

August 20, 2025
Trillion Dollar Security – Phase 2
Ethereum

Trillion Dollar Security – Phase 2

August 20, 2025
Join Us: EF Protocol Reddit AMA – August 29th, 2025
Ethereum

Join Us: EF Protocol Reddit AMA – August 29th, 2025

August 15, 2025
Protocol Update 001 – Scale L1
Ethereum

Protocol Update 001 – Scale L1

August 5, 2025
lean Ethereum | Ethereum Foundation Blog
Ethereum

lean Ethereum | Ethereum Foundation Blog

July 31, 2025
Next Post
Robert Kiyosaki Warns Stocks, Bonds, Real Estate Will Crash as Fed Continues Rate Hikes — Advises Buy Bitcoin Before Fed Pivot – Economics Bitcoin News

Robert Kiyosaki Warns Stocks, Bonds, Real Estate Will Crash as Fed Continues Rate Hikes — Advises Buy Bitcoin Before Fed Pivot – Economics Bitcoin News

ApeCoin Shows Bullish Bias; This Level Needs To Be Broken For A Rally To

ApeCoin Shows Bullish Bias; This Level Needs To Be Broken For A Rally To $7

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

RECOMMENDED

No Content Available

  • USD
  • EUR
  • GBP
  • AUD
  • JPY
  • bitcoinBitcoin(BTC)
    $60,929.000.18%
  • ethereumEthereum(ETH)
    $1,562.72-3.01%
  • tetherTether(USDT)
    $1.000.02%
  • binancecoinBNB(BNB)
    $576.44-1.62%
  • usd-coinUSDC(USDC)
    $1.000.02%
  • rippleXRP(XRP)
    $1.11-0.41%
  • solanaSolana(SOL)
    $62.79-3.82%
  • tronTRON(TRX)
    $0.320603-1.26%
  • Figure HelocFigure Heloc(FIGR_HELOC)
    $1.030.96%
  • HyperliquidHyperliquid(HYPE)
    $58.67-6.31%
  • Trending
  • Comments
  • Latest
4 Expert Tips to Turn Blank Pages Into Business Blueprints

4 Expert Tips to Turn Blank Pages Into Business Blueprints

October 21, 2024
What are Meta Transactions? Exploring ERC-2771

What are Meta Transactions? Exploring ERC-2771

October 25, 2023
Top Crypto Portfolio Rebalancing Tools (Automated & Manual)

Top Crypto Portfolio Rebalancing Tools (Automated & Manual)

April 13, 2025
Uniswap v4 Teases Major Updates for 2025

Uniswap v4 Teases Major Updates for 2025

January 2, 2025
What Are Governance Tokens? A Beginner’s Guide to Crypto Voting Power

What Are Governance Tokens? A Beginner’s Guide to Crypto Voting Power

April 28, 2025
A 98% Crash and a Pump & Dump

A 98% Crash and a Pump & Dump

August 8, 2025
AI Expert: Truth Protocols Could Become the SSL of the Information Age

AI Expert: Truth Protocols Could Become the SSL of the Information Age

August 24, 2025
Analyst Says Dogecoin Price Is Entering Expansion Phase, Here’s What It Means

Analyst Says Dogecoin Price Is Entering Expansion Phase, Here’s What It Means

August 24, 2025
Robert Kiyosaki Exposes Brutal Truth Behind Sudden Wealth and Collapse

Robert Kiyosaki Exposes Brutal Truth Behind Sudden Wealth and Collapse

August 24, 2025
Ethereum’s Tech Edge Could Outshine Bitcoin — Here’s How

Ethereum’s Tech Edge Could Outshine Bitcoin — Here’s How

August 23, 2025
IRS Loses Top Crypto Enforcer After Only 90 Days on the Job

IRS Loses Top Crypto Enforcer After Only 90 Days on the Job

August 23, 2025
US Court Grants Stay In Coinbase Biometric Data Lawsuit — Details

US Court Grants Stay In Coinbase Biometric Data Lawsuit — Details

August 23, 2025
Crypeto News

Find the latest Bitcoin, Ethereum, blockchain, crypto, Business, Fintech News, interviews, and price analysis at Crypeto News.

CATEGORIES

  • Altcoin
  • Analysis
  • Bitcoin
  • Blockchain
  • Crypto Exchanges
  • Crypto Updates
  • DeFi
  • Ethereum
  • Metaverse
  • Mining
  • NFT
  • Regulations
  • Scam Alert
  • Uncategorized
  • Videos
  • Web3

LATEST UPDATES

  • AI Expert: Truth Protocols Could Become the SSL of the Information Age
  • Analyst Says Dogecoin Price Is Entering Expansion Phase, Here’s What It Means
  • Robert Kiyosaki Exposes Brutal Truth Behind Sudden Wealth and Collapse
  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us
  • About Us

Copyright © 2022 Crypeto News.
Crypeto News is not responsible for the content of external sites.

No Result
View All Result
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Blockchain
    • Ethereum
    • Altcoin
    • Mining
    • Crypto Exchanges
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Analysis
  • Regulations
  • Scam Alert
  • Videos

Copyright © 2022 Crypeto News.
Crypeto News is not responsible for the content of external sites.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In