Coder Social home page Coder Social logo

atom-engine's Introduction

About

atom-engine service facilitates conducting Atomic Swap trades with swap data persistence, leaving both clearing and custody to the client-side (ATOM DEX), eliminating the need of trusted 3rd parties.

The service is designed to run as a daemon on any sort of Unix. It operates a registry of swap requests (similar to orders in classic markets), so that one can host his own decentralized exchange based on the Atomic Swap technology.

At its core, atom-engine provides the following functionality:

  1. Atomic Swap trade requests managed in-memory
  2. Atomic Swap data persistence for facilitating client-side swaps

How to build

1. Install libraries: libevent, hiredis

On Debian / Ubuntu:

sudo apt install libevent-dev
sudo apt install libhiredis-dev

2. Run install scripts:

sudo ./configure_swap_server
sudo ./make_swap_server

Running the service

Before running, you have to

1. Install Redis

On Debian / Ubuntu:

sudo apt install wget curl build-essential tcl
sudo apt install redis-server

2. Create the 'settings.ini' file in the 'build' directory

Configure parameters in 'settings.ini':

[SwapServer]
Ip = <IP address to bind>
Port = <port to listen>
WorkersCount = <the number of handlers for incoming requests; as the engine is designed async, it is recommended to set the count to 1>

[Redis]
Ip = <IP addess of the Redis instance>
Port = <port listened by the Redis instance>

To run the service, either launch 'run_swap_server' or execute ./swap_server from the 'build' directory.

API methods

Documentation is available here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.