Shenzhen-Cloudatawalk-Technology-Co-Ltd / venus-market

market for storage and retrieval

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

venus-market

venus-market will deliver a complete deal making experience as what lotus offers. This includes compatibility with lotus client where one can make deal with venus-market using lotus client, retrieve deal/data in the same way as lotus retrieves its data, setup storage ask and etc.

  • Implementation of the one-to-one model of lotus market like module and fully interoperable with lotus implementation, which means compatibility with lotus client and more
  • venus-market deployed as independent module, like venus-sealer and venus-wallet
  • Implementation of a reliable market module that runs a seperate process from the main storage process
  • A clear module boundary that allows interoperability and user customizations
  • Flexibilities of market module to interact with existing venus infrastructures using RPC APIs
  • Supports for mainnet, calibration and Nerpa
  • Lightweight client: compatibility with Lotus and support for venus-market unique features including client running seperately as a process and remove dependencies for node; great for bootstraping tests on deal making process

build

git clone https://github.com/filecoin-project/venus-market.git
cd venus-market
make deps
make

start venus-market

./venus-market run --node-url <node url> --messager-url <messager-url> --auth-token <auth token>  --signer-url <wallet url> --signer-token  <wallet token> --piecestorage <piece storeage path> --miner <miner address>

start market-client

full node

this is example to use market-client only depend on full daemon

./market-client run --node-url <node url> --auth-token <auth token>  

use remote wallet and daemon service

use wallet for sign, use daemon for chain information, all data about fund (market message, paych) store in local, so you can use chain service such powergate as daemon

./market-client run --node-url <node url> --auth-token <auth token> --signer-url <remote wallet url> --signer-token <remote wallet token> 

venus pool

if want use messsager to trick message, use messager-url and messager-token

if want use remote wallet to sign message, use signer-url and signer-token

this is the example for using venus-market in venus pool

./market-client run --node-url <node url> --messager-url <messager-url> --auth-token <auth token>  --signer-url <wallet url> --signer-token  <wallet token> --addr <client default address>

make deal

 ./market-client generate-car  <file> <car file>
 ./market-client import <file>
 ./market-client deal

retrieval file

./market-client retrieve --miner <miner addr> <data-cid> <dst path>

About

market for storage and retrieval


Languages

Language:Go 99.9%Language:Makefile 0.1%