Giter Site home page Giter Site logo

vladika2020 / zeitgeist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zeitgeistpm/zeitgeist

0.0 0.0 0.0 2 MB

An evolving blockchain for prediction markets and futarchy.

Home Page: https://zeitgeist.pm

Makefile 0.09% Rust 95.82% Shell 3.11% Dockerfile 0.41% Handlebars 0.56%

zeitgeist's Introduction

Zeitgeist: An Evolving Blockchain for Prediction Markets and Futarchy

Rust

Zeitgeist is a decentralized network for creating, betting on, and resolving prediction markets. The platform's native currency, the ZTG, is used to sway the direction of the network, and as a means of last-call dispute resolution. Additionally, Zeitgeist is a protocol for efficient trading of prediciton market shares and will one day become the backbone of the decentralized finance ecosystem by allowing for traders to create complex financial contracts on virtually anything.

Modules

  • orderbook-v1 - A naive orderbook implementation that's only part of Zeitgeist's PoC. Will be replaced by a v2 orderbook that uses 0x-style hybrid on-chain and off-chain trading.
  • prediction-markets - The core implementation of the prediction market logic for creating and resolving markets.
  • swaps - An implmenation of a constant function automated market maker (similar to Balancer) that allows for liqudity providing and trading of prediction market shares.
  • shares - Implementation of tradable and transferrable shares of prediction market outcomes.
  • court- coming soon

How to Build Nodes

Zeitgeist node comes in two flavors, one for standalone self-contained execution and another for Kusama/Polkadot parachain integration.

To build the standalone version, simply point to the top directory of this project and type:

cargo build --release

For parachain, it is necessary to change the current directory to node and then select the appropriated compiler feature flag.

cargo build --features parachain --release

Optimized binaries are usually used for development (faster and smaller) but this behavior is optionally up to you. If desirable, it is also possible to run commands directly with cargo run instead of running ./target/(debug|release)/zeitgeist.

Using Docker

We publish the latest version to the Docker Hub that can be pulled and ran locally to connect to the network. In order to do this first make sure that you have Docker installed locally, then type (or paste) the following commands in your terminal:

docker pull zeitgeistpm/zeitgeist-node
docker run zeitgeistpm/zeitgeist-node --chain battery_park

This will get you connected to the Battery Park testnet.

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.