Skip to content

SVOIcom/tonswap-explorer

Repository files navigation

Introduction

photo_2020-12-15_20-21-41 Hello there!
SVOI dev team greets you and would like to present the results of created Decentralized Exchange for the FreeTON Community contest:
#23 FreeTon DEX Implementation Stage 2 Contest.

Goal of this work is to create Decentralized Exchange based on Liquidity Pool mechanism and develop instruments, such as debot and site for interacting with developed smart contracts.

Links

Channel on Telegram

Repository for smart contracts compilation and deployment - https://github.com/SVOIcom/ton-testing-suite

Used ton-solidity compiler - solidity compiler v0.39.0

Used tvm-linker - latest tvm linker

Prerequirements

To run data collection and than use that data for explorer you need to configure MySQL database sql file
and change config according to your settings.

Usage

Install

  1. Clone all files from repo
  2. In cloned folder npm i

Data collection from graphQL

To collect data from graphQL you need to install dependencies:

npm install .

Next, you need to run tonDataCollector:

npm run startDB

Explorer backend running

We recommend using forever to run the service as a daemon.

Custom start

node index.js config.js

With Forever

forever index.js config.js

By default http server runs on port 3001. We recommend proxify http/https requests with nginx