Skip to content
Equilibria: The dollar, decentralized. A USD decentralized stablecoin.
C++ C CMake Objective-C Python Makefile Other
Branch: master
Clone or download
Pull request Compare This branch is 382 commits ahead, 2067 commits behind monero-project:master.
Latest commit 14b2ff7 Jan 20, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmake Fix Syncing issues Nov 3, 2018
contrib sodium, zmq and cpp packages update for depends build Jan 18, 2020
external Fork v6 - "Portland" (#17) Nov 4, 2019
include Update 2018 copyright Jan 26, 2018
src seed nodes and version bump Jan 19, 2020
tests Fork v6 - "Portland" (#17) Nov 4, 2019
translations Change restore from electrum word command May 30, 2019
utils Create ArqTras.asc Jan 18, 2020
.gitattributes
.gitignore Add checkpoints Jan 27, 2019
.gitmodules rapidjson: remove outdated in-tree, use submodule May 25, 2018
.travis.yml
CMakeLists.txt Fork v6 - "Portland" (#17) Nov 4, 2019
CMakeLists_IOS.txt Readd copyright starting date Jan 26, 2018
CONTRIBUTING.md Update CONTRIBUTING.md Jan 24, 2019
Dockerfile Upgrade static dependencies Jun 3, 2019
Doxyfile Doxygen Triton changes Jun 3, 2019
LICENSE Update 2018 copyright Jan 26, 2018
Makefile Makefile: fix building without a git tree Oct 30, 2018
README.i18n.md Updating Qt download link Aug 7, 2018
README.md Update README.md Jan 20, 2020
snap
version Nodes and testnet and stagenet ports Nov 3, 2018
version.sh Nodes and testnet and stagenet ports Nov 3, 2018

README.md

Equilibria# Equilibria Image of Equilibria

Equilibria harnesses market forces and an on-chain asset to issue $USDE, a redeemable stablecoin whose supply automatically scales with demand.

Stable Value

Equilibria ($XEQ) holders can issue $USDE – a contract redeemable for $1 of $XEQ.

Decentralized

Oracle node network algorithm converts market data into $USDE issuance and redemption rates.

Private

Every transaction you make is private and secure via ring signatures and stealth addresses.

Open Source

A community project with public code. Anyone can contribute ideas.

Borderless

Equilibria can be used by anyone with access to the internet.

For announcements:

Website
Twitter
Discord

General Information

Copyright (c) 2014-2019 The Monero Project.
Copyright (c) 2018-2019 Project Triton/Equilibria. Portions Copyright (c) 2012-2013 The Cryptonote developers.

Current maintainer

  • Harrison Hesslink (krakn)
  • Cryptochangements

Anyone is welcome to contribute to Equilibria's codebase! If you have a fix or code change, feel free to submit it as a pull request directly to the "master" branch. In cases where the change is relatively small or does not affect other parts of the codebase it may be merged in immediately by any one of the collaborators. On the other hand, if the change is particularly large or complex, it is expected that it will be discussed at length either well in advance of the pull request being submitted, or even directly on the pull request.

See LICENSE.

Contributing

If you want to help out, see CONTRIBUTING for a set of guidelines.

Compiling Equilibria from source

Dependencies

The following table summarizes the tools and libraries required to build. A few of the libraries are also included in this repository (marked as "Vendored"). By default, the build uses the library installed on the system, and ignores the vendored sources. However, if no library is found installed on the system, then the vendored source will be built and used. The vendored sources are also used for statically-linked builds because distribution packages often include only shared library binaries (.so) but not static library archives (.a).

Dep Min. version Vendored Debian/Ubuntu pkg Arch pkg Fedora Optional Purpose
GCC 4.7.3 NO build-essential base-devel gcc NO
CMake 3.5 NO cmake cmake cmake NO
pkg-config any NO pkg-config base-devel pkgconf NO
Boost 1.58 NO libboost-all-dev boost boost-devel NO C++ libraries
OpenSSL basically any NO libssl-dev openssl openssl-devel NO sha256 sum
libzmq 3.0.0 NO libzmq3-dev zeromq cppzmq-devel NO ZeroMQ library
OpenPGM ? NO libpgm-dev libpgm openpgm-devel NO For ZeroMQ
libnorm[2] ? NO libnorm-dev ` YES For ZeroMQ
libunbound 1.4.16 YES libunbound-dev unbound unbound-devel NO DNS resolver
libsodium ? NO libsodium-dev libsodium libsodium-devel NO cryptography
libunwind any NO libunwind8-dev libunwind libunwind-devel YES Stack traces
liblzma any NO liblzma-dev xz xz-devel YES For libunwind
libreadline 6.3.0 NO libreadline6-dev readline readline-devel YES Input editing
ldns 1.6.17 NO libldns-dev ldns ldns-devel YES SSL toolkit
expat 1.1 NO libexpat1-dev expat expat-devel YES XML parsing
GTest 1.5 YES libgtest-dev[1] gtest gtest-devel YES Test suite
Doxygen any NO doxygen doxygen doxygen YES Documentation
Graphviz any NO graphviz graphviz graphviz YES Documentation

[1] On Debian/Ubuntu libgtest-dev only includes sources and headers. You must build the library binary manually. This can be done with the following command sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake . && sudo make && sudo mv libg* /usr/lib/ [2] libnorm-dev is needed if your zmq library was built with libnorm, and not needed otherwise

Debian / Ubuntu one liner for all dependencies
sudo apt update && sudo apt install build-essential cmake pkg-config libboost-all-dev libssl-dev libzmq3-dev libunbound-dev libsodium-dev libunwind8-dev liblzma-dev libreadline6-dev libldns-dev libexpat1-dev doxygen graphviz libpgm-dev libncurses5-dev libncursesw5-dev

Cloning the repository

Clone recursively to pull-in needed submodule(s):

$ git clone --recursive https://github.com/EquilibriaCC/Equilibria.git equilibria

If you already have a repo cloned, initialize and update:

$ cd equilibria && git submodule init && git submodule update

Build instructions

Equilibria uses the CMake build system and a top-level Makefile that invokes cmake commands as needed.

On Linux and OS X

  • Install the dependencies

  • Change to the root of the source code directory, change to the most recent release branch, and build:

      cd equilibria
      git checkout v5.0.2
      make
    

    Optional: If your machine has several cores and enough memory, enable parallel build by running make -j<number of threads> instead of make. For this to be worthwhile, the machine should have one core and about 2GB of RAM available per thread.

    Note: If cmake can not find zmq.hpp file on OS X, installing zmq.hpp from https://github.com/zeromq/cppzmq to /usr/local/include should fix that error.

    Note: The instructions above will compile the most stable release of the Equilibria software. If you would like to use and test the most recent software, use git checkout master. The master branch may contain updates that are both unstable and incompatible with release software, though testing is always encouraged.

  • The resulting executables can be found in build/release/bin

  • Add PATH="$PATH:$HOME/equilibria/build/Linux/release/bin" to .profile

  • Run Equilibria with daemond --detach

  • Optional: build and run the test suite to verify the binaries:

      make release-test
    

    NOTE: core_tests test may take a few hours to complete.

  • Optional: to build binaries suitable for debugging:

       make debug
    
  • Optional: to build statically-linked binaries:

       make release-static
    

Dependencies need to be built with -fPIC. Static libraries usually aren't, so you may have to build them yourself with -fPIC. Refer to their documentation for how to build them.

  • Optional: build documentation in doc/html (omit HAVE_DOT=YES if graphviz is not installed):

      HAVE_DOT=YES doxygen Doxyfile
    

On Windows:

Binaries for Windows are built on Windows using the MinGW toolchain within MSYS2 environment. The MSYS2 environment emulates a POSIX system. The toolchain runs within the environment and cross-compiles binaries that can run outside of the environment as a regular Windows application.

Preparing the build environment

  • Download and install the MSYS2 installer, either the 64-bit or the 32-bit package, depending on your system.

  • Open the MSYS shell via the MSYS2 Shell shortcut

  • Update packages using pacman:

      pacman -Syuu  
    
  • Exit the MSYS shell using Alt+F4

  • Edit the properties for the MSYS2 Shell shortcut changing "msys2_shell.bat" to "msys2_shell.cmd -mingw64" for 64-bit builds or "msys2_shell.cmd -mingw32" for 32-bit builds

  • Restart MSYS shell via modified shortcut and update packages again using pacman:

      pacman -Syuu  
    
  • Install dependencies:

    To build for 64-bit Windows:

      pacman -S mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi
    

    To build for 32-bit Windows:

      pacman -S mingw-w64-i686-toolchain make mingw-w64-i686-cmake mingw-w64-i686-boost mingw-w64-i686-openssl mingw-w64-i686-zeromq mingw-w64-i686-libsodium mingw-w64-i686-hidapi
    
  • Open the MingW shell via MinGW-w64-Win64 Shell shortcut on 64-bit Windows or MinGW-w64-Win64 Shell shortcut on 32-bit Windows. Note that if you are running 64-bit Windows, you will have both 64-bit and 32-bit MinGW shells.

Cloning

  • To git clone, run:

      git clone --recursive https://github.com/EquilibriaCC/Equilibria.git equilibria
    

Building

  • Change to the cloned directory, run:

      cd equilibria
    
      git checkout v5.0.2
    
  • If you are on a 64-bit system, run:

      make release-static-win64
    
  • If you are on a 32-bit system, run:

      make release-static-win32
    
  • The resulting executables can be found in build/release/bin

  • Optional: to build Windows binaries suitable for debugging on a 64-bit system, run:

      make debug-static-win64
    
  • Optional: to build Windows binaries suitable for debugging on a 32-bit system, run:

      make debug-static-win32
    
  • The resulting executables can be found in build/debug/bin

You can’t perform that action at this time.