Building on ZADOVO

ZadovoChain uses EVM for contract execution. See Solidity for details.

Remix

Remix IDE is an open-source web and desktop application. It fosters a fast development cycle and has a rich set of plugins with intuitive GUIs. Remix is used for the entire journey of contract development and is a playground for learning and teaching contract development.

Create a new file in File Explorer. Edit contact info on the right side.

Compile contract

  1. Click the compiler button, switch the UI

  2. Select the contract you want to compile

  3. Set compile flags

  4. Click compile button

Deploy contract to the blockchain via a wallet such as MetaMask.

  1. Set network info in Metamask.

  2. Back to Remix.

  • Switch environment

  • Select contract

  • click deploy button

The contract can be deployed on the chain through MetaMask

Truffle

Use Truffle to compile and deploy contracts.

  • Install truffle

    Run truffle version after installation finished. If the command line displays a message like below, installation is successful.

  • Create project

First, create a folder for the project.

Then, init project via truffle

After initialization is complete, the following file structure is generated within the project.

  • Config truffle info

  • Create contract: Put custom contracts into folder contracts and modify deployment script in folder migrations.

  • Deploy contract

Run the deployment command.

The output as below.

Finally, the contract deployment is complete.

Last updated