-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #334 from ipfs-force-community/feat/rename-project
feat: replace market with droplet
- Loading branch information
Showing
165 changed files
with
771 additions
and
710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,73 @@ | ||
<h1 align="center">Venus Market</h1> | ||
<h1 align="center">Droplet</h1> | ||
|
||
<p align="center"> | ||
<a href="https://github.com/filecoin-project/venus-market/actions"><img src="https://github.com/filecoin-project/venus-market/actions/workflows/build_upload.yml/badge.svg"/></a> | ||
<a href="https://codecov.io/gh/filecoin-project/venus-market"><img src="https://codecov.io/gh/filecoin-project/venus-market/branch/master/graph/badge.svg?token=J5QWYWkgHT"/></a> | ||
<a href="https://goreportcard.com/report/github.com/filecoin-project/venus-market"><img src="https://goreportcard.com/badge/github.com/filecoin-project/venus-market"/></a> | ||
<a href="https://github.com/filecoin-project/venus-market/tags"><img src="https://img.shields.io/github/v/tag/filecoin-project/venus-market"/></a> | ||
<a href="https://github.com/ipfs-force-community/droplet/actions"><img src="https://github.com/ipfs-force-community/droplet/actions/workflows/build_upload.yml/badge.svg"/></a> | ||
<a href="https://codecov.io/gh/ipfs-force-community/droplet"><img src="https://codecov.io/gh/ipfs-force-community/droplet/branch/master/graph/badge.svg?token=J5QWYWkgHT"/></a> | ||
<a href="https://goreportcard.com/report/github.com/ipfs-force-community/droplet"><img src="https://goreportcard.com/badge/github.com/ipfs-force-community/droplet"/></a> | ||
<a href="https://github.com/ipfs-force-community/droplet/tags"><img src="https://img.shields.io/github/v/tag/ipfs-force-community/droplet"/></a> | ||
<br> | ||
</p> | ||
|
||
Use [Venus Issues](https://github.com/filecoin-project/venus/issues) for reporting issues about this repository. | ||
droplet will deliver a complete deal making experience as what lotus offers. This includes compatibility with lotus client where one can make deal with droplet using lotus client, retrieve deal/data in the same way as lotus retrieves its data, setup storage ask and etc. | ||
|
||
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](https://github.com/filecoin-project/venus/issues) for reporting issues about this repository. | ||
Use [Droplet Issues](https://github.com/ipfs-force-community/droplet/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. | ||
1. market 2.0 mainly implements the aggregation of multiple storage miners. clients can issue orders or retrieve any providers registered to droplet. | ||
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. | ||
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 droplet. | ||
5. for clients, it is fully compatible with lotus. | ||
|
||
|
||
## build | ||
|
||
```sh | ||
git clone https://github.com/filecoin-project/venus-market.git | ||
cd venus-market | ||
git clone https://github.com/ipfs-force-community/droplet.git | ||
cd droplet | ||
make | ||
``` | ||
## how to set up venus-market | ||
## how to set up droplet | ||
|
||
run: | ||
|
||
- run in chain service | ||
```shell script | ||
./venus-market run --auth-url=<auth url> --node-url=<node url> --messager-url=<messager url> --gateway-url=<signer url> --cs-token=<token of admin-authority> --signer-type="gateway" | ||
./droplet run --auth-url=<auth url> --node-url=<node url> --messager-url=<messager url> --gateway-url=<signer url> --cs-token=<token of admin-authority> --signer-type="gateway" | ||
``` | ||
|
||
- run in local, conn venus chain service and use lotus-wallet/venus-wallet to sign | ||
```shell script | ||
./venus-market run --auth-url=<auth url> --node-url=<node url> --messager-url=<messager url> --cs-token=<token of write-authority> --signer-type="wallet" --signer-url=<wallet url> --signer-token=<wallet token> | ||
./droplet run --auth-url=<auth url> --node-url=<node url> --messager-url=<messager url> --cs-token=<token of write-authority> --signer-type="wallet" --signer-url=<wallet url> --signer-token=<wallet token> | ||
``` | ||
|
||
- run in local, conn lotus full node and use lotus full node to sign | ||
```shell script | ||
./venus-market run --node-url=<node url> --messager-url=<node url> --cs-token=<token of lotus> --signer-type="lotusnode" | ||
./droplet run --node-url=<node url> --messager-url=<node url> --cs-token=<token of lotus> --signer-type="lotusnode" | ||
``` | ||
|
||
set peer id and address | ||
|
||
```shell script | ||
./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 | ||
./droplet net listen #query droplet address and peerid | ||
./droplet actor set-peer-id --miner <f0xxxx> <id> #set peer id | ||
./droplet actor set-addrs --miner <f0xxxx> <addr> #set miner address | ||
./droplet actor info --miner <f0xxxx> #query miner address and peerid on chain | ||
``` | ||
|
||
set storage ask | ||
```shell script | ||
./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> | ||
./droplet 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 | ||
```shell script | ||
./venus-market retrieval-deals set-ask --price <pirce> --unseal-price <price> --payment-interval <bytes> --payment-interval-increase <bytes> --payment-addr <fxxx> | ||
./droplet retrieval-deals set-ask --price <price> --unseal-price <price> --payment-interval <bytes> --payment-interval-increase <bytes> --payment-addr <f0xxx> | ||
``` | ||
|
||
## how to setup market client | ||
## how to setup droplet client | ||
|
||
```shell script | ||
./market-client run --node-url <node url> --node-token <auth token> --signer-url <wallet url> --signer-token <wallet token> --addr <client default address> | ||
./droplet-client run --node-url <node url> --node-token <auth token> --signer-url <wallet url> --signer-token <wallet token> --addr <client default address> | ||
``` | ||
Note:**please use a seperate address, or maybe nonce confiction** | ||
Note:**please use a separate address, or maybe nonce conflict** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.