Tron-IDE is an online editor that helps developers develop smart contracts. It has the characteristics of modularity, and provides editing, compiling, deploying, and debugging smart contracts in the form of plug-ins. If you have experience using remix, then using Tron-IDE will be more familiar and convenient. If you are a beginner, please read the following.
No matter what system your computer is, you need to install Chrome browser first. Chrome browser is the carrier of Tron-IDE.
Please be patient, it will take a few seconds for the first load.
The main interface of Tron-IDE is mainly composed of the above sections 1-4:
Left 1 position, plug-in selection menu
Left 2 position, plug-in function menu
Right 3 position, Home page and plugin function menu page
Right 4 position, log and terminal
Login account and select network
Before deploying a smart contract, you need to log in to TronLink with the account which you want to deploy the smart contract.
And select the node.
If you are using a new account of the shasta, you can get test coin here.
Edit a smart contract
To deploy a smart contract, you need to use the Plugin Manager to load the corresponding plug-ins. File Explorers are loaded by default. In the function menu of this plug-in, we can create a new file through the button to edit a smart contract .
Compile Smart Contract
Use the SOLIDITY compiler plug-in (Solidity compiler), select the appropriate version, and compile the edited smart contract. After the compiling is successful, it will return the compiling result information, including ABI, Bytecode, etc .; if the compilation fails, the specific information in red will be returned in the lower left .
Deploy Smart Contracts
After successful compilation, use the deployment plugin (DEPLOYMENT). After successful deployment, the terminal will return transaction information.
Call the function
After successful deployment, the smart contract address is automatically loaded, and the function can be called in the drop-down menu; the existing smart contract address can also be loaded through the button 'At Address'.
Updated 8 months ago