Smart contracts IDE
  • 10 Aug 2022
  • 2 Minutes to read
  • Dark

Smart contracts IDE

  • Dark

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 Hyperledger Besu 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.

Yarn scripts

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 yarn name-of-script.
For example, to run the deploy:local task using the terminal, open a new terminal (ctrl + shift + ) and run the command yarn deploy:local.

Private key

To be able to deploy your smart contract set on the blockchain you need to have a private key enbaled on your node to sign the transaction. Funding your private key is not required if you did not change the standard network setting of the gas price being 0. Only if you changed this, you need to fund your key with Ether to cover the cost for the transaction.

You can create a private key in the Private keys section of your application. More about private keys.

Template library

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 Hyperledger Besu

Was this article helpful?

What's Next