Skip to content

Releases: filswan/go-swan-provider

Release-v2.0.0-rc1

27 May 21:27
f19baf9
Compare
Choose a tag to compare

Table of Contents

Improvements

  • Support api changes caused by swan-client can send one car file to multiple miners
  • Add command to show version

Config Explanation

‼️Add config item

  • [bid] auto_bid_deal_per_day auto-bid deal limit per day for your miner defined in config file

‼️Change config item value

  • [main] api_url changed to https://go-swan-server.filswan.com

‼️Remove config item

  • [bid] auto_bid_task_per_day

If there is an old version of swan provider installed in your machine, you need to change the config file ~/.swan/provider/config.toml manually.
You can reference Readme on how to config them

release-v0.2.1-rc2

25 Apr 15:42
02e71c8
Compare
Choose a tag to compare

Table of Contents

Improvements

  • Delete car files under downloaded directory, whose deal status are Completed, DealExpired, or ImportFailed
  • Do not download those car files whose deal status are StorageDealError, and set them to ImportFailed directly

Bug Fixes

  • Explanation for config item aria2_secret on readme

Config Explanation

‼️Add config item

  • purge_interval: 600 seconds or 10 minutes. Time interval to purge downloaded car files whose deal status are Completed, ImportFailed or DealExpired

If there is an old version of swan provider running in your machine, you need to add the new parameter manually.
You can reference Readme on how to config them

release-v0.2.1

05 May 19:57
02e71c8
Compare
Choose a tag to compare

Table of Contents

Improvements

  • Delete car files under downloaded directory, whose deal status are Completed, DealExpired, or ImportFailed
  • Do not download those car files whose on-chain deal status are StorageDealError, and set them to ImportFailed directly

Bug Fixes

  • Explanation for config item aria2_secret on readme

Config Explanation

‼️Add config item

  • purge_interval: 600 seconds or 10 minutes. Time interval to purge downloaded car files whose deal status are Completed, ImportFailed or DealExpired

If there is an old version of swan provider running in your machine, you need to add the new parameter manually.
You can reference Readme on how to config them

release-0.2.1-rc1

01 Dec 15:22
5ad1b61
Compare
Choose a tag to compare

Table of Contents

Improvements

  • Using methods Filecoin.AuthVerify to check lotus token. Compared to the previous complicated method, this will speed up the processing time and reduce errors.
  • Add a parameter to configure whether swan provider works in release mode or not

Bug Fixes

  • Aria2 waiting status was considered as download failed, but now considered as downloading

Config Explanation

‼️Add config item

  • release: When work in release mode: set this to true, otherwise to false and enviornment variable GIN_MODE not to release

If there is an old version of swan provider running in your machine, you need to add the new parameter manually.
You can reference Readme on how to config them

release-0.2.0-rc3

19 Nov 14:58
324fb17
Compare
Choose a tag to compare

Table of Contents

Improvements

  • Rename lotus config items to match the real meaning
  • Add more detailed status and message from lotus to note in each step except downloading
  • Add 3 kinds of price(computed from duration*price per epoch, funds reserved, funds released got from Lotus API) to note in each step except downloading
  • Update cost in each step, if any changes occur
  • Update status, note, file_path, cost only there are changes in these fields
  • Refactor, remove common functions to swan lib project
  • Move generating config file and download path to shell scripts from go source file
  • When install, set aria2 only when those files do not exist

Bug Fixes

  • Fixed bugs when check lotus config during start.

Config Explanation

‼️Rename lotus config items

[lotus]
  • api_url rename to client_api_url
  • miner_api_url rename to market_api_url
  • miner_access_token rename to market_access_token

If there is an old version of swan provider running in your machine, you need to rename them manually.
You can reference Readme on how to config them

release-0.2.0

19 Nov 18:42
4c728ec
Compare
Choose a tag to compare

Table of Contents

Improvements

  • Rename lotus config items to match the real meaning
  • Add more detailed status and message from lotus to note in each step except downloading
  • Add 3 kinds of cost(computed from duration*price per epoch, funds reserved, funds released got from Lotus API) to note in each step except downloading
  • Update cost in each step, if any changes occur
  • Update status, note, file_path, cost only there are changes in these fields
  • Refactor, remove common functions to swan lib project
  • Move generating config file and download path to shell scripts from go source file
  • When install, set aria2 only when those files do not exist

Bug Fixes

  • Fixed bugs when check lotus config during start: the deal for test config not exits.

Config Explanation

‼️Rename lotus config items

[lotus]
  • api_url rename to client_api_url
  • miner_api_url rename to market_api_url
  • miner_access_token rename to market_access_token

If there is an old version of swan provider running in your machine, you need to rename them manually.
You can reference Readme on how to config them

release-0.2.0-rc2

17 Nov 16:18
f4ffcd0
Compare
Choose a tag to compare

Table of Contents

Improvements

  • Rename lotus config items to match the real meaning
  • Add more detailed status and message from lotus to note in each step except downloading
  • Add 3 kinds of price(computed from duration*price per epoch, funds reserved, funds released got from Lotus API) to note in each step except downloading
  • Update cost in each step, if any changes occur
  • Update status, note, file_path, cost only there are changes in these fields
  • Refactor, remove common functions to swan lib project
  • Move generating config file and download path to shell scripts from go source file
  • When install, set aria2 only when those files do not exist

Bug Fixes

  • Fixed bugs when check lotus config during start.

Config Explanation

‼️Rename lotus config items

[lotus]
  • api_url rename to client_api_url
  • miner_api_url rename to market_api_url
  • miner_access_token rename to market_access_token

If there is an old version of swan provider running in your machine, you need to rename them manually.
You can reference Readme on how to config them

release-0.2.0-rc1

16 Nov 15:26
3ec257a
Compare
Choose a tag to compare

Table of Contents

Improvements

  • Rename lotus config items to match the real meaning
  • Add more detailed status and message from lotus to note in each step except downloading
  • Add 3 kinds of price(computed from duration*price per epoch, funds reserved, funds released got from Lotus API) to note in each step except downloading
  • Update cost in each step, if any changes occur
  • Update status, note, file_path, cost only there are changes in these fields
  • Refactor, remove common functions to swan lib project
  • Move generating config file and download path to shell scripts from go source file

Bug Fixes

  • Fixed bugs when check lotus config during start.

Config Explanation

‼️Rename lotus config items

[lotus]
  • api_ur rename to client_api_url
  • miner_api_url rename to market_api_url
  • miner_access_token rename to market_access_token

If there is an old version of swan provider running in your machine, you need to rename them manually.
You can reference Readme on how to config them

release-0.1.0

16 Oct 19:37
009f3e5
Compare
Choose a tag to compare

Table of Contents

Improvements

  • Use Json RPC Web Api to replace lotus command to access deals

Bug Fixes

  • Fixed bugs on import_interval

Config Explanation

‼️Add new parameters

[lotus]
  • api_url: Url of lotus web api, such as: http://[ip]:[port]/rpc/v0, generally the [port] is 1234
  • miner_api_url: Url of lotus miner web api, such as: http://[ip]:[port]/rpc/v0, generally the [port] is 2345
  • miner_access_token: Access token of lotus miner web api

If there is an old version of swan provider running in your machine, you need add them manually.
You can reference config.toml.example and readme on how to config them

release-0.1.0-rc2

12 Oct 20:55
2297f97
Compare
Choose a tag to compare
Merge pull request #52 from DoraNebula/main

Update README.md