Setup

Pre-Requisites

The following tools need to be installed:

Globally Truffle Installation

npm install -g truffle     

You might be require to provide super user privileges to install it.

Project Setup

Navigate to the directory where you want to setup you project. For this guide we will be using "demo" as the project name.

truffle init demo
cd demo

Installing Dependencies

npm install --save @harmony-js/core
npm install --save @harmony-js/utils
npm install --save tslib
npm install --save dotenv

(Optional) Install Additional Dependencies if required. We wont be using this for this demo.

Create a .env file in the project root directory and put your mnemonic code, private key, and rpc url in it. We will be using the following structure for our demo.

Configuring Truffle

In the project root directory, there is a file truffle-config.js and copy paste the following configuration.

Last updated

Was this helpful?