In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "what are the characteristics of truffle". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Truffle is a set of development framework for the Solidity language based on Ethernet Square. Itself is based on JavaScript. Truffle is a world-class development environment, testing framework, resource management channel for Ethernet Square, dedicated to making development on Ethernet Square easier.
Truffle has the following characteristics:
Built-in intelligent contract compilation, linking, deployment and binary file management.
Automated contract testing under rapid development.
Scripted, extensible deployment and release framework.
Network environment management functions deployed to no matter how many public or private networks
Use the package management provided by EthPM&npm and use the ERC190 standard.
A direct interactive console that communicates directly with the contract (which can be verified on the command line after writing the contract).
Configurable build process to support tight integration.
Support the execution of external scripts in the Truffle environment.
Installation method:
Npminstall-gtruffle
Environmental requirements
Nodejs5.0+
Windows,Linux, or MacOSX
Truffle needs Ethernet Fong client and supports standard jsONRPCAPI. For developers, there are some more suitable, which will be described in later chapters (for example, testRPC provides real-time feedback during coding debugging).
What do you need to know before learning Truffle?
Generally speaking, nothing special is needed.
Because it is the basic JavaScript, but the requirements for JavaScript are relatively low, know the basic grammar, modules, the concept of Promise almost on it, do not know it, encounter do not understand, now check the information is too late. I can barely understand this as a background developer.
Need to know Solidity, because itself is a framework for it, otherwise why learn this.
Know a little bit about the basics of Solidity, but that's enough.
What's the use of Truffle?
What exactly does Truffle bring to us?
First of all, the client is deeply integrated. Development, testing, and deployment of one-line commands can be done. You don't have to remember so many environment addresses, onerous configuration changes, and remember a lot of commands.
It provides a set of project building mechanisms such as maven or gradle, which can automatically generate relevant directories, which are based on Web by default. The current packaging mechanism is custom, relatively crude, and not compatible with the current popular packaging solutions. But it claims to be deprecated and compatible with the mainstream, but it also supports custom packaging processes.
Provides a contract abstraction interface, which can be directly through varmeta=MetaCoin.deployed (); after getting the contract object, directly manipulate the corresponding contract function in JavaScript. The principle is to use the EtherPudding toolkit based on web3.js encapsulation. Simplify the development process.
Provides a console, after using the framework to build, you can directly call the output results on the command line, which is very convenient for development and debugging.
Provides the process of monitoring contracts, automatic release of configuration changes, and deployment. You don't have to redo the whole process after every modification.
This is the end of the content of "what are the characteristics of truffle"? thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.