Skip to content

Commit

Permalink
IPFS utilities milestone 2 (#815)
Browse files Browse the repository at this point in the history
* add IPFS Utlities milestone 2 delivery

* add correct documentation link

* add link to tests description

* Update ipfs_utilities-milestone_2.md
  • Loading branch information
dobschal authored Apr 21, 2023
1 parent edfff26 commit 8bde3fb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions deliveries/ipfs_utilities-milestone_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Milestone Delivery :mailbox:

**The [invoice form :pencil:](https://docs.google.com/forms/d/e/1FAIpQLSfmNYaoCgrxyhzgoKQ0ynQvnNRoTmgApz9NrMp-hd8mhIiO0A/viewform) has been filled out correctly for this milestone and the delivery is according to the official [milestone delivery guidelines](https://github.com/w3f/Grants-Program/blob/master/docs/Support%20Docs/milestone-deliverables-guidelines.md).**

* **Application Document:** [IPFS Utilities application](https://github.com/w3f/Grants-Program/blob/master/applications/ipfs_utilities.md)
* **Milestone Number:** 2

**Context**

This delivery contains one repository with the implementation of an IPFS integration into Substrate. It mainly contains changes and additions to the implementation delivered in Milestone 1 of this project.

For more details please check the Grant application document.

**Deliverables**

List of public GitHub repositories as deliverables:
* [Substrate IPFS](https://github.com/TDSoftware/substrate-ipfs/tree/milestone-1)

| Number | Deliverable | Link | Notes |
| ------ | ------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 0a. | License | https://github.com/TDSoftware/substrate-ipfs/blob/milestone-1/LICENSE-APACHE2 | Apache 2.0 |
| 0b. | Documentation | https://github.com/TDSoftware/substrate-ipfs/blob/master/docs/IPFS.md | We provided and separated and **inline documentation** of the code, a meaningful readme for all modified modules in the repositories. |
| 0c. | Testing | https://github.com/TDSoftware/substrate-ipfs/blob/milestone-2/docs/IPFS.md | Core functions are covered by unit tests as far as reasonably applicable to ensure functionality and robustness. |
| 0d. | Code | https://github.com/TDSoftware/substrate-ipfs/tree/milestone-2 | Public GitHub repository with the implementation. |
| 0e. | Article | https://medium.com/p/6cfcb537f660 | Wrote and published an medium article. See link. |
| 1. | Fetch File Implementation | https://github.com/TDSoftware/substrate-ipfs/blob/milestone-2/frame/tds-ipfs/rpc/src/lib.rs | Implement the logic that allows clients to fetch a file from IPFS with the Substrate node. E.g. #[prg(name = "nft_getFileById")] will be designed and developed that allows users to redirect a request, which returns Result<String>, to a file server. The PRG mechanism is used to provide a RPC API that can redirect to a file server. The existing IPFS "get file" extrinsic will be obsolet as we provide this new RPC API. |
| 2. | Web3 Client Extension | https://github.com/TDSoftware/substrate-ipfs/blob/milestone-1/frame/tds-ipfs/ https://github.com/TDSoftware/substrate-ipfs-example-ui | The web3 client will be extend to show the (PRG) redirect feature and retrieve corresponding files via a public IPFS gateway. |
| 3. | Local Node Fetch Implementation | https://github.com/TDSoftware/substrate-ipfs/blob/milestone-2/frame/tds-ipfs/rpc/src/lib.rs | Implement a file fetch RPC API, that returns the file from the local embedded IPFS node instead of the public IPFS gateway. This is helpful when waiting for the file to be available on the public IPFS gateway. |

**Additional Information**
We want to continue on developing and applied for another milestone (3) as we discovered potential optimisations during the benchmarking.

0 comments on commit 8bde3fb

Please sign in to comment.