Friday, August 8, 2025
No Result
View All Result
Crypeto News
Smarter_way_USA
  • 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 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
ever seen an ethereum core dev fire a shotgun while breaking down pectra?
Ethereum

ever seen an ethereum core dev fire a shotgun while breaking down pectra?

July 30, 2025
🎉 Celebrate 10 years of ETHEREUM. Grab a FREE Tshirt! 👕
Ethereum

🎉 Celebrate 10 years of ETHEREUM. Grab a FREE Tshirt! 👕

July 30, 2025
🎉 Happy Birthday, Ethereum!
Ethereum

🎉 Happy Birthday, Ethereum!

July 30, 2025
Celebrating 10 years of Ethereum! 🥳
Ethereum

Celebrating 10 years of Ethereum! 🥳

July 30, 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

[LIVE] Massive Crypto Liquidations to Precede A Big Pump: Best Crypto To Buy Now
Bitcoin

[LIVE] Massive Crypto Liquidations to Precede A Big Pump: Best Crypto To Buy Now

by crypetonews
August 2, 2025
0

Saturday, yes, it’s the best day of the week again to find the crypto to buy for now or next...

Coinbase Adds AI Personal Finance Project to Listing Roadmap, Triggering Altcoin Rallies

Coinbase Adds AI Personal Finance Project to Listing Roadmap, Triggering Altcoin Rallies

August 5, 2025
USDC Emerges as Top Pick in Booming Crypto Payroll Trend

USDC Emerges as Top Pick in Booming Crypto Payroll Trend

August 7, 2025
Massive Red Friday: Bitcoin and Ether ETFs See Combined 4 Million Outflow

Massive Red Friday: Bitcoin and Ether ETFs See Combined $964 Million Outflow

August 2, 2025
Tezos (XTZ) Shows Mixed Signals as Price Hovers Near alt=

Tezos (XTZ) Shows Mixed Signals as Price Hovers Near $0.75 Support

August 3, 2025
Mega Crypto Shift? Fidelity Sells its Bitcoin Hoard without Fanfare

Mega Crypto Shift? Fidelity Sells its Bitcoin Hoard without Fanfare

August 3, 2025

Please enter CoinGecko Free Api Key to get this plugin works.
  • Trending
  • Comments
  • Latest
Top 10 NFTs to Watch in 2025 for High-Return Investments

Top 10 NFTs to Watch in 2025 for High-Return Investments

November 22, 2024
Uniswap v4 Teases Major Updates for 2025

Uniswap v4 Teases Major Updates for 2025

January 2, 2025
Enforceable Human-Readable Transactions: Can They Prevent Bybit-Style Hacks?

Enforceable Human-Readable Transactions: Can They Prevent Bybit-Style Hacks?

February 27, 2025
Best Cryptocurrency Portfolio Tracker Apps to Use in 2025

Best Cryptocurrency Portfolio Tracker Apps to Use in 2025

April 24, 2025
What’s the Difference Between Polygon PoS vs Polygon zkEVM?

What’s the Difference Between Polygon PoS vs Polygon zkEVM?

November 20, 2023
FTT jumps 7% as Backpack launches platform to help FTX victims liquidate claims

FTT jumps 7% as Backpack launches platform to help FTX victims liquidate claims

July 18, 2025
XRP Official CRYPTO VOTE LIVE NEWS!🔴GENIUS, CLARITY Act

XRP Official CRYPTO VOTE LIVE NEWS!🔴GENIUS, CLARITY Act

46
IMP UPDATE : BILLS PASSED || BITCOIN DOMINANCE FALLING

IMP UPDATE : BILLS PASSED || BITCOIN DOMINANCE FALLING

38
🚨BIG UPDATE ON WAZIRX || ALT COIN PORTFOLIO NO 1

🚨BIG UPDATE ON WAZIRX || ALT COIN PORTFOLIO NO 1

37
BITCOIN: IT'S HAPPENING NOW (Urgent Update)!!! Bitcoin News Today, Ethereum, Solana, XRP & Chainlink

BITCOIN: IT'S HAPPENING NOW (Urgent Update)!!! Bitcoin News Today, Ethereum, Solana, XRP & Chainlink

33
JUST IN XRP RIPPLE DUBAI NEWS!

JUST IN XRP RIPPLE DUBAI NEWS!

25
Flash USDT | How It Became the Biggest Crypto Scam Worldwide

Flash USDT | How It Became the Biggest Crypto Scam Worldwide

31
Cardano Plots Aggressive Expansion Through Global Events Blitz

Cardano Plots Aggressive Expansion Through Global Events Blitz

August 8, 2025
First-Ever Bitcoin Meme ICO Sparks Mass FOMO Before Listing

First-Ever Bitcoin Meme ICO Sparks Mass FOMO Before Listing

August 8, 2025
[LIVE] Latest Crypto News, August 8 – Rally as Trump Approves 401(k) Crypto Investments, ETH Breaks $3,900: Next Crypto To Explode?

[LIVE] Latest Crypto News, August 8 – Rally as Trump Approves 401(k) Crypto Investments, ETH Breaks $3,900: Next Crypto To Explode?

August 8, 2025
Winklevoss Twins Inject Bitcoin Into Trump-Linked Mining Venture

Winklevoss Twins Inject Bitcoin Into Trump-Linked Mining Venture

August 8, 2025
WLD Price Rebounds 4.55% After Binance.US Listing Despite China Warning

WLD Price Rebounds 4.55% After Binance.US Listing Despite China Warning

August 8, 2025
Stellar (XLM) eyes 35% rally as Ripple and SEC end 5-year legal battle

Stellar (XLM) eyes 35% rally as Ripple and SEC end 5-year legal battle

August 8, 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

  • Cardano Plots Aggressive Expansion Through Global Events Blitz
  • First-Ever Bitcoin Meme ICO Sparks Mass FOMO Before Listing
  • [LIVE] Latest Crypto News, August 8 – Rally as Trump Approves 401(k) Crypto Investments, ETH Breaks $3,900: Next Crypto To Explode?
  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact 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