Skip to content

litai686/venus-market

 
 

Repository files navigation

venus-market

Use Venus Issues for reporting issues about this repository.

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.

Use Venus Issues for reporting issues about this repository.

# feature

  1. market 2.0 mainly implements the aggregation of multiple storage miners. clients can issue orders or retrieve any providers registered to venus-market.
  2. all metadata of provider server is stored in the mysql database that providing better data security.
  3. providers do not need to pay attention for the details of the deal, only need to query the market regularly to see if you have any deal to seal.
  4. market maintain a piece pool, that is, to provide the provider with the data for sealing deals, and it can also speed up the retrieval speed. ask miners for unseal operations, only when missing piece in venus-market.
  5. for clients, it is fully compatible with lotus.

build

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

how to setup venus-market

run as venus-pool service

./venus-market pool-run --auth-url <auth url> --node-url <node url> --messager-url <messager url>  --gateway-url <signer url>  --auth-token <auth token>  --piecestorage fs:/xx  --payment-addr <addr:account>

run in local

./venus-market solo-run --node-url <node url>  --node-token <auth token> --wallet-url <local wallet url>  --wallet-token <local wallet token>   --piecestorage fs:/xx --miner <f0xxx>  --payment-addr <addr:account>

set peerid and address

./venus-market net  listen                               #query venus-market address and peerid
./venus-market actor set-peer-id --miner <f0xxxx> <id>   #set peer id
./venus-market actor set-addrs --miner <f0xxxx> <addr>   #set miner address
./venus-market actor info --miner <f0xxxx>               #query miner address and peerid on chain

set storage ask

./venus-market storage-deals set-ask --price <price> --verified-price <price> --min-piece-size  <minsize >=256B>  --max-piece-size <max size <=sector-size> --miner <f0xxxx>

set retrieval ask

./venus-market retrieval-deals set-ask --price <pirce> --unseal-price <price> --payment-interval <bytes> --payment-interval-increase <bytes> --payment-addr <fxxx>

how to setup market client

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

Note:please use a seperate address, or maybe nonce confiction

About

market for storage and retrieval

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.4%
  • Other 0.6%