- 31 Jan 2022
- 2 Minutes to read
Smart contracts IDE
- Updated on 31 Jan 2022
- 2 Minutes to read
The SettleMint IDE is the only tool you need to edit the smart contract set template you have selected, or write new smart contracts. The programming language used for your Ethereum smart contracts is Solidity.
Using the IDE
On the left, in the “Explorer” panel, you can see all the folders and files related to the smart contract set.
The smart contract files are located in the “contracts” folder. You can edit them, or use them as is if the template fits all your needs.
The “deploy” folder contains the scripts that enable the deployment of the smart contract set on the blockchain. You might have to edit these scripts if you add new arguments to the constructor of your smart contract.
The “test” folder contains a script that lets you test the functionalities of your smart contracts. You can add new ones if you edit the template. Do not hesitate to go through the test cases as they provide valuable information on how to use your smart contracts.
In the bottom left corner, in the “Task runner” panel, you can run predefined yarn scripts such as:
“Lint” to lint your smart contracts, i.e. find the stylistic errors
“Compile” to compile your smart contracts
“Test” to run the test script in the “test” folder
“Deploy” to deploy the smart contract set on the blockchain
“Deploy:reset” to deploy from scratch after a first deployment
“Deploy:local” to deploy on a local hardhat network
You can view and explore these scripts in the
package.json file in the project root. In case the task runner does not load, you can execute these scripts in the terminal integrated with the IDE by running
For example, to run the
deploy:local task using the terminal, open a new terminal (ctrl + shift + ) and run the command yarn
To be able to deploy your smart contract set you need to have a private key to sign the transaction, and you need to fund this key with Ether to cover the cost for the transaction. You can create a private key and fund it in the Private keys section of your application. More about private keys.
Every instance of the IDE contains a set of pre-built smart contract templates. These templates are easily customizable to match your specific use case. Discover the smart contract set templates for Ethereum.