Code Monkey home page Code Monkey logo

delta's Introduction

CodeQL Release

Δ Delta

Filecoin Storage Deal Making Service

Delta is a deal-making service that enables users to make deals with Storage Providers. It is an application that allows users to upload files to the Filecoin network and get them stored by Storage Providers.


image

For more information, check out the docs


Build and Run Delta

Prepare to build

Copy the .env.example file to .env and update the values as needed.

# Node info
NODE_NAME=stg-deal-maker
NODE_DESCRIPTION=Experimental Deal Maker
NODE_TYPE=delta-main

# Database configuration
MODE=standalone
DB_DSN=delta.db
#REPO=/mnt/.whypfs # shared mounted repo

# Frequencies
MAX_CLEANUP_WORKERS=1500

Install and run Delta using docker

Running this the first time will generate a wallet. Make sure to get FIL/DataCap from the faucet and fund the wallet

Make sure you have docker installed on your machine.

Run the current delta clone using docker-compose

If you already have a wallet with datacap, you can pass it to the command below. This copies over the wallet directory to the containerized app and sets it as the default wallet.

make docker-compose-run WALLET_DIR=<walletdir>

Check localhost

You can check the localhost to see if the delta app is running

curl --location --request GET 'http://localhost:1414/open/node/info'

Next

Now that you can access a live Delta node, you are now ready to make a deal. You can now go to the following guides:

Run a specific docker image tag from the docker hub artifactory

We have a few pre-built images on the docker hub artifactory. You can run the following command to run a specific image tag

cd docker
./run.sh <TAG> 

Note: no tag means it'll just get the latest image.

Install, build from source and run Delta

Install the following pre-req

Alternatively, if using Ubuntu, you can run the following commands to install the pre-reqs

apt-get update && \
apt-get install -y wget jq hwloc ocl-icd-opencl-dev git libhwloc-dev pkg-config make && \
apt-get install -y cargo

Using make

make all
./delta daemon --repo=.whypfs --wallet-dir=<walletdir>

Using go build

go build -tags netgo -ldflags '-s -w' -o delta
./delta daemon --repo=.whypfs --wallet-dir=<walletdir>

Run Delta

./delta daemon --mode=standalone

Test the API server

Try the following endpoints to test the API server

curl --location --request GET 'http://localhost:1414/open/node/info'
curl --location --request GET 'http://localhost:1414/open/node/peers'
curl --location --request GET 'http://localhost:1414/open/node/host'

If it return the following, then the API server is working

{"name":"stg-deal-maker","description":"Experimental Deal Maker","type":"delta-main"}

Getting Started with Delta

To get started with Delta, you can follow the following guides here

Author

Protocol Labs Outercore Engineering.

delta's People

Contributors

alvin-reyes avatar 10d9e avatar dependabot[bot] avatar anjor avatar jcace avatar jimmylee avatar zorlin avatar

Stargazers

 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.