Giter VIP home page Giter VIP logo

dlc-stack's Introduction

dlc-stack

build workflow

Modules that work together to provide a seamless lending experience for DLC.Link.

Modules

Attestor

The attestor module is providing a numeric oracle implementation for Bitcoin, creating announcements / attestations, triggered by events on a blockchain. It is primarily a NodeJs application, which is using a wasm module for the actual oracle implementation. See its README for more details.

Router Wallet

The wallet module is responsible for communicating with the dlc-manager contracts on the smart-chain side, and the Attestor Layer. It provides an API for creating and managing DLCs. See its README for more details.

WASM Wallet

The wasm-wallet module is a compact solution to be used in browser wallets. See its README for more details.

Storage-API

The storage-api module provides an API for hiding storage operations. Currently, it is implemented to work with Postgres as the underlying storage engine. See its README for more details.

Clients

The clients module provides re-usable clients for the attestor / wallet / storage-api.

IT (WIP)

The it module provides basic integration tests using BDD (Behavior-Driven Development) with Cucumber.

Build

# build all modules (rust)
make build
# build using docker
make docker-build
# build & run docker compose (see docker-compose.yml)
make docker-start

Known Build Errors

On Apple silicon (M1, M2) there are some known difficulties building the diesel package. This may materialize as something like the following:

  = note: ld: warning: directory not found for option '-L/usr/local/lib/postgresql@14'
          ld: library not found for -lpq
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

Running the build in the following way may solve this problem. RUSTFLAGS='-L /opt/homebrew/opt/libpq/lib' cargo build

The following thread discusses in more details. diesel-rs/diesel#2605

License

APM 2.0

dlc-stack's People

Contributors

sosaucily avatar oleewere avatar scolear avatar polybius93 avatar

Watchers

 avatar

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.