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.
For more information, check out the docs
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
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.
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:
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.
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
make all
./delta daemon --repo=.whypfs --wallet-dir=<walletdir>
go build -tags netgo -ldflags '-s -w' -o delta
./delta daemon --repo=.whypfs --wallet-dir=<walletdir>
./delta daemon --mode=standalone
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"}
To get started with Delta
, you can follow the following guides here
Protocol Labs Outercore Engineering.