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

[BX-1314][BX-1315] Support Additional Simplehash Networks + Configure Testnet NFT Request #1336

Merged
merged 11 commits into from
Feb 10, 2024

Conversation

derHowie
Copy link
Member

@derHowie derHowie commented Feb 7, 2024

What changed (plus any additional context for devs)

Added support for all available networks returned by Simplehash that also overlapped with Viem's supported network list. Partitioned mainnet and testnet nft network lists and now return testnet NFTs in dev mode.

Screen recordings / screenshots

PoW: https://recordit.co/jowwjwvIp2

What to test

Ensure NFTs on networks that are currently unsupported, but added to the Simplehash request in this PR appear. Also ensure that testnet nfts only appear while dev mode is activated.

Copy link

github-actions bot commented Feb 7, 2024

Here's the packed extension for this build:
rainbowbx-fbc302b4995a9e1c2962f100103c433473d81aa1.zip

Copy link

github-actions bot commented Feb 7, 2024

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-314cf68c85f22a224a606458cc279fea40c85177.zip
screenshots

Copy link

github-actions bot commented Feb 8, 2024

Here's the packed extension for this build:
rainbowbx-f1ab635308d3fd09bd608b24961e957f264bb2b4.zip

);
const chains = !testnetMode
? (getSimpleHashSupportedChainNames() as ChainName[])
: (getSimpleHashSupportedTestnetChainNames() as ChainName[]);
Copy link
Contributor

Choose a reason for hiding this comment

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

this means that we're not filtering nfts by enabled chains from settings anymore?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh wait, do we even filter by enabled chain?

Copy link

github-actions bot commented Feb 9, 2024

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-c9b3f4ad29c91a27f5c473cc3a88028a64e858f0.zip

Copy link

github-actions bot commented Feb 9, 2024

Here's the packed extension for this build:
rainbowbx-c9b3f4ad29c91a27f5c473cc3a88028a64e858f0.zip

nft?.network === 'mainnet' ? 'Ethereum' : capitalize(nft?.network);
const networkDisplay = nft?.network
? ChainNameDisplay[chainIdFromChainName(nft?.network)]
: '';
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 '' just used as a "falsy" value?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, just not showing that row if nft is undefined. Just being safe, that shouldn't be the case unless something broke.

Copy link

github-actions bot commented Feb 9, 2024

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-ca43782bb9a21849aa4953f75c17c0c9b364bc4e.zip
screenshots

Copy link

github-actions bot commented Feb 9, 2024

Here's the packed extension for this build:
rainbowbx-c754841441e4f00d21030ffec2c3d2e56b839d20.zip

Copy link

github-actions bot commented Feb 9, 2024

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-e5bef93308857049e83f0ee04499afa538da6b83.zip
screenshots

Copy link

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-d48553c17664dad87ba8b280674ed526a0f06d5e.zip

Copy link

Here's the packed extension for this build:
rainbowbx-d48553c17664dad87ba8b280674ed526a0f06d5e.zip

@derHowie derHowie added this pull request to the merge queue Feb 10, 2024
Merged via the queue into master with commit 4796359 Feb 10, 2024
17 checks passed
@derHowie derHowie deleted the @chris/nft-networks branch February 10, 2024 08:14
Copy link

Here's the packed extension for this build:
rainbowbx-4796359fe81be58b51874f32e44b98776dbe4050.zip

greg-schrammel pushed a commit that referenced this pull request Feb 12, 2024
greg-schrammel pushed a commit that referenced this pull request Feb 20, 2024
BrodyHughes pushed a commit that referenced this pull request Feb 27, 2024
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