Giter VIP home page Giter VIP logo

pluveto / 10101 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from get10101/10101

0.0 0.0 0.0 22.04 MB

10101 (Ten-Ten-One): Self-custodial derivative trading at your fingertips.

Home Page: https://10101.finance

License: MIT License

Shell 0.13% Ruby 0.26% C++ 0.77% C 0.05% Objective-C 0.01% Rust 64.33% Kotlin 0.01% Dart 31.84% Gnuplot 0.19% Swift 0.11% HTML 0.61% CMake 0.70% PLpgSQL 0.04% Dockerfile 0.04% Just 0.92%

10101's Introduction

10101 (Ten-Ten-One) - Decentralised finance. For real.

10101 dev chat

10101 Logo

10101 combines the power of a self-custodial on-chain and off-chain wallet with the vast world of trading. 10101 - a numeral palindrome and the binary representation of 21 - as in 21 million possible bitcoin. The vision of 10101 embodies what Bitcoin stands for: Decentralized and censorship resistant money.

Getting Started

To begin, ensure that you have a working installation of the following items:

  • Docker and docker-compose
  • Rust language
  • Appropriate Rust targets for cross-compiling to your device
  • For Android targets:
    • Install cargo-ndk
    • Install Android NDK 22, then put its path in one of the gradle.properties, e.g.:
echo "ANDROID_NDK=.." >> ~/.gradle/gradle.properties
  • For iOS targets:
    • XCode
    • Cocoapods

Contributing

We encourage community contributions whether it be a bug fix or an improvement to the documentation. Please have a look at the contributing guidelines.

Dependencies

A lot of complexity for building the app has been encapsulated in a just-file. You can install just with cargo install just.

To see the available commands with explanations, simply run just --list.

To install necessary project dependencies for all targets, run the following:

just deps

Diesel database dependencies

Some crates, e.g. the coordinator use diesel for the database connection. This may require installing dependencies, such as e.g. libpql for the postgres database for the coordinator.

MacOS

On macOS, one can install libpq with the following command:

brew install libpq

Bear in mind that libpq is keg-only (not installed globally). This means that you have to add the library path the linker manually. The are a number ways to do that (e.g. by setting rustflags), however the easiest one is to add the following lines to your .zshrc/.bashrc

export LDFLAGS="-L/usr/local/opt/libpq/lib"
export CPPFLAGS="-I/usr/local/opt/libpq/include"

This will ensure that libpq is available during building the project

Running 10101

Run the app natively (on your Linux/MacOS/other OS)

The following command will build and start all the necessary services, including the native desktop 10101 app.

just all

Run the mobile-app on the iOS simulator

Note: Ensure that the iOS simulator is running on your machine so it can be selected as target.

The following command will build and start all the necessary services, including the native desktop 10101 app.

just all-ios

Run the mobile-app on the Android simulator

Note: Ensure that the Android simulator is running on your machine so it can be selected as target. Also ensure that you have run just deps-android to install the right targets for build.

The following command will build and start all the necessary services, including the android app.

just all-android

How to faucet your wallet.

You can test the app on regtest, which means that the wallet needs to be fauceted with the provided steps before you can start trading.

Setup

  1. If you have run the app before, we recommend to clear the dev environment by running just wipe

  2. Start the complete project stack with just all.

Adding funds to 10101 wallet

  1. Navigate to the receive screen.

  2. Double-click on the generated QR code and click the "Pay with 10101 faucet" button. Note, if you do not specify an amount by default 1 BTC will sent to your regtest wallet.

Useful information for local regtest debugging

  1. Follow coordinator's logs - tail -f data/coordinator/regtest.log
  2. Block explorer - http://localhost:8080/
  3. Bitcoin faucet - http://localhost:8080/faucet/

Deploy for android beta

  1. Create a ./mobile/android/key.properties with the content from the key generation step from here https://docs.flutter.dev/deployment/android#signing-the-app
  2. just clean never hurts but might not be necessary ;)
  3. just gen
  4. just android-release
  5. NETWORK=regtest just build-android-app-bundle
  6. NETWORK=regtest just upload-app-bundle

TL;DR; a shortcut for this is available but it is recommended to execute each step separately:

just release-app-bundle-signet

10101's People

Contributors

holzeis avatar bonomat avatar luckysori avatar klochowicz avatar bors[bot] avatar da-kami avatar restioson avatar 1010tom avatar dependabot[bot] avatar antonyleons avatar martinfar avatar sxbt69 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.