Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom network + IPFS support #616

Merged
merged 76 commits into from
Oct 29, 2021
Merged

Custom network + IPFS support #616

merged 76 commits into from
Oct 29, 2021

Conversation

gantunesr
Copy link
Member

@gantunesr gantunesr commented Oct 25, 2021

Description

Add support for custom networks by querying the blockchain as default and add support for IPFS metadata URIs

Tasks

  • Add support for custom networks
  • Add support for IPFS url
  • Update testing

⚠️ Blockers

Gustavo Antunes and others added 2 commits October 28, 2021 17:24
Co-authored-by: Alex Donesky <adonesky@gmail.com>
Co-authored-by: Alex Donesky <adonesky@gmail.com>
return { image: object[image], name: object.name };
try {
const object = await handleFetch(tokenURI);
// TODO: Check image_url existence. This is not part of EIP721 nor EIP1155
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this Todo mean? image_url is not part of any metadata standards?

Copy link
Member

Choose a reason for hiding this comment

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

Right. This is custom made to support a specific platform (OpenSea) schema property.

Copy link
Contributor

Choose a reason for hiding this comment

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

[nit] won't block on it but maybe we should add that context in the comment

@@ -270,38 +347,33 @@ export class CollectiblesController extends BaseController<
* @param tokenId - The collectible identifier.
* @returns Promise resolving to the current collectible name and image.
*/
private async getCollectibleInformation(
async getCollectibleInformation(
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this no longer private because it it will be accessed directly in mobile?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I don't recall changing this, maybe it was by accident

adonesky1
adonesky1 previously approved these changes Oct 29, 2021
Copy link
Contributor

@adonesky1 adonesky1 left a comment

Choose a reason for hiding this comment

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

A few small non-blocking questions left but otherwise LGTM!

@gantunesr gantunesr merged commit 8ecd2c6 into main Oct 29, 2021
@gantunesr gantunesr deleted the feat/nfts-uri branch October 29, 2021 15:44
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
Add support for custom networks and IPFS urls
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
Add support for custom networks and IPFS urls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants