Smart Contract Development Framework

hellolinux2021
·
·
IPFS
·
Blockchain Smart Contract 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

https://www.infoq.cn/article/rm7llugqej1tzmvpsnwb

CC BY-NC-ND 2.0

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!

hellolinux2021欢迎拍手与交流,个人Channel:https://t.me/hellolinuxLab Sentinel DVPN中文社区管理,技术及使用支持 https://t.me/Sentinel_China 个人主页:https://hellolinux.uk/about
  • Author
  • More

20220820近况更新

费曼学习法

obsidian的annotator插件