Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

feat: get Filecoin.ClientRetrieve to actually save a file and update IPFS #791

Merged
merged 22 commits into from Mar 4, 2021

Conversation

mikeseese
Copy link
Contributor

@mikeseese mikeseese commented Feb 15, 2021

This PR is a continuation of #714 and #719 (I have included IPFS updating in this PR as it was a good combination to reduce the number of PRs while still making sure they're not too big). The main difference in this PR is further maturation, technical correctness, and make sure there are sufficient tests.

After uploading a file under /market in the network inspector example, there is an option (that is commented out in the example code) to download the file. Filecoin.ClientRetrieve is supposed to save the file to a location on disk provided by the user in the ref argument. This PR adds the functionality of using ref and saving the file to disk. This is an initial implementation and will likely need to be adjusted later as use cases expand.

We also update IPFS to the latest version. ipfs-http-server depends on the latest https://github.com/hapijs/hapi which uses node@12+ only features (private fields in JS). This means we can no longer run Filecoin tests on node@10|11; this PR updates that as well.

Copy link
Member

@davidmurdoch davidmurdoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Again, this is a high-level PR with some suggestions/comments. Let me know if you want to hop on zoom real quick to discuss anything.

.github/workflows/push.yml Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/chains/filecoin/filecoin/src/blockchain.ts Outdated Show resolved Hide resolved
src/chains/filecoin/filecoin/src/blockchain.ts Outdated Show resolved Hide resolved
Copy link
Member

@davidmurdoch davidmurdoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably still need @tcoulter's Approval, as I haven't checked the Filecoin-specific bits whatsoever :-)

Copy link
Contributor

@tcoulter tcoulter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good @seesemichaelj! Great work!

@mikeseese mikeseese merged commit 690cb37 into filecoin Mar 4, 2021
@mikeseese mikeseese deleted the feat/filecoin-clientretrieve branch March 4, 2021 22:19
akhilmantha pushed a commit to akhilmantha/testrpc that referenced this pull request Apr 27, 2022
## [6.11.1-alpha.1](trufflesuite/ganache@v6.11.0...v6.11.1-alpha.1) (2020-10-01)

### Bug Fixes

* install ganache-core v2.13.0-alpha.2 ([2df40c0](trufflesuite/ganache@2df40c0))
* remove unneeded COPY command from docker build ([trufflesuite#790](trufflesuite/ganache#790)) ([31e6cf0](trufflesuite/ganache@31e6cf0))
* update ganache-core to v2.12.2-beta.0 to fix Node v14 compat ([trufflesuite#791](trufflesuite/ganache#791)) ([c3adce9](trufflesuite/ganache@c3adce9))
akhilmantha pushed a commit to akhilmantha/testrpc that referenced this pull request Apr 27, 2022
## [6.11.1-alpha.1](trufflesuite/ganache@v6.11.0...v6.11.1-alpha.1) (2020-10-02)

### Bug Fixes

* install ganache-core v2.13.0-alpha.2 ([2df40c0](trufflesuite/ganache@2df40c0))
* remove unneeded COPY command from docker build ([trufflesuite#790](trufflesuite/ganache#790)) ([31e6cf0](trufflesuite/ganache@31e6cf0))
* update ganache-core to v2.12.2-beta.0 to fix Node v14 compat ([trufflesuite#791](trufflesuite/ganache#791)) ([c3adce9](trufflesuite/ganache@c3adce9))
akhilmantha pushed a commit to akhilmantha/testrpc that referenced this pull request Apr 27, 2022
## [6.11.1-beta.1](trufflesuite/ganache@v6.11.0...v6.11.1-beta.1) (2020-10-06)

### Bug Fixes

* install ganache-core v2.13.0-alpha.2 ([2df40c0](trufflesuite/ganache@2df40c0))
* remove unneeded COPY command from docker build ([trufflesuite#790](trufflesuite/ganache#790)) ([31e6cf0](trufflesuite/ganache@31e6cf0))
* update ganache-core to v2.12.2-beta.0 to fix Node v14 compat ([trufflesuite#791](trufflesuite/ganache#791)) ([c3adce9](trufflesuite/ganache@c3adce9))
* update ganache-core to v2.13.0-beta.0 ([2de7bdd](trufflesuite/ganache@2de7bdd))
akhilmantha pushed a commit to akhilmantha/testrpc that referenced this pull request Apr 27, 2022
# [6.12.0](trufflesuite/ganache@v6.11.0...v6.12.0) (2020-10-09)

### Bug Fixes

* install ganache-core v2.13.0-alpha.2 ([2df40c0](trufflesuite/ganache@2df40c0))
* remove unneeded COPY command from docker build ([trufflesuite#790](trufflesuite/ganache#790)) ([31e6cf0](trufflesuite/ganache@31e6cf0))
* update ganache-core to v2.12.2-beta.0 to fix Node v14 compat ([trufflesuite#791](trufflesuite/ganache#791)) ([c3adce9](trufflesuite/ganache@c3adce9))
* update ganache-core to v2.13.0-beta.0 ([2de7bdd](trufflesuite/ganache@2de7bdd))

### Features

* update ganache-core to v2.13.0 ([1e7ad11](trufflesuite/ganache@1e7ad11))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants