solidity-template
useful-solidity-patterns
Our great sponsors
solidity-template | useful-solidity-patterns | |
---|---|---|
6 | 1 | |
115 | 1,359 | |
- | 1.7% | |
1.9 | 7.0 | |
10 months ago | 5 months ago | |
TypeScript | Solidity | |
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:
useful-solidity-patterns
-
solidity-template: a modern Solidity contract template utilizing Foundry and Hardhat
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.
What are some alternatives?
foundry-lsp-smart-contracts - Repo used only for testing.
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
hardhat-tracer - 🕵️ allows you to see internal calls, events and storage operations in the console
contracts - Converts the informal ownership structure of an open-source git project to a formal DAO, with token distribution mechanisms for contributors.
prb-math - Solidity library for advanced fixed-point math
nodegit - Native Node bindings to Git.
uniswap-v3-token-swap - example code of uniswapV3 token swaps with hardhat and ethersjs
hardhat-gas-reporter - Gas Usage Analytics for Hardhat
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-zksync
vscode-solidity - Visual Studio Code language support extension for Solidity smart contracts in Ethereum https://marketplace.visualstudio.com/items?itemName=JuanBlanco.solidity