Use Remix
Last updated
Last updated
There are multiple tools you can use to develop and compile Solidity contracts, we'd present two here as options
online web app Remix
Solidity development and testing framework Waffle
This guide walks through the process of creating and deploying a Solidity-based smart contract to the Acala standalone node using the Remix. Remix is one of the commonly used development environments for smart contracts on Ethereum.
Navigate to https://remix.ethereum.org/. Under Environments
, select Solidity
to configure Remix for Solidity development, then navigate to the File Explorers
view.
Here’s an example to compile an ERC20 contract using Remix. Open Remix and under the File
section click New File
.
In the file explorer in the left window will appear an input, where you write filename: BasicToken.sol
.
Paste the following code into the editor tab that comes up.
Note: this is a simple ERC-20 contract based on the Open Zeppelin ERC-20 template. On construction, it creates the BasicToken with the symbol BAT, and mints the total initial supply.
Below is the editor view.
Remix will include all of the Open Zeppelin dependencies and compile the contract.
Then select Solidity compiler
on the sidebar, and press the Compile BasicToken.sol
button.
Remix downloads all of the Open Zeppelin dependencies and compiles the contract.
Navigate back to File explorers
, in the artifacts
section find the BasicToken.json
file. Copy and paste the content and save it locally, this is the ABI file that will be deployed to Acala EVM later.