Smart Contract Development Framework
main frame
- Hardhat (JavaScript)
- Truffle (JavaScript)
- Brownie (Python)
Hardhat
Hardhat is one of the best frameworks out there, with the fastest testing, best tutorials, and easiest integration in its class. Anyone who likes JS frameworks should give Hardhat a try sooner or later. It's easy to get started, quick to test and easy to get started. Discord answers all kinds of questions very quickly. They use Waffle and Ethers.js for testing, which are arguably better JavaScript smart contract frameworks because they make some really nice improvements over web3.js. They can also integrate directly with OpenZeppelin's upgradable smart contract plugin.
- ETH Foundation funded project, formerly Builder
- Technologies: Javascript, Web3.js and Ethers.js plugins, OpenZeppelin scalable contract plugin, Etherscan plugin, blockchain forks
- Blockchain: Hardhat runtime environment/local, testnet, mainnet
- Tested: Waffle
- Maintenance: very active
- Support: Active
- open source
Truffle
Truffle has been the framework of choice for developers for several years, and for good reason. It's a powerful framework that sets the standard for other followers. You'll easily find a whole bunch of projects using the platform, so examples are easy to find. Truffle can also be easily integrated with its sister tool Drizzle . Ganache, in particular, is one of the most popular ways for engineers to run a local blockchain. If you need more tools, you can pay for an upgraded Truffle team account to get continuous integration, visual deployment and monitoring of smart contracts. They can also integrate directly with OpenZeppelin's upgradable smart contract plugin, which is a big plus. They are clearly a talented group of engineers who all want to make a better world for smart contracts.
Truffle tests don't run as fast as Hardhat, and support can be difficult to acquire due to the former's large number of users. Since Truffle was acquired by ConsenSys, I'm looking forward to seeing how they can improve the project. The quality of their documentation seems to be starting to degrade, and it can be stumbling to read, but if you google the bug you've encountered, chances are you'll find examples where you've encountered this bug and solved it.
- Most widely used platform; recently acquired by ConsenSys (November 2020)
- Technology: Javascript, Web3.js, OpenZeppelin upgradeable contract plugin, Etherscan plugin, blockchain fork
- Blockchain: Ganache/local, testnet, mainnet
- There are tests
- Maintenance: very active
- Support: Active
- Open source project with paid upgrades
Brownie
Largely inspired by Truffle, the former is basically the Python equivalent of the latter with some added experience improvements. This project originated from the same confusion that most Python engineers have: they don't like JavaScript. Since it's written in Python, it avoids a lot of the hassle of using JavaScript and brings you a simple and excellent framework for working with and deploying smart contracts.
- Yearn.finance also seems to have used this framework.
- The best Python framework, used by DeFi projects like Yearn.finance.
- Technologies: Python, Web3.py, blockchain forks, Etherscan plugin, Vyper support
- Blockchain: Ganache/local, testnet, mainnet
- Maintenance: very active
- Support: Active
- open source
refer to
Like my work? Don't forget to support and clap, let me know that you are with me on the road of creation. Keep this enthusiasm together!
- Author
- More