vaimee / desmo-dapp

0 stars 1 forks source link
DESMO

DESMO-LD DApp - Iexec Oracle implementation

Issues License Discord chat LinkedIn

Overview

Desmo-LD will leverage on iExec distributed cloud computing features to deploy its off-chain Oracle components. The Oracle DApp is an IExec decentralized application written in node-js (Typescript) which acts as the backend of Desmo-LD iExecDOracle. In particular, it is in charge of parsing and translating the on-chain oracle requests, collecting the results from the selected TDDs, reaching a consensus on the Web Thing response, and returning the response. Thanks to iExec secure environment facilities, enabled Web Things can be operated within a secure enclave where credentials can be shared without any risk of information leaking.

Table of Contents
  1. System Architecture
  2. Getting Started
  3. Acknowledgments
  4. WAM for TDs example management
  5. Linksmart Directory for Directories example
  6. DApp

System Architecture

Architecture

FlowChart

FlowChart link

Getting started

Here you can find a short way to configure all the services that you need to run the DApp. If you need more details about these services, you can find them in their section, look at the Table of Contents

SETUP

  1. WAM
    1. cd ./example-tds
    2. npm install
    3. npm run build
    4. npm start
  2. cd ..
  3. Directory
    1. cd ./directory
    2. Download and install GO go.dev
    3. ./downloadRepo.sh
    4. cd ./directoryManager
    5. npm install
    6. npm start
  4. cd ../../
  5. DApp
    1. cd ./DApp
    2. npm install -g ts-node typescript '@types/node'

RUN TEST

  1. WAM
    1. cd ./example-tds
    2. npm start
  2. cd ..
  3. Directory
    1. cd ./directory
    2. ./buildAndRunMultiple.sh
    3. ./setupMultiple.sh
  4. cd ../../
  5. DApp
    1. cd ./DApp
    2. ts-node tests/runTests.ts usecase

Zion as Directory

Zion is an Directory implementation, you can find the Zion repository here

The final demo of DESMO-LD project will use Zion Directories, to use an isntace of that with docker:

  1. download the repository here
  2. docker-compose up

To test the DApp with Zion as Direcotry:

  1. WAM
    1. cd ./example-tds
    2. npm start
  2. cd ..
  3. Directory
    1. if Zion is not up yet, go in the Zion repository folder and then docker-compose up
  4. DApp
    1. cd ./DApp
    2. ts-node tests/runTests.ts zion

Acknowledgments

DESMO-LD

DESMO-LD DApp is founded by the DESMO-LD project inside the ONTOCHAIN european organization part of the Next Generation Internet fund.