I. Introduction

This documentation describes the procedures to compile and deploy smart contracts on DEXON. Generally, the procedures are generally similar to that of deployment on Ethereum. For the differences, our engineers have prepared a generalized repo to assist you in deploying the smart contracts effortlessly.

Before we begin, we highly recommend that you learn about the mechanisms of Truffle, the platform-of-choice that we will be using to deploy smart contracts on DEXON. Please refer to https://truffleframework.com/docs for more information.

You can also refer to the following resources for additional information regarding smart contract deployment.

https://www.udemy.com/ethereum-and-solidity-the-complete-developers-guide/

https://cryptozombies.io/ (fun way to learn about the smart contracts in general)

II. Deploying smart contracts on DEXON

Before we start, we strongly recommend to first deploy the hello sample smart contract provided in the repo onto DEXON first to have a better understanding at the inner workings. Refer to this repo for more information https://github.com/dexon-foundation/hello-dexon.

With the sample contract, go through steps 1, 4, 5 and 6 first to learn about deployment. Steps 2 and 3 are simply steps to make changes to save your own smart contract. The rest of the procedures remain the same.

1. We will first install the repo onto your machine. Note that Truffle will be bundled with this installation to save you time from having to install it again.



b. cd hello-dexon

c. npm install a. git clone https://github.com/dexon-foundation/hello-dexon.git b. cd hello-dexonc. npm install