Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.
/ thesis-index-token Public archive

Codebase for Master's thesis "Developing a Blockchain-based System for Passive Asset Management Using an Index Token in the Context of Decentralized Finance"

Notifications You must be signed in to change notification settings

anhmt90/thesis-index-token

Repository files navigation

Index Token for Passive Asset Management

System Architecture

System Overview

Purchasing workflow of DFAM Token

Purchase Workflow

Portfolio update workflow

Update Workflow

Required Setup

Install the required packages and dependencies:

npm install -g ganache-cli

npm install -g truffle

npm install  # please make sure you're standing in the repo's folder when running this command

Compile the contracts:

truffle compile

Configure logging options (optional)

The LOG_LEVEL environment variable in ./config/env.test can be changed to different options to control the log out of the test:

  • debug to show all debug information during the test
  • info to show only info logs
  • error to show only errors

Run Unit Tests on the Smart Contracts

npm run test

Run the Front-end/GUI Client

On the 1st terminal (at the root directory), run the local blockchain using Ganache

npm run chain

On the 2nd terminal (at the root directory), deploy the smart contract ecosystem and start the front-end client

npm run deploy

cd client/
yarn start

The front-end can then be accessed using the browser at http://localhost:3000/. Please note that MetaMask or an equivalent wallet software should be installed on the browser in order to interact with the blockchain run by Ganache on localhost. Currently, the front-end has been tested with MetaMask on the Chrome browser (Version 94.0.4606.71).

About

Codebase for Master's thesis "Developing a Blockchain-based System for Passive Asset Management Using an Index Token in the Context of Decentralized Finance"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published