Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

[Profile] Add name to IPFS files + Upload JSON using pinata #1865

Merged
merged 4 commits into from
Nov 16, 2021

Conversation

matextrem
Copy link
Contributor

Summary

Fixes #1803 #1864

Added a name to IPFS files + Removing ipfs-http-client library and use pinata sdk to upload them due to a race condition problem.

Screen Shot 2021-11-16 at 17 30 40

To Test

It can be tested by calling uploadMetadataDocToIpfs and passing a metadata doc as a parameter (We could use generateReferralMetadataDoc with a test address).

  • For testing purposes, I use my own Pinata account credentials.

@matextrem matextrem added Bug Something isn't working Protofire Handled by Protofire development team Critical Severity indicator for defects. ndicates complete shut-down of the process. Nothing can proceed furt labels Nov 16, 2021
@matextrem matextrem self-assigned this Nov 16, 2021
@github-actions
Copy link
Contributor

  • 🔭 GP Swap: Gnosis Protocol v2 Swap UI

@ramirotw
Copy link
Contributor

nice! ipfs-http-client should be also removed from the package.json

@matextrem matextrem requested a review from alfetopito November 16, 2021 21:20
Copy link
Contributor

@alfetopito alfetopito left a comment

Choose a reason for hiding this comment

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

Working great!

@alfetopito alfetopito changed the base branch from develop to hotfix/1.4.11 November 16, 2021 22:01
@alfetopito alfetopito changed the base branch from hotfix/1.4.11 to develop November 16, 2021 22:01
@alfetopito alfetopito merged commit 738006c into develop Nov 16, 2021
@alfetopito alfetopito deleted the 1803/IPFS-name branch November 16, 2021 22:53
@alfetopito
Copy link
Contributor

Merged to develop.

Something is up with integration tests, which is unrelated to this change.

Feel free to add post merge comments.

alfetopito pushed a commit that referenced this pull request Nov 16, 2021
* Remove ipfs-http-client and upload to ipfs using pinata sdk

* Remove dep from package.json + decode the CID to get the multihash digest

* Remove console.log

* Update yarn.lock
@alfetopito alfetopito mentioned this pull request Nov 16, 2021
@ramirotw ramirotw mentioned this pull request Dec 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working Critical Severity indicator for defects. ndicates complete shut-down of the process. Nothing can proceed furt Protofire Handled by Protofire development team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Give a name to the file when upload IPFS
3 participants