solidity-template
hardhat-gas-reporter
Our great sponsors
solidity-template | hardhat-gas-reporter | |
---|---|---|
6 | 5 | |
115 | 395 | |
- | - | |
1.9 | 7.0 | |
10 months ago | 19 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
solidity-template
-
solidity-template: now with support for zkSync 2.0 and EIP-1559 transactions!
New updates to solidity-template are available! This template now supports more networks than ever. And for the first time, streamlined contract development to zk rollup L2s are possible!
-
Latest Week in Ethereum News
Awesome to see a mention of solidity-template here! Check out the thread for more info.
-
solidity-template: a modern Solidity contract template utilizing Foundry and Hardhat
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.
Reference for on-chain developers writing contracts that call these contracts in your Unit Test files to see the expected usage in Solidity.
solidity-template's sample contract, Counter.sol, is trivial, so the value add isn't observable here. Let me share a recent example where off-chain logic would never be able to be handled inside the Foundry unit tests:
hardhat-gas-reporter
- Hardhat Eth Transfer testing
-
Understanding SushiSwap's MasterChef staking rewards
With hardhat-gas-reporter we can see how much expensive each implementation is.
- What is the cost of minting an ERC721 on Ethereum right now via safeMint() in USD? And what's the easiest way to check this value?
-
Things I learned deploying my first NFT contract to production
Deploying the contract in Polygon and minting costed around $0.80, including some NFTs minting. Compared to Ethereum mainnet, it would have been some thousand bucks. Despite that it is also a good idea to optimize the contract, and check the gas costs. Here's a great tool if you're using Hardhat.
-
Per-method gas reporter without test suites
I can get a neat report with hardhat-gas-reporter for my own contracts, but I don't know how to do that for third-parties if they don't happen to be using Hardhat too - or if they have no test suites at all.
What are some alternatives?
foundry-lsp-smart-contracts - Repo used only for testing.
TypeChain - 🔌 TypeScript bindings for Ethereum smart contracts
hardhat-tracer - 🕵️ allows you to see internal calls, events and storage operations in the console
pg-mem - An in memory postgres DB instance for your unit tests
prb-math - Solidity library for advanced fixed-point math
hardhat - Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.
uniswap-v3-token-swap - example code of uniswapV3 token swaps with hardhat and ethersjs
baseline - The Baseline Protocol is an open source initiative that combines advances in cryptography, messaging, and distributed ledger technology to enable confidential and complex coordination between enterprises while keeping data in systems of record. This repo serves as the main repo for the Baseline Protocol, containing core packages, examples, and reference implementations.
What-is-the-best-crypto - Dapp to find out which crypto is the best and donating money for a good cause in the mean time. The repo includes the smart-contract (solidity) and the frontend (react)
hardhat-template - Hardhat-based template for developing Solidity smart contracts
hardhat-zksync
full-stack-ethereum - Building full stack apps with Solidity, Ethers.js, Hardhat, and The Graph